.sauber-absences-wrap {
    max-width: 1000px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    color: #333;
}

.sauber-manager-header {
    text-align: center;
    margin-bottom: 40px;
}

.sauber-manager-top-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.sauber-manager-top-bar h1 {
    margin: 0 !important;
    white-space: nowrap;
}

.sauber-manager-top-bar .sauber-logout-btn {
    justify-self: end;
}

.sauber-manager-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: #58319b;
    margin-bottom: 12px;
}

.sauber-manager-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.sauber-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #efebff;
}

/* Login Card */
.sauber-login-card {
    max-width: 450px;
    margin: 60px auto;
    background: #fff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 50px rgba(88, 49, 155, 0.12);
    border: 1px solid #efebff;
    text-align: center;
}

.sauber-login-header { margin-bottom: 35px; }
.sauber-login-header .dashicons { font-size: 50px; width: 50px; height: 50px; color: #58319b; margin-bottom: 20px; }
.sauber-login-header h2 { font-size: 26px; color: #333; margin-bottom: 10px; font-weight: 800; }
.sauber-login-header p { color: #666; font-size: 15px; }

.sauber-logout-btn {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sauber-logout-btn:hover {
    background: #f8f9fa;
    color: #e53e3e;
    border-color: #fed7d7;
}

.sauber-back-btn {
    background: #fff;
    color: #58319b;
    border: 2px solid #58319b;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    justify-self: end;
    width: fit-content;
}

.sauber-back-btn:hover {
    background: #58319b;
    color: #fff;
    box-shadow: 0 4px 12px rgba(88, 49, 155, 0.15);
}

.sauber-back-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sauber-card-header {
    margin-bottom: 30px;
}

.sauber-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: #58319b;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.sauber-card h2 .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Form Styles */
.sauber-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    align-items: flex-end;
}

.sauber-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sauber-form-group label {
    font-weight: 700;
    color: #444;
    font-size: 14px;
}

.sauber-input {
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fcfaff;
    width: 100%;
}

.sauber-input:focus {
    border-color: #58319b;
    outline: none;
    box-shadow: 0 0 0 4px rgba(88, 49, 155, 0.1);
    background: #fff;
}

/* Datepicker Icon Styles */
.sauber-input-icon {
    position: relative;
    width: 100%;
}

.sauber-input-icon .calendar-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #58319b;
    pointer-events: none;
    z-index: 2;
    transition: all 0.2s ease;
    font-size: 20px;
}

.sauber-input-icon:focus-within .calendar-icon {
    color: #3c1d72;
}

.abs-datepicker {
    padding-right: 45px !important;
}

.flatpickr-calendar {
    box-shadow: 0 10px 30px rgba(88, 49, 155, 0.15) !important;
    border: 1px solid #efebff !important;
    border-radius: 12px !important;
}

.sauber-submit-btn {
    background: #58319b;
    color: #fff;
    border: none;
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    box-shadow: 0 4px 15px rgba(88, 49, 155, 0.3);
}

.sauber-submit-btn:hover {
    background: #3c1d72;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 49, 155, 0.4);
}

.sauber-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Table Styles */
.sauber-table-container {
    overflow-x: auto;
    border-radius: 12px;
}

.sauber-table {
    width: 100%;
    border-collapse: collapse;
}

.sauber-table th {
    text-align: left;
    padding: 18px 20px;
    background: #f8f7ff;
    color: #58319b;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sauber-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 15px;
}

.sauber-table tr:hover {
    background: #fdfbff;
}

.td-date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-chip {
    background: #f0ecf7;
    color: #58319b;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
}

.date-arrow {
    color: #ccc;
    font-size: 18px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.status-active { background: #e6fffa; color: #38a169; }
.status-upcoming { background: #ebf8ff; color: #3182ce; }
.status-past { background: #edf2f7; color: #718096; }

.reason-text {
    color: #666;
    font-style: italic;
}

.sauber-delete-abs-btn {
    background: #fff;
    color: #e53e3e;
    border: 1px solid #fed7d7;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sauber-delete-abs-btn:hover {
    background: #e53e3e;
    color: #fff;
    border-color: #e53e3e;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.2);
}

.sauber-table-empty {
    text-align: center;
    padding: 60px !important;
    color: #999;
    font-style: italic;
}

.sauber-loading {
    text-align: center;
    padding: 60px;
}

.sauber-loading .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #58319b;
    margin-bottom: 15px;
}

.sauber-loading p {
    color: #58319b;
    font-weight: 600;
}

.sauber-form-msg {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
}

.sauber-form-msg.success { background: #e6fffa; color: #234e33; border: 1px solid #b2f5ea; }
.sauber-form-msg.error { background: #fff5f5; color: #742a2a; border: 1px solid #feb2b2; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}

@media (max-width: 768px) {
    .sauber-manager-top-bar {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
        text-align: center;
    }
    
    .sauber-manager-top-bar h1 {
        white-space: normal !important;
        font-size: 24px !important;
    }
    
    .sauber-back-btn {
        justify-self: center;
        order: 2; /* Place button below the title on mobile for modern look */
    }
    
    .sauber-manager-top-bar .header-spacer {
        display: none;
    }

    .sauber-form-grid {
        grid-template-columns: 1fr;
    }
    
    .sauber-card {
        padding: 25px;
    }
}
