:root {
    --tiffany-blue: #81D8D0;
    --turquoise: #40E0D0;
    --dark-turquoise: #00CED1;
    --light-tiffany: #E0F7FA;
}

body {
    background: linear-gradient(135deg, var(--light-tiffany) 0%, #ffffff 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-navbar {
    background: linear-gradient(135deg, var(--tiffany-blue) 0%, var(--turquoise) 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    margin-left: 10px;
}

.custom-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    background: white;
    margin-bottom: 30px;
}

.custom-card .card-header {
    background: linear-gradient(135deg, var(--tiffany-blue) 0%, var(--turquoise) 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    padding: 20px;
    border: none;
}

.custom-card .card-header h2 {
    font-weight: 700;
    margin: 0;
}

.section-header {
    background: linear-gradient(135deg, var(--light-tiffany) 0%, #f8f9fa 100%);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--turquoise);
}

.section-header h5 {
    margin: 0;
    color: var(--dark-turquoise);
    font-weight: 600;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--tiffany-blue);
    box-shadow: 0 0 0 0.2rem rgba(129, 216, 208, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--tiffany-blue) 0%, var(--turquoise) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(129, 216, 208, 0.4);
}

.btn-outline-light {
    border-radius: 8px;
    padding: 8px 20px;
}

/* File input styling */
input[type="file"] {
    padding: 8px;
}

/* Preview images */
#photoPreview, #signaturePreview {
    border: 2px dashed var(--tiffany-blue);
    border-radius: 8px;
    padding: 5px;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message */
.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: none;
    border-radius: 8px;
    color: #155724;
}

/* Responsive design */
@media (max-width: 768px) {
    .brand-text {
        font-size: 1rem;
    }
    
    .custom-card {
        margin: 10px;
    }
    
    .section-header h5 {
        font-size: 1.1rem;
    }
}

/* Select2 customization */
.select2-container--default .select2-selection--single {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    height: 45px;
    padding: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--tiffany-blue);
}

/* Select2 customization for searchable dropdowns */
.select2-container--default .select2-selection--single {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    height: 45px;
    padding: 8px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 45px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--tiffany-blue);
    box-shadow: 0 0 0 0.2rem rgba(129, 216, 208, 0.25);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--tiffany-blue);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
}

/* Loading states for dropdowns */
.loading-dropdown {
    opacity: 0.6;
    pointer-events: none;
}

/* Form validation styles */
.is-invalid {
    border-color: #dc3545 !important;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}