﻿/* 
=================================================================
    Employee Registration - Elegant Form Styles
    Designed for PTO-SMS System
    Version: 1.0
=================================================================
*/

/* Registration Wrapper - Background Gradient */
.registration-wrapper {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f2f8 100%);
    min-height: 100vh;
    padding: 2rem;
}

/* Main Card Styling */
.registration-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .registration-card:hover {
        box-shadow: 0 30px 50px rgba(52, 84, 209, 0.12), 0 15px 30px rgba(0, 0, 0, 0.08);
    }

/* Elegant Card Header with Gradient */
.card-header-elegant {
    background: linear-gradient(135deg, #3454d1 0%, #1e3a8a 100%);
    padding: 2rem 2.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

    .card-header-elegant::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transform: rotate(25deg);
    }

    .card-header-elegant::after {
        content: '';
        position: absolute;
        bottom: -50%;
        left: -10%;
        width: 250px;
        height: 250px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

/* Header Typography */
.header-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.header-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Section Titles with Icons */
.section-title {
    display: flex;
    align-items: center;
    margin: 1.5rem 0 1.5rem 0;
}

.section-title-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3454d1 0%, #1e3a8a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    box-shadow: 0 6px 12px rgba(52, 84, 209, 0.2);
}

    .section-title-icon i {
        color: white;
        font-size: 1.2rem;
    }

.section-title-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
}

.section-divider {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, #e5e7eb 0%, #e5e7eb 50%, transparent 100%);
    margin-left: 20px;
}

/* Form Labels */
.form-label-elegant {
    font-weight: 500;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

/* Form Controls */
.form-control-elegant, .form-select-elegant {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
    width: 100%;
}

    .form-control-elegant:focus, .form-select-elegant:focus {
        border-color: #3454d1;
        box-shadow: 0 0 0 4px rgba(52, 84, 209, 0.1);
        outline: none;
    }

    .form-control-elegant:hover, .form-select-elegant:hover {
        border-color: #94a3b8;
    }

/* Required Field Star */
.required-star {
    color: #dc2626;
    font-size: 1.2rem;
    line-height: 1;
    margin-left: 2px;
    position: relative;
    top: 2px;
}

/* Input Groups with Icons */
.input-group-elegant {
    position: relative;
}

    .input-group-elegant i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        z-index: 10;
    }

    .input-group-elegant .form-control-elegant {
        padding-left: 2.8rem;
    }

/* Bank Account Grid */
.bank-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 0.5rem;
}

.bank-account-item {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

    .bank-account-item:hover {
        border-color: #3454d1;
        box-shadow: 0 8px 16px rgba(52, 84, 209, 0.08);
    }

.bank-account-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

    .bank-account-label img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
    }

    .bank-account-label span {
        font-weight: 600;
        color: #1e293b;
    }

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.btn-elegant {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    border: none;
}

.btn-elegant-primary {
    background: linear-gradient(135deg, #3454d1 0%, #1e3a8a 100%);
    border: none;
    color: white;
    box-shadow: 0 8px 16px rgba(52, 84, 209, 0.3);
}

    .btn-elegant-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 24px rgba(52, 84, 209, 0.4);
        color: white;
    }

.btn-elegant-light {
    background: white;
    border: 2px solid #e9ecef;
    color: #475569;
}

    .btn-elegant-light:hover {
        background: #f8fafc;
        border-color: #94a3b8;
        color: #1e293b;
    }

/* Select2 Customization */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    min-height: 50px;
}

/* Datepicker Styling */
.datepicker {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    width: 100%;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

    .step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 20px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: #e9ecef;
        z-index: 1;
    }

    .step.active:not(:last-child)::after {
        background: linear-gradient(90deg, #3454d1 0%, #e9ecef 100%);
    }

    .step.completed:not(:last-child)::after {
        background: #3454d1;
    }

.step-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.step.active .step-icon {
    background: #3454d1;
    border-color: #3454d1;
    color: white;
}

.step.completed .step-icon {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.step.active .step-label {
    color: #3454d1;
    font-weight: 600;
}

/* Toast Notification */
.toast-elegant {
    background: white;
    border-left: 4px solid #3454d1;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bank-account-grid {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .registration-wrapper {
        padding: 1rem;
    }

    .card-header-elegant {
        padding: 1.5rem;
    }

    .header-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .action-buttons {
        flex-direction: column;
    }

    .btn-elegant {
        width: 100%;
    }
}
/* Search Section Styles */
.search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.search-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

    .search-input:focus {
        border-color: #3454d1;
        box-shadow: 0 0 0 4px rgba(52, 84, 209, 0.1);
        outline: none;
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    z-index: 10;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

    .search-result-item:hover {
        background-color: #f8fafc;
    }

    .search-result-item.selected {
        background-color: #e9ecef;
        border-left: 3px solid #3454d1;
    }

.search-result-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.search-result-details {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
}

    .search-result-details i {
        width: 16px;
        margin-right: 0.25rem;
        color: #94a3b8;
    }

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e9ecef;
    border-top-color: #3454d1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Selected employee indicator */
.selected-employee-badge {
    background: linear-gradient(135deg, #3454d1 0%, #1e3a8a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .selected-employee-badge i {
        font-size: 1rem;
    }


/* Search Section Styles */
.search-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.search-label {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: white;
}

    .search-input:focus {
        border-color: #3454d1;
        box-shadow: 0 0 0 4px rgba(52, 84, 209, 0.1);
        outline: none;
    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.2rem;
    z-index: 10;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 14px 14px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

    .search-result-item:hover {
        background-color: #f8fafc;
    }

    .search-result-item.selected {
        background-color: #e9ecef;
        border-left: 3px solid #3454d1;
    }

.search-result-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.search-result-details {
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
}

    .search-result-details i {
        width: 16px;
        margin-right: 0.25rem;
        color: #94a3b8;
    }

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #e9ecef;
    border-top-color: #3454d1;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.selected-employee-badge {
    background: linear-gradient(135deg, #3454d1 0%, #1e3a8a 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

    .selected-employee-badge i {
        font-size: 1rem;
    }


/* ============================================
   ELEGANT DROPDOWN STYLES - Match text inputs
   ============================================ */

/* Dropdown container - same as input-group-elegant */
.select-group-elegant {
    position: relative;
    display: flex;
    align-items: center;
}

    .select-group-elegant i {
        position: absolute;
        left: 16px;
        color: #3454d1;
        font-size: 1.1rem;
        z-index: 10;
        pointer-events: none;
    }

/* Style the select element to match text inputs */
select.form-select-elegant {
    width: 100%;
    padding: 12px 16px 12px 45px !important;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233454d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    cursor: pointer;
}

    select.form-select-elegant:hover {
        border-color: #cbd5e0;
    }

    select.form-select-elegant:focus {
        outline: none;
        border-color: #3454d1;
        box-shadow: 0 0 0 4px rgba(52, 84, 209, 0.1);
    }

/* Style for select2 dropdown to match elegant theme */
.select2-container--bootstrap-5 .select2-selection {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    padding: 8px 16px 8px 40px !important;
    height: auto !important;
    min-height: 48px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233454d1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
    color: #212529 !important;
    font-size: 0.95rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #6c757d !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    display: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #3454d1 !important;
    color: white !important;
}

.select2-container--bootstrap-5 .select2-results__option[aria-selected=true] {
    background-color: #f8f9fa !important;
    color: #3454d1 !important;
}

/* Position the icon for select2 */
.select2-container--bootstrap-5 {
    position: relative;
}

    .select2-container--bootstrap-5::before {
        content: '';
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        z-index: 1000;
        pointer-events: none;
    }

/* Specific icons for each dropdown */
#Office.select2-hidden-accessible + .select2-container--bootstrap-5::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233454d1' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
}

#Position.select2-hidden-accessible + .select2-container--bootstrap-5::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233454d1' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E");
}

#NameExtension.select2-hidden-accessible + .select2-container--bootstrap-5::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233454d1' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}