/**
 * Public styles for HRDROP2 Attendance Clock
 * IMPORTANT: These styles use high specificity to prevent theme overrides
 * FULL SCREEN LAYOUT - Optimized for all devices
 */

/* Global full-screen reset for HRDROP2 pages - APP-LIKE ON ALL DEVICES */
html,
body.hrdrop2-page,
body:has(.hrdrop2-attendance-clock-wrapper),
body:has(.hrdrop2-leave-request-wrapper),
body:has(.hrdrop2-login-wrapper),
body:has(.hrdrop2-advance-wrapper),
body:has(.hrdrop2-enrollment-wrapper),
body:has(.hrdrop2-employee-reports-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Remove all side spaces from HTML and body on ALL screen sizes */
html:has(.hrdrop2-attendance-clock-wrapper),
html:has(.hrdrop2-leave-request-wrapper),
html:has(.hrdrop2-login-wrapper),
html:has(.hrdrop2-advance-wrapper),
html:has(.hrdrop2-enrollment-wrapper),
html:has(.hrdrop2-employee-reports-wrapper) {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* ALL DEVICES: Remove ALL side spaces - perfect app-like fit */
/* Remove side spaces from all HRDROP2 pages on ALL screen sizes */
body:has(.hrdrop2-attendance-clock-wrapper),
body:has(.hrdrop2-leave-request-wrapper),
body:has(.hrdrop2-login-wrapper),
body:has(.hrdrop2-advance-wrapper),
body:has(.hrdrop2-enrollment-wrapper),
body:has(.hrdrop2-employee-reports-wrapper),
body.hrdrop2-page {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
}

/* Remove side spaces from all wrappers on ALL screen sizes */
.hrdrop2-attendance-clock-wrapper,
.hrdrop2-leave-request-wrapper,
.hrdrop2-login-wrapper,
.hrdrop2-advance-wrapper,
.hrdrop2-enrollment-wrapper,
.hrdrop2-employee-reports-wrapper {
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100vw !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Unified Modern Container Styles for All Pages */
.hrdrop2-attendance-clock,
.hrdrop2-login-form-container,
.hrdrop2-enrollment-container,
.hrdrop2-leave-request-form,
.hrdrop2-advance-form,
.hrdrop2-employee-reports-container,
.hrdrop2-login-success,
.hrdrop2-admin-dashboard {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    background: transparent !important;
    overscroll-behavior: contain !important;
}

/* Modern Page Header - Reusable Across All Pages */
.modern-page-header {
    padding: 24px 20px 20px 20px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.modern-page-header .header-time-date {
    margin-bottom: 12px;
}

.modern-page-header .current-time {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.modern-page-header .current-date {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.modern-page-header .page-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 12px 0 0 0;
    letter-spacing: 0.5px;
}

/* Glassmorphism Cards for All Pages */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px;
    margin: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Modern Button Styles - Reusable */
.modern-btn {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.modern-btn:active {
    transform: scale(0.96);
}

.modern-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.modern-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modern-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modern Form Input Styles */
.modern-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modern-input:focus {
    outline: none;
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

/* Modern Footer - Sticky Bottom */
.modern-page-footer {
    margin: auto 0 0 0;
    padding: 20px;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-sizing: border-box;
}

/* Mobile: Tighter internal spacing */
@media (max-width: 768px) {
    .hrdrop2-attendance-clock,
    .hrdrop2-login-form-container,
    .hrdrop2-enrollment-container,
    .hrdrop2-leave-request-form,
    .hrdrop2-advance-form,
    .hrdrop2-employee-reports-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Small mobile: Even tighter spacing */
@media (max-width: 480px) {
    .hrdrop2-attendance-clock,
    .hrdrop2-login-form-container,
    .hrdrop2-enrollment-container,
    .hrdrop2-leave-request-form,
    .hrdrop2-advance-form,
    .hrdrop2-employee-reports-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Override WordPress theme containers for full-width app-like appearance - ALL PAGES */
body:has(.hrdrop2-login-wrapper) .site,
body:has(.hrdrop2-login-wrapper) .site-main,
body:has(.hrdrop2-login-wrapper) .site-content,
body:has(.hrdrop2-login-wrapper) .content-area,
body:has(.hrdrop2-login-wrapper) .entry-content,
body:has(.hrdrop2-login-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-login-wrapper) .container,
body:has(.hrdrop2-login-wrapper) .wrap,
body:has(.hrdrop2-login-wrapper) .main-content,
body:has(.hrdrop2-login-wrapper) article,
body:has(.hrdrop2-login-wrapper) .page-content,
body:has(.hrdrop2-enrollment-wrapper) .site,
body:has(.hrdrop2-enrollment-wrapper) .site-main,
body:has(.hrdrop2-enrollment-wrapper) .site-content,
body:has(.hrdrop2-enrollment-wrapper) .content-area,
body:has(.hrdrop2-enrollment-wrapper) .entry-content,
body:has(.hrdrop2-enrollment-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-enrollment-wrapper) .container,
body:has(.hrdrop2-enrollment-wrapper) .wrap,
body:has(.hrdrop2-enrollment-wrapper) .main-content,
body:has(.hrdrop2-enrollment-wrapper) article,
body:has(.hrdrop2-enrollment-wrapper) .page-content,
body:has(.hrdrop2-attendance-clock-wrapper) .site,
body:has(.hrdrop2-attendance-clock-wrapper) .site-main,
body:has(.hrdrop2-attendance-clock-wrapper) .site-content,
body:has(.hrdrop2-attendance-clock-wrapper) .content-area,
body:has(.hrdrop2-attendance-clock-wrapper) .entry-content,
body:has(.hrdrop2-attendance-clock-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-attendance-clock-wrapper) .container,
body:has(.hrdrop2-attendance-clock-wrapper) .wrap,
body:has(.hrdrop2-attendance-clock-wrapper) .main-content,
body:has(.hrdrop2-attendance-clock-wrapper) article,
body:has(.hrdrop2-attendance-clock-wrapper) .page-content,
body:has(.hrdrop2-leave-request-wrapper) .site,
body:has(.hrdrop2-leave-request-wrapper) .site-main,
body:has(.hrdrop2-leave-request-wrapper) .site-content,
body:has(.hrdrop2-leave-request-wrapper) .content-area,
body:has(.hrdrop2-leave-request-wrapper) .entry-content,
body:has(.hrdrop2-leave-request-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-leave-request-wrapper) .container,
body:has(.hrdrop2-leave-request-wrapper) .wrap,
body:has(.hrdrop2-leave-request-wrapper) .main-content,
body:has(.hrdrop2-leave-request-wrapper) article,
body:has(.hrdrop2-leave-request-wrapper) .page-content,
body:has(.hrdrop2-advance-wrapper) .site,
body:has(.hrdrop2-advance-wrapper) .site-main,
body:has(.hrdrop2-advance-wrapper) .site-content,
body:has(.hrdrop2-advance-wrapper) .content-area,
body:has(.hrdrop2-advance-wrapper) .entry-content,
body:has(.hrdrop2-advance-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-advance-wrapper) .container,
body:has(.hrdrop2-advance-wrapper) .wrap,
body:has(.hrdrop2-advance-wrapper) .main-content,
body:has(.hrdrop2-advance-wrapper) article,
body:has(.hrdrop2-advance-wrapper) .page-content,
body:has(.hrdrop2-employee-reports-wrapper) .site,
body:has(.hrdrop2-employee-reports-wrapper) .site-main,
body:has(.hrdrop2-employee-reports-wrapper) .site-content,
body:has(.hrdrop2-employee-reports-wrapper) .content-area,
body:has(.hrdrop2-employee-reports-wrapper) .entry-content,
body:has(.hrdrop2-employee-reports-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-employee-reports-wrapper) .container,
body:has(.hrdrop2-employee-reports-wrapper) .wrap,
body:has(.hrdrop2-employee-reports-wrapper) .main-content,
body:has(.hrdrop2-employee-reports-wrapper) article,
body:has(.hrdrop2-employee-reports-wrapper) .page-content {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100vw !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {

    body:has(.hrdrop2-login-wrapper) .site,
    body:has(.hrdrop2-login-wrapper) .site-main,
    body:has(.hrdrop2-login-wrapper) .site-content,
    body:has(.hrdrop2-login-wrapper) .content-area,
    body:has(.hrdrop2-login-wrapper) .entry-content,
    body:has(.hrdrop2-login-wrapper) .wp-block-group__inner-container,
    body:has(.hrdrop2-login-wrapper) .container,
    body:has(.hrdrop2-login-wrapper) .wrap,
    body:has(.hrdrop2-login-wrapper) .main-content,
    body:has(.hrdrop2-login-wrapper) article,
    body:has(.hrdrop2-login-wrapper) .page-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* High specificity wrapper to ensure styles are maintained - FULL SCREEN APP-LIKE */
/* Unified Modern Design for All Page Wrappers */
body .hrdrop2-attendance-clock-wrapper,
body .hrdrop2-leave-request-wrapper,
body .hrdrop2-login-wrapper,
body .hrdrop2-advance-wrapper,
body .hrdrop2-enrollment-wrapper,
body .hrdrop2-employee-reports-wrapper,
body .hrdrop2-admin-dashboard-wrapper {
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: #0a0e1a !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 9999 !important;
}

/* Ensure all sections within wrappers are organized and full-width */
.hrdrop2-attendance-clock-wrapper > *,
.hrdrop2-leave-request-wrapper > *,
.hrdrop2-login-wrapper > *,
.hrdrop2-advance-wrapper > *,
.hrdrop2-enrollment-wrapper > *,
.hrdrop2-employee-reports-wrapper > * {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Remove any max-width constraints from internal sections */
.hrdrop2-attendance-clock-wrapper section,
.hrdrop2-leave-request-wrapper section,
.hrdrop2-login-wrapper section,
.hrdrop2-advance-wrapper section,
.hrdrop2-enrollment-wrapper section,
.hrdrop2-employee-reports-wrapper section,
.hrdrop2-attendance-clock-wrapper .section,
.hrdrop2-leave-request-wrapper .section,
.hrdrop2-login-wrapper .section,
.hrdrop2-advance-wrapper .section,
.hrdrop2-enrollment-wrapper .section,
.hrdrop2-employee-reports-wrapper .section {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .hrdrop2-attendance-clock-wrapper section,
    .hrdrop2-leave-request-wrapper section,
    .hrdrop2-login-wrapper section,
    .hrdrop2-advance-wrapper section,
    .hrdrop2-enrollment-wrapper section,
    .hrdrop2-employee-reports-wrapper section,
    .hrdrop2-attendance-clock-wrapper .section,
    .hrdrop2-leave-request-wrapper .section,
    .hrdrop2-login-wrapper .section,
    .hrdrop2-advance-wrapper .section,
    .hrdrop2-enrollment-wrapper .section,
    .hrdrop2-employee-reports-wrapper .section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-attendance-clock-wrapper section,
    .hrdrop2-leave-request-wrapper section,
    .hrdrop2-login-wrapper section,
    .hrdrop2-advance-wrapper section,
    .hrdrop2-enrollment-wrapper section,
    .hrdrop2-employee-reports-wrapper section,
    .hrdrop2-attendance-clock-wrapper .section,
    .hrdrop2-leave-request-wrapper .section,
    .hrdrop2-login-wrapper .section,
    .hrdrop2-advance-wrapper .section,
    .hrdrop2-enrollment-wrapper .section,
    .hrdrop2-employee-reports-wrapper .section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
}

/* Remove any foggy overlays or backdrops on enrollment, clock-in, and login pages - COMPREHENSIVE */
body:has(.hrdrop2-enrollment-wrapper) .modal-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .modal-overlay,
body:has(.hrdrop2-login-wrapper) .modal-overlay,
body:has(.hrdrop2-enrollment-wrapper) .success-modal-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .success-modal-overlay,
body:has(.hrdrop2-login-wrapper) .success-modal-overlay,
body:has(.hrdrop2-enrollment-wrapper) [class*="overlay"],
body:has(.hrdrop2-attendance-clock-wrapper) [class*="overlay"],
body:has(.hrdrop2-login-wrapper) [class*="overlay"],
body:has(.hrdrop2-enrollment-wrapper) [class*="backdrop"],
body:has(.hrdrop2-attendance-clock-wrapper) [class*="backdrop"],
body:has(.hrdrop2-login-wrapper) [class*="backdrop"],
body:has(.hrdrop2-leave-request-wrapper) [class*="overlay"],
body:has(.hrdrop2-leave-request-wrapper) [class*="backdrop"],
body:has(.hrdrop2-advance-wrapper) [class*="overlay"],
body:has(.hrdrop2-advance-wrapper) [class*="backdrop"] {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Remove WordPress auth check overlay on login page */
body:has(.hrdrop2-login-wrapper) #wp-auth-check-bg,
body:has(.hrdrop2-login-wrapper) .wp-auth-check-bg,
.hrdrop2-login-wrapper #wp-auth-check-bg,
.hrdrop2-login-wrapper .wp-auth-check-bg {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
}

/* Remove any other modal backdrops on login and clock-in pages */
body:has(.hrdrop2-login-wrapper) .modal-backdrop,
body:has(.hrdrop2-attendance-clock-wrapper) .modal-backdrop,
body:has(.hrdrop2-login-wrapper) [id*="backdrop"],
body:has(.hrdrop2-attendance-clock-wrapper) [id*="backdrop"],
body:has(.hrdrop2-login-wrapper) [class*="backdrop"],
body:has(.hrdrop2-attendance-clock-wrapper) [class*="backdrop"],
.hrdrop2-login-wrapper .modal-backdrop,
.hrdrop2-attendance-clock-wrapper .modal-backdrop,
.hrdrop2-login-wrapper [id*="backdrop"],
.hrdrop2-attendance-clock-wrapper [id*="backdrop"],
.hrdrop2-login-wrapper [class*="backdrop"],
.hrdrop2-attendance-clock-wrapper [class*="backdrop"] {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
}

/* Remove any fixed position overlays with dark backgrounds on login and clock-in pages */
body:has(.hrdrop2-login-wrapper) [style*="background"][style*="rgba(0, 0, 0"],
body:has(.hrdrop2-attendance-clock-wrapper) [style*="background"][style*="rgba(0, 0, 0"],
body:has(.hrdrop2-login-wrapper) [style*="background"][style*="rgb(0, 0, 0"],
body:has(.hrdrop2-attendance-clock-wrapper) [style*="background"][style*="rgb(0, 0, 0"],
body:has(.hrdrop2-login-wrapper) [style*="background-color"][style*="rgba(0"],
body:has(.hrdrop2-attendance-clock-wrapper) [style*="background-color"][style*="rgba(0"],
body:has(.hrdrop2-login-wrapper) [style*="background-color"][style*="rgb(0"],
body:has(.hrdrop2-attendance-clock-wrapper) [style*="background-color"][style*="rgb(0"] {
    background: transparent !important;
}

/* Ensure login and clock-in wrappers themselves are clear */
.hrdrop2-login-wrapper,
.hrdrop2-attendance-clock-wrapper {
    position: relative !important;
    z-index: 1 !important;
}

/* Remove any parent overlays */
body:has(.hrdrop2-login-wrapper)::before,
body:has(.hrdrop2-login-wrapper)::after,
body:has(.hrdrop2-attendance-clock-wrapper)::before,
body:has(.hrdrop2-attendance-clock-wrapper)::after {
    display: none !important;
}

/* Remove jQuery UI dialog overlays on ALL HRDROP2 pages - MOST AGGRESSIVE */
body:has(.hrdrop2-attendance-clock-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-login-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-enrollment-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-leave-request-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-advance-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .ui-front,
body:has(.hrdrop2-login-wrapper) .ui-front,
body:has(.hrdrop2-enrollment-wrapper) .ui-front,
body:has(.hrdrop2-attendance-clock-wrapper) .ui-dialog-overlay,
body:has(.hrdrop2-login-wrapper) .ui-dialog-overlay,
body:has(.hrdrop2-enrollment-wrapper) .ui-dialog-overlay,
.hrdrop2-attendance-clock-wrapper .ui-widget-overlay,
.hrdrop2-login-wrapper .ui-widget-overlay,
.hrdrop2-enrollment-wrapper .ui-widget-overlay,
.hrdrop2-attendance-clock-wrapper .ui-front,
.hrdrop2-login-wrapper .ui-front,
.hrdrop2-enrollment-wrapper .ui-front,
.hrdrop2-attendance-clock-wrapper .ui-dialog-overlay,
.hrdrop2-login-wrapper .ui-dialog-overlay,
.hrdrop2-enrollment-wrapper .ui-dialog-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) [class*="ui-widget"],
body:has(.hrdrop2-login-wrapper) [class*="ui-widget"],
body:has(.hrdrop2-enrollment-wrapper) [class*="ui-widget"],
body:has(.hrdrop2-attendance-clock-wrapper) [class*="ui-dialog"],
body:has(.hrdrop2-login-wrapper) [class*="ui-dialog"],
body:has(.hrdrop2-enrollment-wrapper) [class*="ui-dialog"] {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Remove WordPress media modal backdrop on ALL HRDROP2 pages */
body:has(.hrdrop2-attendance-clock-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-login-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-enrollment-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-leave-request-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-advance-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-attendance-clock-wrapper) .media-modal,
body:has(.hrdrop2-login-wrapper) .media-modal,
body:has(.hrdrop2-enrollment-wrapper) .media-modal,
.hrdrop2-attendance-clock-wrapper .media-modal-backdrop,
.hrdrop2-login-wrapper .media-modal-backdrop,
.hrdrop2-enrollment-wrapper .media-modal-backdrop,
.hrdrop2-attendance-clock-wrapper .media-modal,
.hrdrop2-login-wrapper .media-modal,
.hrdrop2-enrollment-wrapper .media-modal {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Remove any element with position fixed and dark background on ALL HRDROP2 pages */
body:has(.hrdrop2-attendance-clock-wrapper) [style*="position: fixed"][style*="background"],
body:has(.hrdrop2-login-wrapper) [style*="position: fixed"][style*="background"],
body:has(.hrdrop2-enrollment-wrapper) [style*="position: fixed"][style*="background"],
body:has(.hrdrop2-leave-request-wrapper) [style*="position: fixed"][style*="background"],
body:has(.hrdrop2-advance-wrapper) [style*="position: fixed"][style*="background"],
body:has(.hrdrop2-attendance-clock-wrapper) [style*="position:fixed"][style*="background"],
body:has(.hrdrop2-login-wrapper) [style*="position:fixed"][style*="background"],
body:has(.hrdrop2-enrollment-wrapper) [style*="position:fixed"][style*="background"],
.hrdrop2-attendance-clock-wrapper [style*="position: fixed"][style*="background"],
.hrdrop2-login-wrapper [style*="position: fixed"][style*="background"],
.hrdrop2-enrollment-wrapper [style*="position: fixed"][style*="background"],
.hrdrop2-attendance-clock-wrapper [style*="position:fixed"][style*="background"],
.hrdrop2-login-wrapper [style*="position:fixed"][style*="background"],
.hrdrop2-enrollment-wrapper [style*="position:fixed"][style*="background"] {
    background: transparent !important;
    opacity: 0 !important;
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Additional comprehensive overlay removal for all HRDROP2 pages */
body:has(.hrdrop2-attendance-clock-wrapper) body > div[style*="background"],
body:has(.hrdrop2-login-wrapper) body > div[style*="background"],
body:has(.hrdrop2-enrollment-wrapper) body > div[style*="background"],
body:has(.hrdrop2-leave-request-wrapper) body > div[style*="background"],
body:has(.hrdrop2-advance-wrapper) body > div[style*="background"] {
    /* Check if it's a dark overlay */
}

/* Ensure all HRDROP2 pages are clear and visible */
.hrdrop2-attendance-clock-wrapper,
.hrdrop2-login-wrapper,
.hrdrop2-enrollment-wrapper,
.hrdrop2-leave-request-wrapper,
.hrdrop2-advance-wrapper,
.hrdrop2-employee-reports-wrapper {
    position: relative !important;
    z-index: 9999 !important;
    background: transparent !important;
}

/* Remove any backdrop-filter from body and html on HRDROP2 pages */
body:has(.hrdrop2-attendance-clock-wrapper),
body:has(.hrdrop2-login-wrapper),
body:has(.hrdrop2-enrollment-wrapper),
body:has(.hrdrop2-leave-request-wrapper),
body:has(.hrdrop2-advance-wrapper),
body:has(.hrdrop2-employee-reports-wrapper),
html:has(.hrdrop2-attendance-clock-wrapper),
html:has(.hrdrop2-login-wrapper),
html:has(.hrdrop2-enrollment-wrapper),
html:has(.hrdrop2-employee-reports-wrapper) {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove backdrop-filter from body and html pseudo-elements */
body:has(.hrdrop2-attendance-clock-wrapper)::before,
body:has(.hrdrop2-attendance-clock-wrapper)::after,
body:has(.hrdrop2-login-wrapper)::before,
body:has(.hrdrop2-login-wrapper)::after,
body:has(.hrdrop2-enrollment-wrapper)::before,
body:has(.hrdrop2-enrollment-wrapper)::after {
    display: none !important;
    content: none !important;
}

/* PWA Install Prompt on Login Page */
.hrdrop2-install-prompt {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
    position: relative;
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.3);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hrdrop2-install-prompt .install-prompt-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.hrdrop2-install-prompt .install-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hrdrop2-install-prompt .install-text {
    flex: 1;
}

.hrdrop2-install-prompt .install-text h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.hrdrop2-install-prompt .install-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.hrdrop2-install-prompt .install-button {
    background: white;
    color: #2271b1;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hrdrop2-install-prompt .install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: #f0f0f0;
}

.hrdrop2-install-prompt .install-button:active {
    transform: translateY(0);
}

.hrdrop2-install-prompt .install-button-icon {
    font-size: 18px;
}

.hrdrop2-install-prompt .install-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.hrdrop2-install-prompt .install-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* PWA Install Prompt for Logged-in Users */
.hrdrop2-install-prompt-loggedin {
    background: linear-gradient(135deg, #f6f7f7 0%, #ffffff 100%);
    border: 2px solid #2271b1;
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 25px;
    position: relative;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.1);
    animation: slideDown 0.5s ease-out;
}

.hrdrop2-install-prompt-loggedin .install-prompt-content-loggedin {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.hrdrop2-install-prompt-loggedin .install-icon-loggedin {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #2271b1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hrdrop2-install-prompt-loggedin .install-text-loggedin {
    flex: 1;
}

.hrdrop2-install-prompt-loggedin .install-text-loggedin h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hrdrop2-install-prompt-loggedin .install-text-loggedin p {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.hrdrop2-install-prompt-loggedin .install-button-loggedin {
    background: #2271b1;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hrdrop2-install-prompt-loggedin .install-button-loggedin:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.hrdrop2-install-prompt-loggedin .install-button-loggedin:active {
    transform: translateY(0);
}

.hrdrop2-install-prompt-loggedin .install-button-icon {
    font-size: 16px;
}

.hrdrop2-install-prompt-loggedin .install-close-loggedin {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.hrdrop2-install-prompt-loggedin .install-close-loggedin:hover {
    background: #f0f0f0;
    color: #333;
}

/* Hide install prompt when dismissed */
.hrdrop2-install-prompt.hidden,
.hrdrop2-install-prompt-loggedin.hidden {
    display: none !important;
}

/* Always Visible Install Button for Login Page */
.hrdrop2-install-button-container {
    margin-bottom: 30px;
    text-align: center;
}

.hrdrop2-install-app-button {
    width: 100%;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
    position: relative;
    overflow: hidden;
}

.hrdrop2-install-app-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.hrdrop2-install-app-button:hover::before {
    left: 100%;
}

.hrdrop2-install-app-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
    background: linear-gradient(135deg, #135e96 0%, #0d4a73 100%);
}

.hrdrop2-install-app-button:active {
    transform: translateY(0);
}

.hrdrop2-install-app-button .install-btn-icon {
    font-size: 24px;
    line-height: 1;
}

.hrdrop2-install-app-button .install-btn-text {
    font-size: 16px;
    font-weight: 600;
}

.hrdrop2-install-app-button .install-btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.hrdrop2-install-app-button:hover .install-btn-arrow {
    transform: translateX(4px);
}

.install-btn-description {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* Install Button for Logged-in Users */
.hrdrop2-install-button-container-loggedin {
    margin-bottom: 25px;
}

.hrdrop2-install-app-button-loggedin {
    width: 100%;
    background: linear-gradient(135deg, #f6f7f7 0%, #ffffff 100%);
    color: #333;
    border: 2px solid #2271b1;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}

.hrdrop2-install-app-button-loggedin:hover {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.hrdrop2-install-app-button-loggedin:active {
    transform: translateY(0);
}

.hrdrop2-install-app-button-loggedin .install-btn-icon {
    font-size: 22px;
    line-height: 1;
}

.hrdrop2-install-app-button-loggedin .install-btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hrdrop2-install-app-button-loggedin .install-btn-text {
    font-size: 15px;
    font-weight: 600;
}

.hrdrop2-install-app-button-loggedin .install-btn-subtext {
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.hrdrop2-install-app-button-loggedin:hover .install-btn-subtext {
    opacity: 0.9;
}

.hrdrop2-install-app-button-loggedin .install-btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.hrdrop2-install-app-button-loggedin:hover .install-btn-arrow {
    transform: translateX(4px);
}

/* Hide install button if app is already installed */
.hrdrop2-standalone .hrdrop2-install-button-container,
.hrdrop2-standalone .hrdrop2-install-button-container-loggedin {
    display: none;
}

.hrdrop2-attendance-clock-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 9999 !important;
}

/* Force remove ALL foggy overlays on clock-in page - most aggressive approach */
/* Only target overlay/backdrop elements, not modal content */
body:has(.hrdrop2-attendance-clock-wrapper) div[class*="overlay"]:not([class*="content"]):not([class*="status"]):not([class*="video"]):not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[id*="overlay"]:not([id*="content"]):not([id*="status"]):not([id*="video"]):not([id*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[class*="backdrop"]:not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[id*="backdrop"]:not([id*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[class*="modal-overlay"]:not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[id*="modal-overlay"]:not([id*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[class*="modal-backdrop"]:not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[id*="modal-backdrop"]:not([id*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[style*="background"][style*="rgba(0"]:not([id*="clock-mode-modal"]):not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[style*="background-color"][style*="rgba(0"]:not([id*="clock-mode-modal"]):not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[style*="backdrop-filter"]:not([id*="clock-mode-modal"]):not([class*="clock-mode-modal"]),
body:has(.hrdrop2-attendance-clock-wrapper) div[style*="opacity"][style*="0."]:not([id*="clock-mode-modal"]):not([class*="clock-mode-modal"]) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    display: none !important;
    z-index: -9999 !important;
}

/* Remove any fixed/absolute positioned foggy elements */
body:has(.hrdrop2-attendance-clock-wrapper) > div[style*="position: fixed"][style*="background"],
body:has(.hrdrop2-attendance-clock-wrapper) > div[style*="position:fixed"][style*="background"],
body:has(.hrdrop2-attendance-clock-wrapper) > div[style*="position: absolute"][style*="background"],
body:has(.hrdrop2-attendance-clock-wrapper) > div[style*="position:absolute"][style*="background"] {
    display: none !important;
    opacity: 0 !important;
}

/* Remove any pseudo-elements creating foggy effects */
body:has(.hrdrop2-attendance-clock-wrapper)::before,
body:has(.hrdrop2-attendance-clock-wrapper)::after,
body:has(.hrdrop2-attendance-clock-wrapper) *::before,
body:has(.hrdrop2-attendance-clock-wrapper) *::after {
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Ensure clock-in wrapper itself is clear and on top */
.hrdrop2-attendance-clock-wrapper {
    position: relative !important;
    z-index: 9999 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Remove any parent foggy backgrounds - EXTREME */
body:has(.hrdrop2-attendance-clock-wrapper),
html:has(body:has(.hrdrop2-attendance-clock-wrapper)) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Remove foggy effect from body and html directly */
body:has(.hrdrop2-attendance-clock-wrapper)::before,
body:has(.hrdrop2-attendance-clock-wrapper)::after,
html:has(body:has(.hrdrop2-attendance-clock-wrapper))::before,
html:has(body:has(.hrdrop2-attendance-clock-wrapper))::after {
    display: none !important;
    background: transparent !important;
}

/* Remove any theme or WordPress overlays */
body:has(.hrdrop2-attendance-clock-wrapper) > div:not(.hrdrop2-attendance-clock-wrapper)[style*="position: fixed"],
body:has(.hrdrop2-attendance-clock-wrapper) > div:not(.hrdrop2-attendance-clock-wrapper)[style*="position:fixed"] {
    display: none !important;
}

.hrdrop2-attendance-clock {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    overscroll-behavior: contain !important;
}

/* Mobile: Tighter padding for app-like feel */
@media (max-width: 768px) {
    .hrdrop2-attendance-clock {
        padding: 15px 12px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-attendance-clock {
        padding: 12px 8px !important;
        border-radius: 12px !important;
    }
}

/* Modern Mobile-First Clock Header with Time/Date */
.hrdrop2-clock-header {
    padding: 24px 20px 20px 20px;
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-time-date {
    margin-bottom: 12px;
}

.current-time {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.current-date {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.clock-title {
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.5px;
}

/* Mode Selection Cards - Glassmorphism Grid */
.clock-mode-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.mode-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 20px 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    z-index: 10;
    pointer-events: auto !important;
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mode-card.active::before,
.mode-card:active::before {
    opacity: 1;
}

.mode-card.active {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.mode-card:active {
    transform: scale(0.98);
}

.mode-card-icon {
    font-size: 32px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.mode-card.active .mode-card-icon {
    transform: scale(1.1);
}

.mode-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 4px;
}

.mode-card-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -4px;
}

/* Mobile: Stack mode cards vertically on small screens */
@media (max-width: 480px) {
    .clock-mode-selection {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }
    
    .mode-card {
        padding: 16px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 16px;
    }
    
    .mode-card-icon {
        font-size: 28px;
    }
    
    .current-time {
        font-size: 40px;
    }
}

.hrdrop2-clock-header .clock-icon {
    margin: 0 auto 20px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.hrdrop2-clock-header h1 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 32px;
    font-weight: 700;
}

.hrdrop2-clock-header .employee-name {
    font-size: 18px;
    color: #646970;
    margin: 0;
    font-weight: 500;
}

.hrdrop2-lateness-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hrdrop2-login-section {
    margin: 30px 0;
    padding: 25px;
    background: #f6f7f7;
    border-radius: 12px;
    border: 2px solid #e5e5e5;
}

.hrdrop2-login-section .login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hrdrop2-login-section label {
    text-align: left;
    font-weight: 600;
    color: #1d2327;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hrdrop2-login-section .required {
    color: #d63638;
}

.hrdrop2-login-section .description {
    margin: 0;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.clock-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    /* Prevents zoom on iOS */
    border: 2px solid #dcdcde;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.clock-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.clock-input.verifying {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath fill='%232271b1' d='M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z' opacity='.25'/%3E%3Cpath fill='%232271b1' d='M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z'%3E%3CanimateTransform attributeName='transform' dur='0.75s' repeatCount='indefinite' type='rotate' values='0 12 12;360 12 12'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px 20px;
    padding-right: 40px;
    border-color: #2271b1;
}

/* Clock Method Selection */
.hrdrop2-clock-method-selection {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e5e5;
}

.method-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.method-separator::before,
.method-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #dcdcde;
}

.method-separator::before {
    left: 0;
}

.method-separator::after {
    right: 0;
}

.separator-text {
    display: inline-block;
    padding: 0 15px;
    background: #fff;
    color: #646970;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.clock-method-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hrdrop2-manual-btn {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
}

.hrdrop2-biometric-btn {
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
}

.hrdrop2-timer-section {
    margin: 30px 0;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #fff;
}

.timer-display {
    margin-bottom: 20px;
}

.timer-label {
    font-size: 14px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.timer-value {
    font-size: 56px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin: 15px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.timer-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.status-indicator.status-active {
    background: #4ade80;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.clock-in-time {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clock-in-time .time-label {
    opacity: 0.9;
    font-size: 14px;
}

.clock-in-time .time-value {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.hrdrop2-welcome-section {
    margin: 30px 0;
    padding: 20px;
}

.welcome-message {
    font-size: 18px;
    color: #646970;
    margin: 0;
}

.hrdrop2-clock-actions-wrapper {
    margin: auto 0 0 0;
    padding: 20px;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    bottom: 0;
    z-index: 100;
    box-sizing: border-box;
}

.hrdrop2-clock-actions {
    margin: 0;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.hrdrop2-clock-btn {
    flex: 1;
    min-width: 140px;
    max-width: 100%;
    min-height: 48px !important;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    pointer-events: auto !important;
    z-index: 100;
}

.hrdrop2-clock-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hrdrop2-clock-btn:active::before {
    width: 300px;
    height: 300px;
}

.hrdrop2-clock-btn:active {
    transform: scale(0.96);
}

.hrdrop2-clock-btn .btn-icon {
    font-size: 24px;
    font-weight: 700;
}

.hrdrop2-clock-in-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.hrdrop2-clock-in-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.hrdrop2-clock-in-btn:active {
    transform: scale(0.96) translateY(0);
}

.hrdrop2-clock-out-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.hrdrop2-clock-out-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.hrdrop2-clock-out-btn:active {
    transform: scale(0.96) translateY(0);
}

.hrdrop2-clock-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hrdrop2-clock-status {
    margin: 20px 0;
    padding: 15px;
    background: #f6f7f7;
    border-radius: 8px;
}

.last-event-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.last-event-info .info-label {
    color: #646970;
    font-weight: 600;
}

.last-event-info .info-value {
    color: #1d2327;
    font-weight: 500;
}

.location-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e5e5;
}

.hrdrop2-location-btn {
    width: 100%;
    background: linear-gradient(135deg, #34a853 0%, #2d8f47 100%);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

.hrdrop2-location-btn:hover {
    background: linear-gradient(135deg, #2d8f47 0%, #256e3a 100%);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.4);
    transform: translateY(-2px);
}

.hrdrop2-location-btn:active {
    transform: translateY(0);
}

.hrdrop2-location-btn .btn-icon {
    font-size: 18px;
    line-height: 1;
}

.hrdrop2-location-btn .btn-text {
    font-size: 14px;
    font-weight: 600;
}

.hrdrop2-message {
    margin: 30px 0;
    padding: 0;
    border-radius: 20px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 5px 20px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: none;
}

.hrdrop2-message.show,
.hrdrop2-message.success,
.hrdrop2-message.error,
.hrdrop2-message.info {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hrdrop2-message .message-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.hrdrop2-message .message-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hrdrop2-message .message-icon svg {
    width: 24px;
    height: 24px;
}

.hrdrop2-message .success-icon-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 163, 42, 0.2) 0%, rgba(0, 208, 132, 0.2) 100%);
    border-radius: 50%;
    animation: successPulse 2.5s ease-in-out infinite;
    box-shadow: 0 10px 35px rgba(0, 163, 42, 0.4), inset 0 3px 15px rgba(255, 255, 255, 0.6);
    border: 4px solid rgba(0, 163, 42, 0.3);
    position: relative;
}

.hrdrop2-message .success-icon-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 163, 42, 0.2);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes successPulse {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 10px 35px rgba(0, 163, 42, 0.4), 0 0 0 0 rgba(0, 163, 42, 0.6);
    }

    50% {
        transform: scale(1.2) rotate(5deg);
        box-shadow: 0 15px 50px rgba(0, 163, 42, 0.5), 0 0 0 20px rgba(0, 163, 42, 0);
    }
}

.hrdrop2-message .success-icon-wrapper svg {
    width: 80px;
    height: 80px;
    color: #00a32a;
    filter: drop-shadow(0 4px 8px rgba(0, 163, 42, 0.4));
    z-index: 1;
    position: relative;
}

.hrdrop2-message .message-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 600;
}

.hrdrop2-message .message-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.hrdrop2-message .message-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

.hrdrop2-message .message-close svg {
    width: 18px;
    height: 18px;
}

.hrdrop2-message.success {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 30%, #d4edda 60%, #c3e6cb 100%);
    border: 4px solid #00a32a;
    color: #0f5132;
    box-shadow: 0 20px 70px rgba(0, 163, 42, 0.6), 0 10px 40px rgba(0, 163, 42, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(0, 163, 42, 0.15);
    position: relative;
    overflow: visible;
    padding: 40px 45px;
    margin: 40px 0;
    animation: successSlideIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(-60px) rotate(-8deg);
    }

    60% {
        transform: scale(1.08) translateY(5px) rotate(3deg);
    }

    80% {
        transform: scale(0.98) translateY(-2px) rotate(-1deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }
}

.hrdrop2-message.success::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 3s infinite;
}

.hrdrop2-message.success::after {
    content: '✓';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: rgba(0, 163, 42, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #00a32a;
    font-weight: 900;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.hrdrop2-message.success .message-icon {
    color: #00a32a;
}

.hrdrop2-message.success .message-text {
    font-size: 28px;
    color: #0a4a2a;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
    padding-left: 15px;
    flex: 1;
    display: block;
}

.hrdrop2-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c2c7 100%);
    border-left-color: #d63638;
    color: #842029;
    box-shadow: 0 4px 20px rgba(214, 54, 56, 0.2);
}

.hrdrop2-message.error .message-icon {
    color: #d63638;
}

.hrdrop2-message.info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #2271b1;
    color: #0c5460;
    box-shadow: 0 4px 20px rgba(34, 113, 177, 0.2);
}

.hrdrop2-message.info .message-icon {
    color: #2271b1;
}

.hrdrop2-clock-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.hrdrop2-clock-footer .info-text {
    margin: 0;
    color: #8c8f94;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hrdrop2-clock-footer .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.hrdrop2-employee-info {
    margin: 20px 0;
    padding: 15px 20px;
    background: #e7f5ff;
    border-left: 4px solid #2271b1;
    border-radius: 8px;
}

.hrdrop2-employee-info .employee-name-display {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.hrdrop2-employee-info .info-label {
    font-weight: 600;
    color: #2271b1;
}

.hrdrop2-employee-info .info-value {
    font-weight: 500;
    color: #1d2327;
}

/* Clickable employee name for biometric registration */
.hrdrop2-employee-info.has-clickable-name .info-value {
    cursor: pointer;
}

.hrdrop2-employee-info .clickable-name {
    color: #2271b1;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.hrdrop2-employee-info .clickable-name:hover {
    color: #135e96;
    text-decoration: none;
}

.hrdrop2-employee-info .register-hint {
    font-size: 0.85em;
    font-weight: normal;
    color: #646970;
    margin-left: 8px;
    font-style: italic;
}

.hrdrop2-employee-info .clickable-name:hover .register-hint {
    color: #2271b1;
}

/* Leave Request Form Styles - APP-LIKE FULL WIDTH */
.hrdrop2-leave-request-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    background-attachment: fixed !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.hrdrop2-leave-request-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hrdrop2-leave-request-form {
    max-width: 900px;
    width: 100%;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 15px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 55px;
    margin: 25px auto;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: formSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes formSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.form-header .header-icon {
    margin: 0 auto 25px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3);
    }
}

.form-header .header-icon svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.form-header h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-description {
    margin: 0;
    color: #646970;
    font-size: 17px;
    line-height: 1.6;
}

.hrdrop2-form {
    margin-top: 30px;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1d2327;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.form-group label .dashicons {
    color: #667eea;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.form-group label.required::after {
    content: " *";
    color: #d63638;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fff;
    color: #1d2327;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 6px 20px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.form-control[readonly] {
    background: #f6f7f7;
    cursor: not-allowed;
}

.form-group textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-group .description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.employee-suggestions {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f1;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f6f7f7;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.employee-details-section {
    margin: 20px 0;
}

.employee-info-card {
    background: #f6f7f7;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
}

.employee-info-card h3 {
    margin: 0 0 15px 0;
    color: #2271b1;
    font-size: 18px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.info-value {
    font-size: 16px;
    color: #1d2327;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid;
    border-image: linear-gradient(90deg, transparent 0%, #e5e5e5 20%, #e5e5e5 80%, transparent 100%) 1;
    justify-content: center;
}

.btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4), 0 3px 10px rgba(118, 75, 162, 0.3);
    position: relative;
    overflow: hidden;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 15px;
    padding: 18px 40px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(118, 75, 162, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-secondary {
    background: #f6f7f7;
    color: #1d2327;
    border: 2px solid #dcdcde;
}

.btn-secondary:hover {
    background: #e5e5e5;
    border-color: #8c8f94;
}

.btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

@media (max-width: 768px) {
    .hrdrop2-leave-request-form {
        padding: 20px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.hrdrop2-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hrdrop2-btn-primary {
    background: #2271b1;
    color: #fff;
}

.hrdrop2-btn-primary:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Responsive Styles - APP-LIKE */
@media (max-width: 768px) {
    .hrdrop2-attendance-clock-wrapper {
        padding: 0 !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        min-height: 100vh !important;
        align-items: flex-start !important;
    }

    .hrdrop2-attendance-clock {
        padding: 20px 12px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 12px !important;
    }

    .hrdrop2-clock-header {
        margin-bottom: 20px;
    }

    .hrdrop2-clock-header .clock-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .hrdrop2-clock-header .clock-icon svg {
        width: 40px;
        height: 40px;
    }

    .hrdrop2-clock-header h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .hrdrop2-login-section {
        margin: 20px 0;
        padding: 20px 15px;
    }

    .hrdrop2-login-section label {
        font-size: 14px;
    }

    .clock-input {
        padding: 12px 15px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .timer-value {
        font-size: 42px;
    }

    .hrdrop2-clock-actions {
        flex-direction: column;
        gap: 12px;
        margin: 20px 0;
    }

    .hrdrop2-clock-btn {
        width: 100%;
        min-width: auto;
        padding: 18px 30px;
        font-size: 16px;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        touch-action: manipulation;
    }

    .hrdrop2-clock-btn .btn-icon {
        font-size: 20px;
    }

    .clock-in-time {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding-top: 15px;
    }

    .clock-in-time .time-label,
    .clock-in-time .time-value {
        font-size: 14px;
    }

    .last-event-info {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .hrdrop2-timer-section {
        padding: 25px 20px;
        margin: 20px 0;
    }

    .hrdrop2-welcome-section {
        margin: 20px 0;
        padding: 15px;
    }

    .welcome-message {
        font-size: 16px;
    }

    .hrdrop2-employee-info {
        margin: 15px 0;
        padding: 12px 15px;
    }

    .hrdrop2-employee-info .employee-name-display {
        font-size: 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .hrdrop2-employee-info .register-hint {
        display: block;
        margin-left: 0;
        margin-top: 4px;
    }

    .hrdrop2-clock-footer {
        margin-top: 20px;
        padding-top: 15px;
    }

    .hrdrop2-clock-footer .info-text {
        font-size: 12px;
        flex-wrap: wrap;
        text-align: center;
    }

    .hrdrop2-message {
        margin: 15px 0;
        padding: 12px 15px;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    /* Perfect fit on small mobile - NO side spaces */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .hrdrop2-attendance-clock-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        padding-top: 10px !important;
        width: 100vw !important;
        max-width: 100% !important;
    }

    .hrdrop2-attendance-clock {
        padding: 15px 8px !important;
        margin: 0 !important;
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hrdrop2-clock-header .clock-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .hrdrop2-clock-header .clock-icon svg {
        width: 32px;
        height: 32px;
    }

    .hrdrop2-clock-header h1 {
        font-size: 20px;
    }

    .hrdrop2-login-section {
        padding: 15px 12px;
        margin: 15px 0;
    }

    .clock-input {
        padding: 12px;
        font-size: 16px;
    }

    .timer-value {
        font-size: 36px;
    }

    .hrdrop2-timer-section {
        padding: 20px 15px;
        margin: 15px 0;
    }

    .timer-label {
        font-size: 12px;
    }

    .timer-status {
        font-size: 14px;
    }

    .hrdrop2-clock-btn {
        padding: 16px 25px;
        font-size: 15px;
    }

    .hrdrop2-lateness-warning {
        padding: 12px 15px;
        font-size: 13px;
        margin: 15px 0;
    }

    .hrdrop2-message {
        margin: 15px 0;
        padding: 15px;
        font-size: 14px;
        word-wrap: break-word;
        line-height: 1.5;
    }

    .hrdrop2-message .message-content {
        gap: 12px;
    }

    .hrdrop2-message .message-icon {
        width: 28px;
        height: 28px;
    }

    .hrdrop2-message .message-icon svg {
        width: 20px;
        height: 20px;
    }

    .hrdrop2-message .message-text {
        font-size: 14px;
    }
}

/* Enhanced Leave Request Form Styles - APP-LIKE FULL WIDTH */
.hrdrop2-leave-request-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%) !important;
    background-attachment: fixed !important;
    -webkit-overflow-scrolling: touch !important;
    overflow-x: hidden !important;
    position: relative !important;
    box-sizing: border-box !important;
}

.hrdrop2-leave-request-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hrdrop2-leave-request-form {
    max-width: 100% !important;
    width: 100% !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 15px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    padding: 30px 16px !important;
    margin: 0 !important;
    margin-left: 16px !important;
    margin-right: 16px !important;
    position: relative !important;
    z-index: 1 !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .hrdrop2-leave-request-form {
        padding: 20px 12px !important;
        margin-left: 12px !important;
        margin-right: 12px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-leave-request-form {
        padding: 15px 8px !important;
        margin-left: 8px !important;
        margin-right: 8px !important;
        border-radius: 12px !important;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 45px;
    padding-bottom: 35px;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
    position: relative;
}

.form-header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.form-header .header-icon {
    margin: 0 auto 25px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.6), 0 8px 20px rgba(0, 0, 0, 0.3);
    }
}

.form-header .header-icon svg {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.form-header h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.form-description {
    margin: 0;
    color: #646970;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 500;
}

/* Leave Balance Section */
.leave-balance-section {
    margin: 40px 0;
    padding: 35px;
    background: linear-gradient(135deg, #f6f7f7 0%, #e7f5ff 30%, #f0f9ff 60%, #e7f5ff 100%);
    border-radius: 20px;
    border: 3px solid #e5e5e5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.9), 0 0 0 1px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.leave-balance-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.leave-balance-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.balance-title {
    margin: 0 0 25px 0;
    font-size: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.balance-title .dashicons {
    color: #667eea;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.balance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.balance-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, transparent 0%, currentColor 50%, transparent 100%);
    opacity: 0.6;
}

.balance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.balance-card.current-year {
    border-left: 5px solid #00a32a;
    background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}

.balance-card.current-year::before {
    color: #00a32a;
}

.balance-card.next-year {
    border-left: 5px solid #2271b1;
    background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}

.balance-card.next-year::before {
    color: #2271b1;
}

.balance-label {
    font-size: 14px;
    color: #646970;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 42px;
    font-weight: 800;
    color: #1d2327;
    margin: 15px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.balance-card.current-year .balance-value {
    background: linear-gradient(135deg, #00a32a 0%, #00d084 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-card.next-year .balance-value {
    background: linear-gradient(135deg, #2271b1 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    font-size: 13px;
    color: #646970;
}

.balance-details span {
    display: flex;
    justify-content: space-between;
}

.balance-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
    color: #646970;
    font-size: 12px;
}

/* Form Styles */
.hrdrop2-form {
    margin-top: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-col {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.form-group label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #2271b1;
}

.form-group label.required::after {
    content: " *";
    color: #d63638;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #dcdcde;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background: #fff;
    font-weight: 500;
    color: #1d2327;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-control:hover:not(:disabled):not([readonly]) {
    border-color: #b0b0b0;
}

.form-control[readonly] {
    background: #f6f7f7;
    cursor: not-allowed;
}

.form-group textarea.form-control {
    resize: vertical;
    min-height: 130px;
    font-family: inherit;
    line-height: 1.6;
}

.form-group textarea.form-control:focus {
    min-height: 140px;
}

.form-group .description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.employee-display {
    padding: 12px 15px;
    background: #f6f7f7;
    border-radius: 8px;
    font-weight: 500;
    color: #1d2327;
}

/* Leave Type Selector */
.leave-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.leave-type-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.leave-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card {
    background: #fff;
    border: 3px solid #dcdcde;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

.leave-type-option input[type="radio"]:checked+.option-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4), 0 5px 15px rgba(118, 75, 162, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-6px) scale(1.03);
    border-width: 4px;
}

.leave-type-option input[type="radio"]:checked+.option-card::before {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    animation: checkmarkPulse 0.5s ease-out;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.option-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.option-title {
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 8px;
}

.option-description {
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

.leave-type-option:hover .option-card {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25);
}

.employee-suggestions {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    width: 100%;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f6f7f7;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.employee-details-section {
    margin: 20px 0;
}

.employee-info-card {
    background: #e7f5ff;
    border-left: 4px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
}

.employee-info-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #1d2327;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-size: 12px;
    color: #646970;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 16px;
    color: #1d2327;
    font-weight: 500;
}

.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.btn-primary {
    background: linear-gradient(135deg, #00a32a 0%, #00d084 50%, #00a32a 100%);
    background-size: 200% 200%;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 163, 42, 0.5), 0 5px 15px rgba(0, 163, 42, 0.3);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    animation: none;
}

.btn-icon {
    font-size: 20px;
    transition: opacity 0.3s;
}

.btn-loader {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.btn.loading .btn-text,
.btn.loading .btn-icon {
    opacity: 0.5;
}

.btn.loading {
    pointer-events: none;
    position: relative;
}

.leave-notice {
    margin-top: 35px;
    padding: 25px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.leave-notice::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.leave-notice h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leave-notice h4 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.leave-notice ul {
    margin: 0;
    padding-left: 25px;
    color: #856404;
}

.leave-notice ul li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.hrdrop2-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Mobile Responsive Styles for Leave Form */
@media (max-width: 768px) {
    .hrdrop2-leave-request-wrapper {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
        width: 100vw;
        max-width: 100%;
    }

    .hrdrop2-leave-request-form {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .form-header .header-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .form-header .header-icon svg {
        width: 32px;
        height: 32px;
    }

    .form-header h1 {
        font-size: 24px;
    }

    .form-description {
        font-size: 14px;
    }

    .balance-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .balance-value {
        font-size: 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-control {
        padding: 12px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 16px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .leave-type-selector {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .option-card {
        padding: 15px;
    }

    .option-icon {
        font-size: 32px;
    }

    .option-title {
        font-size: 16px;
    }

    .leave-notice {
        padding: 15px;
    }

    .leave-notice ul {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .hrdrop2-leave-request-wrapper {
        padding: 5px;
        padding-top: 15px;
        width: 100vw;
        max-width: 100%;
    }

    .hrdrop2-leave-request-form {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .form-header .header-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .form-header .header-icon svg {
        width: 28px;
        height: 28px;
    }

    .form-header h1 {
        font-size: 20px;
    }

    .leave-balance-section {
        padding: 20px 15px;
    }

    .balance-title {
        font-size: 18px;
    }

    .balance-value {
        font-size: 24px;
    }

    .form-control {
        padding: 12px;
    }

    .btn {
        padding: 14px 25px;
        font-size: 15px;
    }
}

/* Confirmation Modal Styles */
.leave-confirmation-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    animation: fadeIn 0.3s ease;
    visibility: visible !important;
    display: none !important;
}

.leave-confirmation-modal.show {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999998 !important;
    visibility: visible !important;
}

/* Remove foggy overlay from ALL pages globally - EXTRA AGGRESSIVE */
.modal-overlay,
.success-modal-overlay,
[class*="overlay"]:not([class*="content"]):not([class*="status"]):not([class*="video"]):not([class*="enrollment"]):not([class*="qr-welcome"]),
[id*="overlay"]:not([id*="content"]):not([id*="status"]):not([id*="video"]):not([id*="enrollment"]):not([id*="qr-welcome"]),
[class*="backdrop"],
[id*="backdrop"],
.ui-widget-overlay,
.ui-dialog-overlay,
.media-modal-backdrop,
.modal-backdrop,
.wp-auth-check-bg,
#wp-auth-check-bg {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Specifically target clock-in page - remove EVERYTHING foggy */
body:has(.hrdrop2-attendance-clock-wrapper) .ui-widget-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .ui-dialog-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .media-modal-backdrop,
body:has(.hrdrop2-attendance-clock-wrapper) .modal-backdrop,
body:has(.hrdrop2-attendance-clock-wrapper) .wp-auth-check-bg,
body:has(.hrdrop2-attendance-clock-wrapper) #wp-auth-check-bg,
body:has(.hrdrop2-attendance-clock-wrapper) [class*="overlay"]:not([class*="content"]):not([class*="status"]):not([class*="video"]):not([class*="enrollment"]):not([class*="qr-welcome"]),
body:has(.hrdrop2-attendance-clock-wrapper) [id*="overlay"]:not([id*="content"]):not([id*="status"]):not([id*="video"]):not([id*="enrollment"]):not([id*="qr-welcome"]),
body:has(.hrdrop2-attendance-clock-wrapper) [class*="backdrop"],
body:has(.hrdrop2-attendance-clock-wrapper) [id*="backdrop"] {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
    z-index: -9999 !important;
}

/* Remove foggy overlay on enrollment, clock-in, and login pages (specific) */
body:has(.hrdrop2-enrollment-wrapper) .modal-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .modal-overlay,
body:has(.hrdrop2-login-wrapper) .modal-overlay,
.hrdrop2-enrollment-wrapper .modal-overlay,
.hrdrop2-attendance-clock-wrapper .modal-overlay,
.hrdrop2-login-wrapper .modal-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal-content {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: #fff !important;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5), 0 15px 50px rgba(0, 0, 0, 0.3);
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1000000 !important;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    visibility: visible !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%) 1;
    position: relative;
}

.modal-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.modal-header h2 {
    margin: 0;
    font-size: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.modal-body {
    padding: 35px 40px;
}

.modal-message {
    font-size: 17px;
    color: #646970;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

.confirmation-details {
    background: linear-gradient(135deg, #f6f7f7 0%, #e7f5ff 30%, #f0f9ff 60%, #e7f5ff 100%);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.full-width {
    flex-direction: column;
    gap: 10px;
}

.detail-label {
    font-weight: 700;
    color: #1d2327;
    font-size: 15px;
    min-width: 130px;
}

.detail-value {
    font-weight: 600;
    color: #2271b1;
    font-size: 16px;
    text-align: right;
    flex: 1;
    word-break: break-word;
}

.detail-row.full-width .detail-value {
    text-align: left;
    padding: 15px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #dcdcde;
    line-height: 1.7;
    color: #1d2327;
}

.confirmation-warning {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    border-radius: 14px;
    color: #856404;
    font-size: 15px;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.confirmation-warning svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #ffc107;
}

.modal-footer {
    display: flex;
    gap: 15px;
    padding: 30px 40px 40px;
    justify-content: center;
    border-top: 2px solid #e5e5e5;
}

.modal-footer .btn {
    min-width: 160px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 700;
}

.modal-footer .btn-secondary {
    background: #f6f7f7;
    color: #1d2327;
    border: 2px solid #dcdcde;
}

.modal-footer .btn-secondary:hover {
    background: #e5e5e5;
    border-color: #8c8f94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Enhanced Success Message Styles */
.hrdrop2-message.success .message-text {
    font-size: 18px;
    color: #0a4a2a;
    font-weight: 700;
    letter-spacing: -0.2px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
    padding-left: 15px;
    flex: 1;
    display: block;
}

.hrdrop2-message.success .message-text strong {
    color: #00a32a;
    font-weight: 900;
    display: block;
    margin-top: 12px;
    margin-bottom: 8px;
    font-size: 17px;
}

.hrdrop2-message.success .message-text br+strong {
    margin-top: 16px;
}

/* Enhanced Form Styling */
.form-control {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(102, 126, 234, 0.1), 0 6px 20px rgba(102, 126, 234, 0.08);
    transform: translateY(-2px);
}

.form-control:hover:not(:disabled):not([readonly]) {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.hrdrop2-leave-request-form {
    transition: box-shadow 0.3s ease;
}

.hrdrop2-leave-request-form:hover {
    box-shadow: 0 35px 110px rgba(0, 0, 0, 0.55), 0 18px 55px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Mobile Responsive for Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 20px;
    }

    .modal-header {
        padding: 30px 25px 20px;
    }

    .modal-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .modal-icon svg {
        width: 36px;
        height: 36px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-body {
        padding: 25px;
    }

    .confirmation-details {
        padding: 25px;
    }

    .detail-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 12px 0;
    }

    .detail-label {
        min-width: auto;
    }

    .detail-value {
        text-align: left;
    }

    .modal-footer {
        flex-direction: column;
        padding: 25px;
    }

    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }

    .hrdrop2-message.success .message-text {
        font-size: 16px;
    }

    .hrdrop2-message.success .message-text strong {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        border-radius: 16px;
    }

    .modal-header {
        padding: 25px 20px 15px;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }

    .modal-icon svg {
        width: 30px;
        height: 30px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .confirmation-details {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
    }

    .hrdrop2-message.success {
        padding: 30px 25px;
    }

    .hrdrop2-message.success .message-text {
        font-size: 14px;
    }

    .hrdrop2-message.success .message-text strong {
        font-size: 14px;
    }
}

/* Success Confirmation Modal Styles */
.leave-success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    animation: fadeIn 0.3s ease;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Remove foggy overlay on enrollment, clock-in, and login pages */
body:has(.hrdrop2-enrollment-wrapper) .success-modal-overlay,
body:has(.hrdrop2-attendance-clock-wrapper) .success-modal-overlay,
body:has(.hrdrop2-login-wrapper) .success-modal-overlay,
.hrdrop2-enrollment-wrapper .success-modal-overlay,
.hrdrop2-attendance-clock-wrapper .success-modal-overlay,
.hrdrop2-login-wrapper .success-modal-overlay {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.success-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    width: 90%;
    padding: 50px 40px;
    text-align: center;
    z-index: 1000000;
    animation: modalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.success-animation {
    margin-bottom: 30px;
}

.success-checkmark {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    animation: checkmarkScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkmarkScale {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
    color: #00a32a;
}

.success-checkmark .checkmark-circle {
    stroke-dasharray: 62.83;
    stroke-dashoffset: 62.83;
    animation: circleDraw 0.8s ease-out forwards;
}

@keyframes circleDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-checkmark .checkmark-check {
    stroke-dasharray: 18;
    stroke-dashoffset: 18;
    animation: checkDraw 0.5s ease-out 0.5s forwards;
}

@keyframes checkDraw {
    to {
        stroke-dashoffset: 0;
    }
}

.success-title {
    margin: 0 0 20px 0;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, #00a32a 0%, #00d084 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.success-message {
    font-size: 18px;
    color: #646970;
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 500;
}

.success-details {
    background: linear-gradient(135deg, #f6f7f7 0%, #e7f5ff 30%, #f0f9ff 60%, #e7f5ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #e5e5e5;
    text-align: left;
}

.success-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.success-detail-item:last-child {
    border-bottom: none;
}

.success-detail-item .detail-label {
    font-weight: 700;
    color: #1d2327;
    font-size: 15px;
}

.success-detail-item .detail-value {
    font-weight: 600;
    color: #2271b1;
    font-size: 16px;
}

.success-actions {
    margin-top: 30px;
}

.success-close-btn {
    min-width: 180px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
}

/* Enhanced Leave Type Selector Styles */
.leave-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.leave-type-option {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.leave-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card {
    background: #fff;
    border: 3px solid #dcdcde;
    border-radius: 18px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.option-card:hover::before {
    left: 100%;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.leave-type-option input[type="radio"]:checked+.option-card {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 50%, rgba(240, 147, 251, 0.08) 100%);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25), 0 5px 15px rgba(118, 75, 162, 0.2), inset 0 2px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-8px) scale(1.02);
    border-width: 4px;
}

.option-card.option-annual {
    border-left: 5px solid #2271b1;
}

.option-card.option-days-off {
    border-left: 5px solid #00a32a;
}

.leave-type-option input[type="radio"]:checked+.option-card.option-annual {
    border-left-color: #2271b1;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.1) 0%, rgba(102, 126, 234, 0.1) 100%);
}

.leave-type-option input[type="radio"]:checked+.option-card.option-days-off {
    border-left-color: #00a32a;
    background: linear-gradient(135deg, rgba(0, 163, 42, 0.1) 0%, rgba(0, 208, 132, 0.1) 100%);
}

.leave-type-option input[type="radio"]:checked+.option-card::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    animation: checkmarkPulse 0.5s ease-out;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.option-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.option-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin-bottom: 10px;
}

.option-description {
    font-size: 14px;
    color: #646970;
    font-style: italic;
    line-height: 1.5;
}

/* Mobile Responsive for Success Modal */
@media (max-width: 768px) {
    .success-modal-content {
        width: 95%;
        padding: 40px 30px;
        border-radius: 24px;
    }

    .success-checkmark {
        width: 100px;
        height: 100px;
    }

    .success-title {
        font-size: 26px;
    }

    .success-message {
        font-size: 16px;
    }

    .success-details {
        padding: 25px;
    }

    .success-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .leave-type-selector {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-card {
        padding: 25px 20px;
    }
}

/* Login Form Styles - APP-LIKE FULL WIDTH */
.hrdrop2-login-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%) !important;
}

/* Full-width container for app-like appearance */
body:has(.hrdrop2-login-wrapper) .site-content,
body:has(.hrdrop2-login-wrapper) .entry-content,
body:has(.hrdrop2-login-wrapper) .wp-block-group__inner-container,
body:has(.hrdrop2-login-wrapper) .content-area {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.hrdrop2-login-form-container {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 30px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .hrdrop2-login-form-container {
        padding: 20px 12px !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-login-form-container {
        padding: 15px 8px !important;
        margin: 0 !important;
        border-radius: 12px !important;
    }
}

/* Responsive adjustments for app-like appearance */
@media (max-width: 768px) {
    .hrdrop2-login-form-container {
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    }
}

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

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    color: #2271b1;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
}

.login-description {
    color: #646970;
    font-size: 16px;
    margin: 0;
}

.hrdrop2-login-form {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.hrdrop2-login-form .form-group {
    margin-bottom: 25px;
}

.hrdrop2-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.hrdrop2-login-form label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
    color: #2271b1;
}

.hrdrop2-login-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hrdrop2-login-form .form-control:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.remember-me {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Form Footer Styles */
.form-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.forgot-password-link,
.back-to-login-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password-link:hover,
.back-to-login-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.forgot-password-link .dashicons,
.back-to-login-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Password Reset Form Styles */
.hrdrop2-password-reset-form {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.reset-header {
    margin-bottom: 30px;
    text-align: center;
}

.reset-header h3 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 24px;
    font-weight: 700;
}

.reset-description {
    color: #646970;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

.hrdrop2-password-reset-form .form-group {
    margin-bottom: 25px;
}

.hrdrop2-password-reset-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.hrdrop2-password-reset-form label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
    color: #2271b1;
}

.hrdrop2-password-reset-form .form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hrdrop2-password-reset-form .form-control:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

/* Login Success Styles - APP-LIKE FULL WIDTH */
.hrdrop2-login-success {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 30px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Full-width on mobile for app-like appearance */
@media (max-width: 768px) {
    .hrdrop2-login-success {
        padding: 20px 12px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-login-success {
        padding: 15px 8px !important;
        border-radius: 12px !important;
    }
}

.success-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f1;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    color: #00a32a;
}

.success-header h2 {
    margin: 0 0 10px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
}

.welcome-message {
    color: #646970;
    font-size: 16px;
    margin: 0;
}

.welcome-message strong {
    color: #2271b1;
    font-weight: 700;
}

.form-links-section {
    margin-bottom: 40px;
}

.form-links-section h3 {
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
    text-align: center;
}

.section-description {
    text-align: center;
    color: #646970;
    margin: 0 0 30px 0;
    font-size: 15px;
}

.form-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.form-link-card {
    display: block;
    background: linear-gradient(135deg, #f6f7f7 0%, #ffffff 100%);
    border: 3px solid #e5e5e5;
    border-radius: 16px;
    padding: 35px 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.form-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.form-link-card:hover::before {
    left: 100%;
}

.form-link-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
}

.attendance-clock-link {
    border-left: 5px solid #ff6b35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
}

.attendance-clock-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    border-left-color: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.annual-leave-link {
    border-left: 5px solid #2271b1;
}

.annual-leave-link:hover {
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.05) 0%, rgba(34, 113, 177, 0.02) 100%);
}

.days-off-link {
    border-left: 5px solid #00a32a;
}

.days-off-link:hover {
    background: linear-gradient(135deg, rgba(0, 163, 42, 0.05) 0%, rgba(0, 163, 42, 0.02) 100%);
}

.salary-advance-link {
    border-left: 5px solid #f0b849;
}

.salary-advance-link:hover {
    background: linear-gradient(135deg, rgba(240, 184, 73, 0.05) 0%, rgba(240, 184, 73, 0.02) 100%);
}

.link-icon {
    font-size: 56px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.form-link-card h4 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
}

.form-link-card p {
    margin: 0 0 20px 0;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

.link-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.attendance-clock-link .link-button {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #fff;
    font-weight: 700;
}

.annual-leave-link .link-button {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
}

.days-off-link .link-button {
    background: linear-gradient(135deg, #00a32a 0%, #008a20 100%);
}

.salary-advance-link .link-button {
    background: linear-gradient(135deg, #f0b849 0%, #d4a017 100%);
}

.form-link-card:hover .link-button {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logout-section {
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid #f0f0f1;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #646970;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logout-link:hover {
    color: #d63638;
    background: rgba(214, 54, 56, 0.1);
}

.logout-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile Responsive for Login - Full Screen App-like */
@media (max-width: 768px) {
    .hrdrop2-login-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    }

    .hrdrop2-login-form-container,
    .hrdrop2-login-success {
        padding: 25px 12px !important;
        border-radius: 16px !important;
        margin: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
        box-sizing: border-box !important;
    }

    .login-header h2,
    .success-header h2 {
        font-size: 24px;
    }

    .form-links-section {
        margin-bottom: 30px;
    }

    .form-links-section h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .section-description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .form-links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 25px;
    }

    .form-link-card {
        padding: 25px 20px;
        border-radius: 12px;
        margin: 0;
    }

    .link-icon {
        font-size: 44px;
        margin-bottom: 12px;
    }

    .form-link-card h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .form-link-card p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .link-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .success-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .welcome-message {
        font-size: 14px;
    }

    .admin-dashboard-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .admin-dashboard-section h3 {
        font-size: 20px;
    }

    .logout-section {
        padding-top: 20px;
        margin-top: 20px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .hrdrop2-login-wrapper {
        padding: 0 !important;
    }

    .hrdrop2-login-form-container,
    .hrdrop2-login-success {
        padding: 20px 12px;
    }

    .login-header h2,
    .success-header h2 {
        font-size: 22px;
    }

    .form-links-section h3 {
        font-size: 18px;
    }

    .form-link-card {
        padding: 20px 15px;
    }

    .link-icon {
        font-size: 40px;
    }

    .form-link-card h4 {
        font-size: 16px;
    }

    .form-link-card p {
        font-size: 12px;
    }
}

/* Leave Types Section */
.leave-types-section {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
}

.leave-selection-main {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    margin-bottom: 50px;
}

.leave-section-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 8px 24px rgba(34, 113, 177, 0.3);
}

.leave-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.leave-header-icon {
    font-size: 48px;
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.leave-header-text {
    flex: 1;
}

.leave-section-header .leave-types-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.leave-section-header .section-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

.leave-types-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.leave-types-title .title-icon {
    font-size: 28px;
}

/* Override for section header title */
.leave-section-header .leave-types-title {
    color: white;
    font-size: 28px;
}

.leave-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.leave-type-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.leave-type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2271b1 0%, #135e96 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.leave-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #2271b1;
}

.leave-type-card:hover::before {
    transform: scaleX(1);
}

.leave-type-card.eligible {
    border-color: #4ade80;
}

.leave-type-card.eligible::before {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.leave-type-card.not-eligible {
    opacity: 0.75;
    border-color: #fbbf24;
}

.leave-type-card.not-eligible::before {
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}

.leave-type-card.statutory {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.leave-type-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.leave-type-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    border-radius: 12px;
}

.leave-type-title-wrapper {
    flex: 1;
}

.leave-type-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.statutory-badge {
    font-size: 18px;
    line-height: 1;
}

.leave-entitlement {
    font-size: 14px;
    color: #646970;
    font-weight: 500;
}

.leave-type-description {
    font-size: 14px;
    color: #646970;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.leave-qualifications {
    margin: 20px 0;
    padding: 16px;
    background: #f6f7f7;
    border-radius: 12px;
    flex: 1;
}

.qualifications-title {
    font-size: 13px;
    color: #1d2327;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qualifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qualification-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.5;
}

.qualification-item.met {
    color: #1d2327;
}

.qualification-item.not-met {
    color: #d63638;
}

.qual-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.qualification-item.met .qual-icon {
    background: #4ade80;
    color: white;
}

.qualification-item.not-met .qual-icon {
    background: #fbbf24;
    color: white;
}

.qual-label {
    font-weight: 600;
    min-width: 120px;
}

.qual-value {
    flex: 1;
}

.qual-current {
    color: #646970;
    font-style: italic;
}

.leave-type-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.leave-apply-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.leave-apply-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
}

.leave-apply-button .button-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.leave-apply-button:hover .button-arrow {
    transform: translateX(4px);
}

.leave-not-eligible {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fef3c7;
    border-radius: 10px;
    color: #92400e;
    font-size: 13px;
    font-weight: 500;
}

.not-eligible-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.not-eligible-text {
    flex: 1;
    line-height: 1.5;
}

/* Responsive Design for Leave Types - Full Screen App-like */
@media (max-width: 768px) {
    .leave-types-section {
        margin: 30px 0;
        padding: 20px 0;
    }

    .leave-section-header {
        border-radius: 0 !important;
        margin: 0 0 20px 0 !important;
        padding: 20px 15px;
        width: 100% !important;
    }

    .leave-types-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0;
    }

    .leave-type-card {
        padding: 18px;
        margin: 0;
        border-radius: 12px;
    }

    .leave-type-header {
        flex-direction: column;
        gap: 12px;
    }

    .leave-type-icon {
        width: 48px;
        height: 48px;
        font-size: 32px;
    }

    .qual-label {
        min-width: 100px;
        font-size: 12px;
    }

    .qualification-item {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .leave-types-section {
        margin: 25px 0;
        padding: 15px 0;
    }

    .leave-selection-main {
        margin-bottom: 25px;
    }

    .leave-section-header {
        padding: 18px 12px;
        margin: 0 -12px 15px -12px;
        border-radius: 0;
    }

    .leave-header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .leave-header-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .leave-section-header .leave-types-title {
        font-size: 22px;
    }

    .leave-types-title {
        font-size: 20px;
    }

    .leave-type-card {
        padding: 16px;
    }

    .leave-type-title {
        font-size: 18px;
    }

    .leave-qualifications {
        padding: 12px;
    }

    .qualification-item {
        font-size: 12px;
    }

    .qual-label {
        min-width: auto;
    }
}

/* Leave Types Preview Section (for non-logged-in users) */
.leave-types-preview-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    border: 2px solid #cce5ed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.preview-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-section-title .title-icon {
    font-size: 28px;
}

.preview-section-description {
    font-size: 15px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

.leave-types-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.leave-type-preview-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.leave-type-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    border-color: #2271b1;
}

.leave-type-preview-card.statutory {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-color: #2271b1;
}

.preview-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.preview-title-wrapper {
    flex: 1;
}

.preview-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-entitlement {
    font-size: 13px;
    color: #666;
}

.preview-description {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
    margin: 0;
}

.preview-login-prompt {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
    font-size: 15px;
    color: #555;
}

@media (max-width: 768px) {
    .leave-types-preview-section {
        padding: 20px;
    }

    .leave-types-preview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .preview-section-title {
        font-size: 20px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .preview-card-header {
        flex-direction: column;
        text-align: center;
    }

    .preview-card-header .preview-card-title {
        width: 100%;
        margin-bottom: 4px;
    }
}

.leave-apply-button {
    padding: 12px 20px;
    font-size: 14px;
}

/* Leave Submission Indicator */
.leave-submission-indicator-wrapper {
    margin: 20px 0;
    animation: slideDownFadeIn 0.5s ease-out;
}

.leave-submission-indicator {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    border: 3px solid #00a32a;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 163, 42, 0.2);
    position: relative;
    overflow: hidden;
}

.leave-submission-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes slideDownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.leave-submission-indicator .indicator-icon {
    width: 50px;
    height: 50px;
    background: #00a32a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 163, 42, 0.5);
    }
}

.leave-submission-indicator .indicator-content {
    flex: 1;
}

.leave-submission-indicator .indicator-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f5132;
    margin-bottom: 5px;
}

.leave-submission-indicator .indicator-message {
    font-size: 14px;
    color: #0a4a2a;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .leave-submission-indicator {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .leave-submission-indicator .indicator-icon {
        margin-bottom: 10px;
    }
}

/* Biometric Authentication Styles */
.hrdrop2-biometric-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.biometric-header {
    text-align: center;
    margin-bottom: 25px;
}

.biometric-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.biometric-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    margin: 0 0 10px 0;
}

.biometric-description {
    font-size: 14px;
    color: #646970;
    margin: 0;
    line-height: 1.6;
}

.biometric-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.biometric-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    justify-content: center;
}

.biometric-clock-in {
    background: linear-gradient(135deg, #00a32a 0%, #00d084 100%);
    color: white;
}

.biometric-clock-in:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 163, 42, 0.3);
}

.biometric-register {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
}

.biometric-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(34, 113, 177, 0.3);
}

.biometric-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.biometric-btn-icon {
    font-size: 20px;
}

.biometric-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.biometric-status.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.biometric-status.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.biometric-status.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.biometric-message-icon {
    font-size: 18px;
    font-weight: 700;
}

.biometric-not-supported {
    margin: 20px 0;
    padding: 15px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 10px;
    color: #92400e;
    font-size: 14px;
    text-align: center;
}

/* Responsive Biometric Styles */
@media (max-width: 768px) {
    .biometric-actions {
        flex-direction: column;
    }

    .biometric-button {
        width: 100%;
        min-width: auto;
    }

    .hrdrop2-biometric-section {
        padding: 20px;
    }
}

/* Salary Advance Form Styles - APP-LIKE FULL WIDTH */
.hrdrop2-advance-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%) !important;
}

.hrdrop2-advance-form {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 30px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 16px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .hrdrop2-advance-form {
        padding: 20px 12px !important;
        margin: 0 12px !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .hrdrop2-advance-form {
        padding: 15px 8px !important;
        margin: 0 8px !important;
        border-radius: 12px !important;
    }
}

/* Eligibility Status Section */
.eligibility-status-section {
    background: linear-gradient(135deg, #f6f7f7 0%, #e7f5ff 30%, #f0f9ff 60%, #e7f5ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid #e5e5e5;
}

.status-title {
    margin: 0 0 20px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-title .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2271b1;
}

.eligibility-checks {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
    border-left: 4px solid #dcdcde;
    transition: all 0.3s ease;
}

.check-item.passed {
    border-left-color: #00a32a;
    background: linear-gradient(90deg, rgba(0, 163, 42, 0.05) 0%, #fff 10%);
}

.check-item.failed {
    border-left-color: #d63638;
    background: linear-gradient(90deg, rgba(214, 54, 56, 0.05) 0%, #fff 10%);
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-item.passed .check-icon {
    color: #00a32a;
}

.check-item.failed .check-icon {
    color: #d63638;
}

.check-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.check-content strong {
    font-size: 15px;
    font-weight: 700;
    color: #1d2327;
}

.check-content span {
    font-size: 14px;
    color: #646970;
    line-height: 1.5;
}

/* Advance Notice */
.advance-notice {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #fff9e5 0%, #fff5d1 100%);
    border-radius: 12px;
    border-left: 5px solid #f0b849;
}

.advance-notice h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 10px;
}

.advance-notice h4 .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #f0b849;
}

.advance-notice ul {
    margin: 0;
    padding-left: 25px;
    list-style: none;
}

.advance-notice ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #646970;
    font-size: 14px;
    line-height: 1.6;
}

.advance-notice ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f0b849;
    font-weight: 900;
    font-size: 18px;
}

.advance-notice ul li:last-child {
    margin-bottom: 0;
}

/* Mobile Responsive for Salary Advance Form */
@media (max-width: 768px) {
    .hrdrop2-advance-wrapper {
        margin: 0;
        padding: 15px;
        width: 100vw;
        max-width: 100%;
    }

    .hrdrop2-advance-form {
        padding: 35px 25px;
    }

    .eligibility-status-section {
        padding: 25px 20px;
    }

    .status-title {
        font-size: 20px;
    }

    .check-item {
        padding: 12px;
    }

    .check-content strong {
        font-size: 14px;
    }

    .check-content span {
        font-size: 13px;
    }

    .advance-notice {
        padding: 20px;
    }

    .advance-notice h4 {
        font-size: 16px;
    }

    .advance-notice ul li {
        font-size: 13px;
    }
}

/* Admin Dashboard Styles */
.hrdrop2-admin-dashboard-wrapper {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px;
}

.hrdrop2-admin-dashboard {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Dashboard Header */
.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.header-text h1 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.welcome-text {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    color: #fff;
}

.welcome-text strong {
    font-weight: 700;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.logout-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Dashboard Tabs */
.dashboard-tabs {
    display: flex;
    background: #f6f7f7;
    border-bottom: 2px solid #e5e5e5;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 25px;
    text-decoration: none;
    color: #646970;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    flex-shrink: 0;
}

.tab-item:hover {
    background: #fff;
    color: #2271b1;
}

.tab-item.active {
    background: #fff;
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.tab-icon {
    font-size: 20px;
}

.tab-label {
    font-size: 15px;
}

.tab-badge {
    background: #d63638;
    color: #fff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 40px;
    min-height: 400px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.metric-card {
    background: linear-gradient(135deg, #f6f7f7 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 30px;
    border-left: 5px solid #dcdcde;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.metric-card.metric-employees {
    border-left-color: #2271b1;
}

.metric-card.metric-payroll {
    border-left-color: #00a32a;
}

.metric-card.metric-attendance {
    border-left-color: #f0b849;
}

.metric-card.metric-leaves {
    border-left-color: #dba617;
}

.metric-card.metric-advances {
    border-left-color: #d63638;
}

.metric-card.metric-average {
    border-left-color: #764ba2;
}

.metric-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.metric-info {
    flex: 1;
}

.metric-info h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    margin: 0 0 5px 0;
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}

.metric-label {
    margin: 0;
    font-size: 13px;
    color: #8c8f94;
}

/* Quick Actions */
.quick-actions-section {
    margin-top: 40px;
}

.quick-actions-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1d2327;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-action-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.quick-action-card:hover {
    border-color: #2271b1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.2);
    color: inherit;
    text-decoration: none;
}

.action-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.quick-action-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

.quick-action-card p {
    margin: 0;
    font-size: 13px;
    color: #646970;
}

/* Tab Sections */
.tab-section {
    animation: fadeIn 0.3s ease;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
}

/* Admin Tables */
.table-wrapper {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.admin-table thead {
    background: #f6f7f7;
}

.admin-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: #1d2327;
    font-size: 14px;
    border-bottom: 2px solid #e5e5e5;
}

.admin-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f1;
    color: #2c3338;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-info {
    background: #cfe2ff;
    color: #084298;
}

.badge-danger {
    background: #f8d7da;
    color: #842029;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.btn-secondary {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    color: #2c3338;
}

.btn-secondary:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.btn-success {
    background: #00a32a;
    color: #fff;
}

.btn-success:hover {
    background: #008a20;
}

.btn-danger {
    background: #d63638;
    color: #fff;
}

.btn-danger:hover {
    background: #b32d2e;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.report-card {
    background: linear-gradient(135deg, #f6f7f7 0%, #ffffff 100%);
    border: 2px solid #e5e5e5;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.report-card:hover {
    border-color: #2271b1;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(34, 113, 177, 0.2);
}

.report-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.report-card h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
}

.report-card p {
    margin: 0 0 20px 0;
    font-size: 14px;
    color: #646970;
}

/* Info Box */
.info-box {
    background: #e7f5ff;
    border-left: 4px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box p {
    margin: 0 0 15px 0;
    color: #1d2327;
}

/* Admin Dashboard Link */
.admin-dashboard-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid #e5e5e5;
}

.admin-dashboard-link {
    border-left: 5px solid #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%) !important;
}

.admin-dashboard-link:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
    border-color: #667eea !important;
}

.admin-dashboard-link .link-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Mobile Responsive for Admin Dashboard */
@media (max-width: 1024px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .tab-item {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .hrdrop2-admin-dashboard-wrapper {
        margin: 10px auto;
        padding: 10px;
    }

    .dashboard-header {
        padding: 30px 20px;
    }

    .header-icon {
        width: 60px;
        height: 60px;
    }

    .header-text h1 {
        font-size: 24px;
    }

    .dashboard-content {
        padding: 25px 20px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metric-card {
        padding: 20px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .btn {
        width: 100%;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .tab-item {
        padding: 12px 15px;
        font-size: 13px;
    }

    .tab-icon {
        font-size: 18px;
    }
}

/* ========================================
   Kiosk Clock-In Interface Styles
   Touch-friendly interface for shared devices
   ======================================== */

.hrdrop2-kiosk-wrapper {
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
    box-sizing: border-box;
    overflow-x: hidden;
}

.kiosk-header {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.kiosk-header h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
    font-weight: 700;
}

.kiosk-subtitle {
    margin: 0 0 15px 0;
    font-size: 20px;
    opacity: 0.95;
}

.kiosk-time-display {
    font-size: 28px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.kiosk-screen {
    display: none;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.kiosk-screen.active {
    display: block;
}

/* Employee Selection Screen */
.kiosk-search-bar {
    position: relative;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.kiosk-search-bar input {
    width: 100%;
    padding: 20px 50px 20px 20px;
    font-size: 24px;
    border: 3px solid #c3c4c7;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.kiosk-search-bar input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    pointer-events: none;
}

.kiosk-employees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.kiosk-employee-card {
    background: #fff;
    border: 3px solid #e5e5e5;
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kiosk-employee-card:hover,
.kiosk-employee-card:active {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
    background: #f0f7ff;
}

.kiosk-employee-card.already-clocked-in:not(.has-biometric) {
    opacity: 0.6;
    background: #f0f0f1;
    cursor: not-allowed;
    border-color: #c3c4c7;
}

.kiosk-employee-card.already-clocked-in:not(.has-biometric):hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kiosk-employee-card.already-clocked-in.has-biometric {
    opacity: 1;
    cursor: pointer;
    border-color: #ffc107;
}

.kiosk-employee-card.already-clocked-in.has-biometric:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
    border-color: #ff9800;
}

.kiosk-employee-card.no-biometric {
    opacity: 0.85;
    cursor: pointer;
    border-color: #f0b849;
    border-style: dashed;
}

.kiosk-employee-card.no-biometric:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(240, 184, 73, 0.3);
    border-color: #f59e0b;
    opacity: 1;
}

.employee-card-content {
    width: 100%;
}

.employee-initials {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}

.kiosk-employee-card.already-clocked-in .employee-initials {
    background: #00a32a;
}

.kiosk-employee-card.no-biometric .employee-initials {
    background: #f0b849;
}

.employee-name {
    margin-bottom: 12px;
}

.employee-name strong {
    display: block;
    font-size: 20px;
    color: #1d2327;
    margin-bottom: 5px;
}

.employee-name small {
    display: block;
    font-size: 14px;
    color: #646970;
}

.employee-status {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.employee-status.clocked-in {
    background: #d1f2e8;
    color: #00a32a;
}

.employee-status.clocked-in-ready {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.employee-status.no-biometric {
    background: #fef3c7;
    color: #92400e;
}

.employee-status.ready {
    background: #e8f4fd;
    color: #2271b1;
}

.status-icon {
    font-size: 16px;
}

/* Biometric Verification Screen */
.biometric-verification-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.selected-employee-info {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f1;
}

.employee-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
}

.selected-employee-info h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #1d2327;
}

.employee-number {
    color: #646970;
    font-size: 16px;
}

.biometric-prompt {
    text-align: center;
    margin-bottom: 30px;
}

.biometric-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    color: #2271b1;
}

.biometric-prompt h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #1d2327;
}

.biometric-instruction {
    margin: 0 0 30px 0;
    color: #646970;
    font-size: 16px;
    line-height: 1.6;
}

.biometric-status-message {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #f0f7ff;
}

.biometric-status-message .status-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.biometric-status-message .status-icon.success {
    color: #00a32a;
}

.biometric-status-message .status-icon.error {
    color: #d63638;
}

.biometric-status-message .status-text {
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

/* Kiosk Buttons */
.kiosk-button {
    width: 100%;
    padding: 20px 30px;
    font-size: 20px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.kiosk-button-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: white;
}

.kiosk-button-primary:hover,
.kiosk-button-primary:active {
    background: linear-gradient(135deg, #135e96 0%, #0a4b78 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.kiosk-button-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.kiosk-button-secondary:hover,
.kiosk-button-secondary:active {
    background: #e5e5e5;
}

.kiosk-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    font-size: 24px;
}

/* Success Screen */
.success-container,
.error-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.success-icon-large,
.error-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    color: #00a32a;
}

.error-icon-large {
    color: #d63638;
}

.success-container h2,
.error-container h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    color: #1d2327;
}

.success-message {
    font-size: 20px;
    color: #1d2327;
    margin-bottom: 40px;
    line-height: 1.6;
}

.success-time {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin-top: 10px;
}

.error-message {
    font-size: 18px;
    color: #646970;
    margin-bottom: 40px;
    line-height: 1.6;
}

.kiosk-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #646970;
    font-size: 20px;
}

/* Mobile Responsive for Kiosk */
@media (max-width: 768px) {
    .kiosk-header h1 {
        font-size: 32px;
    }

    .kiosk-subtitle {
        font-size: 18px;
    }

    .kiosk-time-display {
        font-size: 24px;
    }

    .kiosk-employees-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px 0;
    }

    .kiosk-employee-card {
        padding: 20px 15px;
        min-height: 180px;
    }

    .employee-initials {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .employee-name strong {
        font-size: 18px;
    }

    .kiosk-search-bar input {
        padding: 18px 45px 18px 18px;
        font-size: 20px;
    }

    .biometric-verification-container,
    .success-container,
    .error-container {
        padding: 30px 20px;
    }

    .kiosk-button {
        padding: 18px 25px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .kiosk-employees-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kiosk-employee-card {
        padding: 15px 10px;
        min-height: 160px;
    }

    .employee-initials {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .employee-name strong {
        font-size: 16px;
    }

    .employee-name small {
        font-size: 12px;
    }
}

/* Kiosk Reason Section */
.kiosk-reason-section {
    margin: 20px 0;
    padding: 20px;
    background: #f6f7f7;
    border-radius: 12px;
    border: 2px solid #dcdcde;
}

.kiosk-reason-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
    font-size: 16px;
}

.kiosk-reason-section .required {
    color: #d63638;
}

.kiosk-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.kiosk-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.kiosk-description {
    margin-top: 8px;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* QR Code Scanner Styles */
/* All methods displayed simultaneously - better layout */
.auth-method-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-method-header h2 {
    font-size: 24px;
    color: #1d2327;
    margin-bottom: 10px;
}

.method-subtitle {
    color: #646970;
    font-size: 14px;
}

.hrdrop2-qr-scanner-section,
.hrdrop2-face-recognition-section,
.hrdrop2-manual-entry-section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.hrdrop2-qr-scanner-section:hover,
.hrdrop2-face-recognition-section:hover,
.hrdrop2-manual-entry-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.hrdrop2-qr-scanner-section h3,
.hrdrop2-face-recognition-section h3,
.manual-entry-header h3 {
    font-size: 18px;
    color: #1d2327;
    margin-bottom: 10px;
    font-weight: 600;
}

.qr-scanner-header h3,
.face-recognition-header h3,
.manual-entry-header h3 {
    font-size: 18px;
    color: #1d2327;
    margin-bottom: 10px;
    font-weight: 600;
}

.hrdrop2-qr-scanner-section,
.kiosk-qr-scanner-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.qr-scanner-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1d2327;
}

.qr-instructions {
    color: #646970;
    font-size: 16px;
    margin-bottom: 25px;
}

.qr-scanner-container {
    max-width: 400px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.qr-scanner-container video {
    width: 100%;
    height: auto;
    max-height: 400px;
}

.qr-scan-status {
    min-height: 40px;
    margin: 15px 0;
    font-size: 16px;
}

.qr-scan-status .scanning {
    color: #2271b1;
    font-weight: 500;
}

.qr-scan-status .success {
    color: #00a32a;
    font-weight: 600;
}

.qr-scan-status .error {
    color: #d63638;
    font-weight: 500;
}

.qr-scan-status .info {
    color: #2271b1;
    font-weight: 500;
    background: #d1ecf1;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.qr-alternative,
.manual-alternative {
    margin-top: 20px;
    font-size: 14px;
    color: #646970;
}

.qr-toggle-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.qr-toggle-link:hover {
    color: #135e96;
    text-decoration: underline;
}

.hrdrop2-manual-entry-section {
    margin-top: 0;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
}

.hrdrop2-manual-entry-section:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* Kiosk QR Scanner */
.kiosk-qr-scanner-section {
    padding: 40px 20px;
}

.kiosk-qr-scanner-section .qr-scanner-container {
    max-width: 500px;
    min-height: 400px;
}

/* Welcome Message */
.qr-welcome-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in;
}

.welcome-content {
    background: #fff;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

.welcome-icon {
    font-size: 80px;
    color: #00a32a;
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

.welcome-content h2 {
    font-size: 32px;
    color: #1d2327;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.welcome-content p {
    font-size: 18px;
    color: #646970;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

/* Deadline Warning */
.deadline-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.deadline-warning .warning-text {
    color: #856404;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
}

/* Clock-in Disabled State */
body.clock-in-disabled {
    pointer-events: none;
    opacity: 0.6;
}

body.clock-in-disabled::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* USB QR Input (Hidden) */
.usb-qr-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
    width: 1px;
    height: 1px;
    border: none;
    padding: 0;
    margin: 0;
}

/* Responsive QR Scanner */
@media (max-width: 768px) {

    .hrdrop2-qr-scanner-section,
    .kiosk-qr-scanner-section {
        padding: 20px 15px;
    }

    .qr-scanner-container {
        max-width: 100%;
        min-height: 250px;
    }

    .qr-scanner-header h2 {
        font-size: 20px;
    }

    .qr-instructions {
        font-size: 14px;
    }

    .welcome-content {
        padding: 40px 25px;
        margin: 20px;
    }

    .welcome-icon {
        font-size: 60px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-content p {
        font-size: 16px;
    }
}

/* Authentication Method Selection */
.auth-method-selection {
    margin-bottom: 30px;
}

.auth-method-tabs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.auth-tab {
    flex: 1;
    max-width: 250px;
    padding: 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.auth-tab:hover {
    border-color: #2271b1;
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.auth-tab.active {
    border-color: #2271b1;
    background: #2271b1;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.auth-tab .tab-icon {
    font-size: 32px;
}

.auth-tab .tab-text {
    font-size: 16px;
    font-weight: 500;
}

/* Face Recognition Section */
.hrdrop2-face-recognition-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.face-recognition-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1d2327;
}

.face-instructions {
    color: #646970;
    font-size: 16px;
    margin-bottom: 25px;
}

.face-recognition-container {
    max-width: 500px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.face-recognition-container video {
    width: 100%;
    height: auto;
    max-height: 500px;
    transform: scaleX(-1);
    /* Mirror for better UX */
    object-fit: contain;
    /* Maintain aspect ratio without stretching */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    /* Ensure sharp rendering */
    -webkit-transform: scaleX(-1);
    /* Webkit prefix for better browser support */
}

.face-status {
    min-height: 40px;
    margin: 15px 0;
    font-size: 16px;
}

.face-status .info {
    color: #2271b1;
    font-weight: 500;
    background: #d1ecf1;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
}

.face-start-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.face-start-btn:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.face-alternative {
    margin-top: 20px;
    font-size: 14px;
    color: #646970;
}

.face-toggle-link {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.face-toggle-link:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-method-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .auth-tab {
        max-width: 100%;
    }

    .face-recognition-container {
        min-height: 300px;
    }
}

/* Kiosk Face Recognition Video */
#kiosk-face-video,
.face-recognition-container video {
    width: 100% !important;
    height: auto !important;
    max-width: 500px !important;
    max-height: 500px !important;
    object-fit: contain !important;
    /* Maintain aspect ratio without stretching */
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Ensure sharp rendering */
    transform: scaleX(-1) !important;
    /* Mirror for better UX */
    -webkit-transform: scaleX(-1) !important;
    /* Webkit prefix for better browser support */
    border-radius: 12px;
    background: #000;
}

/* Ensure video container maintains proper aspect ratio */
#kiosk-face-recognition-container,
.face-recognition-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

/* Prevent blur from canvas overlay */
#kiosk-face-canvas,
#face-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Canvas should not interfere with video */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ============================================
   High-Speed Attendance Terminal Styles
   ============================================ */

.hrdrop2-terminal-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-camera-container {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

#terminal-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#terminal-canvas {
    display: none;
}

.terminal-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 10;
}

.reticle-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.reticle-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #00ff00;
}

.reticle-corner.corner-tl {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 20px;
}

.reticle-corner.corner-tr {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 20px;
}

.reticle-corner.corner-bl {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 20px;
}

.reticle-corner.corner-br {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 20px;
}

.reticle-instruction {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.terminal-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.terminal-time {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.terminal-mode-indicator {
    flex: 1;
    text-align: center;
}

.mode-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.terminal-status-text {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.terminal-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.terminal-status-overlay.active {
    display: flex;
}

.status-content {
    text-align: center;
    color: #fff;
}

.status-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.status-success .status-icon {
    color: #00ff00;
}

.status-error .status-icon {
    color: #ff0000;
}

.status-processing .status-icon {
    color: #ffaa00;
}

.status-message {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hrdrop2-terminal-wrapper.flash-green {
    animation: flashGreen 0.5s ease;
}

@keyframes flashGreen {
    0% {
        background: #000;
    }

    50% {
        background: #00ff00;
    }

    100% {
        background: #000;
    }
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .terminal-reticle {
        width: 250px;
        height: 250px;
    }

    .reticle-instruction {
        font-size: 16px;
        bottom: -40px;
    }

    .terminal-time {
        font-size: 20px;
    }

    .terminal-status-text {
        font-size: 16px;
    }

    .status-icon {
        font-size: 60px;
    }

    .status-message {
        font-size: 20px;
    }
}

/* ============================================
   Facial Enrollment Page Styles
   ============================================ */

.hrdrop2-enrollment-wrapper {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    padding: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.enrollment-header {
    text-align: center !important;
    color: #fff !important;
    margin-bottom: 30px !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.enrollment-header h1 {
    font-size: 36px !important;
    font-weight: 700 !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.enrollment-subtitle {
    font-size: 18px !important;
    opacity: 0.9 !important;
}

.enrollment-container {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 30px 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    .enrollment-container {
        padding: 20px 12px !important;
        margin: 0 12px !important;
        border-radius: 16px !important;
    }
    
    .enrollment-header {
        padding: 0 12px !important;
    }
}

@media (max-width: 480px) {
    .enrollment-container {
        padding: 15px 8px !important;
        margin: 0 8px !important;
        border-radius: 12px !important;
    }
    
    .enrollment-header {
        padding: 0 8px !important;
    }
    
    .enrollment-header h1 {
        font-size: 28px !important;
    }
}

.enrollment-video-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

#enrollmentVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#enrollmentCanvas {
    display: none;
}

.enrollment-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 10;
}

.enrollment-reticle .reticle-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.enrollment-reticle .reticle-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid #00ff00;
}

.enrollment-reticle .reticle-corner.corner-tl {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 20px;
}

.enrollment-reticle .reticle-corner.corner-tr {
    top: -3px;
    right: -3px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 20px;
}

.enrollment-reticle .reticle-corner.corner-bl {
    bottom: -3px;
    left: -3px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 20px;
}

.enrollment-reticle .reticle-corner.corner-br {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 20px;
}

.enrollment-reticle .reticle-instruction {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.enrollment-status-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 15px;
}

.enrollment-status-overlay .status-content {
    text-align: center;
    color: #fff;
}

.enrollment-status-overlay .status-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: pulse 1s ease-in-out infinite;
}

.enrollment-status-overlay.status-success .status-icon {
    color: #00ff00;
}

.enrollment-status-overlay.status-error .status-icon {
    color: #ff0000;
}

.enrollment-status-overlay.status-processing .status-icon,
.enrollment-status-overlay.status-detecting .status-icon {
    color: #ffaa00;
}

.enrollment-status-overlay .status-message {
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.enrollment-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.enrollment-controls .btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.enrollment-controls .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.enrollment-controls .btn-success {
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: #fff;
}

.enrollment-controls .btn-secondary {
    background: #6c757d;
    color: #fff;
}

.enrollment-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.enrollment-controls .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.enrollment-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.enrollment-info .info-text {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.enrollment-info .info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.enrollment-info .info-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.enrollment-info .info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00c851;
    font-weight: bold;
}

/* Employee Selector Styles */
.enrollment-employee-selector {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.employee-select-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.employee-select-dropdown {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.employee-select-dropdown:hover {
    border-color: #667eea;
}

.employee-select-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.employee-select-dropdown:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.employee-select-loading {
    margin-top: 10px;
    color: #667eea;
    font-size: 14px;
    font-style: italic;
}

.employee-select-error {
    margin-top: 10px;
    color: #dc3545;
    font-size: 14px;
    padding: 10px;
    background: #fff5f5;
    border-radius: 5px;
    border-left: 3px solid #dc3545;
}

@media (max-width: 768px) {
    /* PERFECT FIT ON MOBILE - Remove ALL side spaces */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* All HRDROP2 wrappers - no side padding */
    .hrdrop2-enrollment-wrapper,
    .hrdrop2-attendance-clock-wrapper,
    .hrdrop2-login-wrapper,
    .hrdrop2-leave-request-wrapper,
    .hrdrop2-advance-wrapper {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
    }
    
    .enrollment-container {
        padding: 15px 10px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
    }

    .enrollment-reticle {
        width: 250px;
        height: 250px;
    }

    .enrollment-header h1 {
        font-size: 28px;
    }

    .enrollment-subtitle {
        font-size: 16px;
    }
    
    /* All form containers - minimal padding */
    .hrdrop2-attendance-clock,
    .hrdrop2-login-form-container,
    .hrdrop2-leave-request-form,
    .hrdrop2-advance-form {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    /* EXTRA SMALL MOBILE - Even tighter fit */
    .enrollment-container,
    .hrdrop2-attendance-clock,
    .hrdrop2-login-form-container,
    .hrdrop2-leave-request-form,
    .hrdrop2-advance-form {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .hrdrop2-enrollment-wrapper,
    .hrdrop2-attendance-clock-wrapper,
    .hrdrop2-login-wrapper,
    .hrdrop2-leave-request-wrapper,
    .hrdrop2-advance-wrapper {
        padding: 0 !important;
    }
}

/* Clock Mode Selection Modal */
.clock-mode-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.clock-mode-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.clock-mode-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 0;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.clock-mode-modal .modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clock-mode-modal .modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d2327;
    margin: 0;
}

.clock-mode-modal .modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    color: #646970;
}

.clock-mode-modal .modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #1d2327;
}

.clock-mode-modal .modal-body {
    padding: 24px;
    text-align: center;
}

.clock-mode-modal .modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
    display: block;
}

.clock-mode-modal .modal-description {
    font-size: 16px;
    color: #646970;
    line-height: 1.6;
    margin: 0;
}

.clock-mode-modal .modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.clock-mode-modal .modal-footer .modern-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.clock-mode-modal .modal-footer .modern-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.clock-mode-modal .modal-footer .modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.clock-mode-modal .modal-footer .modern-btn-primary:active {
    transform: scale(0.98);
}

@media (max-width: 480px) {
    .clock-mode-modal-content {
        max-width: 100%;
        margin: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .clock-mode-modal {
        align-items: flex-end;
        padding: 0;
    }
}