﻿/* Employee Compact Form Styles */
/* File: wwwroot/css/employee-compact.css */

/* Upload area styling */
.upload-area-compact {
    transition: all 0.2s ease;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .upload-area-compact:hover {
        border-color: #004d4d !important;
        background-color: rgba(0, 102, 102, 0.05) !important;
    }

    .upload-area-compact input[type="file"] {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
        top: 0;
        left: 0;
    }

.file-selected {
    margin-top: 4px;
    padding: 4px 8px;
    background-color: rgba(0, 102, 102, 0.1);
    border-radius: 3px;
    border-left: 2px solid #006666;
    font-size: 0.85rem;
}

/* Form control sizing */
.form-control-sm, .form-select-sm {
    font-size: 0.9rem;
    padding: 0.375rem 0.75rem;
}

/* Card styling */
.card {
    transition: box-shadow 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

    .card:hover {
        box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1) !important;
    }

.card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-body {
    padding: 1rem;
}

/* Form validation */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.125rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.125rem rgba(25, 135, 84, 0.25);
}

/* Button styling */
.btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

    .btn-success:hover {
        background-color: #157347;
        border-color: #146c43;
    }

/* Label styling */
.form-label {
    margin-bottom: 0.25rem;
    font-weight: 600;
    color: #333;
}

    .form-label.small {
        font-size: 0.875rem;
    }

/* Text utilities */
.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* Form text */
.form-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Switch styling */
.form-check-input {
    width: 2em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: #dee2e6;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 2em;
}

    .form-check-input:checked {
        background-color: #006666;
        border-color: #006666;
    }

.form-check-label {
    margin-left: 0.5rem;
}

/* Alert styling */
.alert {
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Spacing utilities */
.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

/* Grid utilities */
.g-3 > * {
    margin-bottom: 1rem;
}

.g-3 .col-sm-6:not(:last-child) {
    margin-bottom: 1rem;
}

/* Responsive design - Mobile First */
.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 500;
}

/* Small devices (landscape phones, 576px and up) */
.small-device .dashboard-header h1 {
    font-size: 1.5rem;
}

.small-device .col-sm-6 {
    margin-bottom: 0.75rem;
}

.small-device .card-body {
    padding: 0.75rem;
}

.small-device .btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.9rem;
}

/* Extra small devices (portrait phones, less than 576px) */
.extra-small-device .dashboard-header {
    text-align: center;
}

    .extra-small-device .dashboard-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

.extra-small-device .btn {
    width: 100%;
}

/* Focus styles for accessibility */
.form-control:focus,
.form-select:focus {
    border-color: #006666;
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 102, 0.25);
}

.btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 102, 0.25);
}

/* Animation for smooth transitions */
.card,
.form-control,
.form-select,
.btn {
    transition: all 0.2s ease-in-out;
}

/* Print styles */
.print-hidden {
    display: block;
}

/* Dark mode support (if needed) */
.dark-mode .card {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.dark-mode .card-header {
    background-color: #4a5568;
    border-color: #718096;
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
}

    .dark-mode .form-control:focus,
    .dark-mode .form-select:focus {
        background-color: #4a5568;
        border-color: #006666;
        color: #e2e8f0;
    }
