/* ==============================================
   ✨ PREMIUM GLASSMORPHISM DESIGN SYSTEM ✨
   ============================================== */

/* Global scrollbar hiding */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    overflow-x: hidden;
    /* Hide horizontal scrollbar */
}

/* Global scrollbar styling (Premium Dark) */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Scrollbar in modals */
.premium-who-modal::-webkit-scrollbar,
.gf-card--glow::-webkit-scrollbar {
    width: 8px;
}
.premium-who-table thead th {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 4px 12px !important;
    font-size: 0.8rem !important;
}

.premium-who-table tbody td {
    padding: 6px 12px !important;
    height: auto !important;
}

/* Animated Gradient Orbs Background */
.premium-glow-container {
    position: relative;
    min-height: 600px;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4), transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
    bottom: -50px;
    left: -80px;
    animation-delay: 7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Premium Glass Card */
.gf-card--glow {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 40px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 2px 4px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    overflow: visible;
    z-index: 1;
}

.gf-card--glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.3) 0%,
            rgba(168, 85, 247, 0.2) 50%,
            rgba(59, 130, 246, 0.3) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gf-card--glow:hover::before {
    opacity: 0.6;
}

/* Premium Header */
.premium-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.3);
}

.header-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.header-icon svg {
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 2px 8px rgba(220, 38, 38, 0.6));
    z-index: 1;
}

.premium-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.premium-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Premium Form */
.premium-form {
    position: relative;
    z-index: 1;
}

.premium-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.premium-label svg {
    width: 16px;
    height: 16px;
    color: rgba(239, 68, 68, 0.8);
    flex-shrink: 0;
}

.premium-field {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    font-size: 15px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.25);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.95);
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-sizing: border-box;
}

.premium-field:hover {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-field:focus {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(239, 68, 68, 0.7);
    box-shadow:
        0 0 0 4px rgba(239, 68, 68, 0.15),
        0 10px 30px rgba(239, 68, 68, 0.2),
        0 0 20px rgba(239, 68, 68, 0.3) inset;
    transform: translateY(-2px);
}

.premium-field option {
    background: #1e293b;
    color: #fff;
    padding: 10px;
}

.premium-textarea {
    height: auto !important;
    min-height: 120px;
    padding: 16px 18px;
    resize: vertical;
    line-height: 1.6;
    box-sizing: border-box;
}

/* Premium Button */
.premium-btn {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-btn--primary {
    width: 100%;
    height: 56px;
    padding: 0 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    background: linear-gradient(135deg,
            rgba(220, 38, 38, 0.95) 0%,
            rgba(185, 28, 28, 0.95) 100%);
    box-shadow:
        0 12px 32px rgba(220, 38, 38, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.premium-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 ease;
}

.premium-btn--primary:hover::before {
    left: 100%;
}

.premium-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(220, 38, 38, 0.45),
        0 6px 16px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.premium-btn--primary:active {
    transform: translateY(-1px);
    box-shadow:
        0 8px 24px rgba(220, 38, 38, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.premium-btn--primary svg {
    width: 20px;
    height: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.premium-btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none !important;
}

/* Responsive */
@media (max-width: 900px) {
    .gf-card--glow {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .premium-title {
        font-size: 1.6rem;
    }

    .premium-subtitle {
        font-size: 0.88rem;
    }

    .header-icon {
        width: 70px;
        height: 70px;
    }

    .gradient-orb {
        filter: blur(80px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

/* Selection Colors */
.premium-field::selection,
.premium-textarea::selection {
    background: rgba(239, 68, 68, 0.4);
    color: white;
}

.premium-field::-webkit-calendar-picker-indicator {
    filter: invert(0.9);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.premium-field::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ==============================================
   âś¨ PREMIUM APPROVALS VIEW STYLES âś¨
   ============================================== */

/* Background Container */
.premium-approvals-bg {
    position: relative;
    min-height: 100vh;
    padding: 0;
}

/* Approvals-specific Gradient Orbs */
.gradient-orb-approvals-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.25), transparent 70%);
    top: -150px;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

.gradient-orb-approvals-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    bottom: 20%;
    left: 5%;
    animation: float 22s ease-in-out infinite;
    animation-delay: 5s;
}

.gradient-orb-approvals-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 70%);
    top: 40%;
    right: 15%;
    animation: float 25s ease-in-out infinite;
    animation-delay: 10s;
}

/* Premium Container */
.premium-approvals-container {
    position: relative;
    z-index: 1;
}

/* Premium Approvals Header */
.premium-approvals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding: 24px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.premium-approvals-header .header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon-sm {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(185, 28, 28, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.25);
    position: relative;
    overflow: hidden;
}

.header-icon-sm::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

.header-icon-sm svg {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.premium-view-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.premium-view-subtitle {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 400;
}

/* Premium Action Button */
.premium-action-btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.9), rgba(185, 28, 28, 0.9));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.premium-action-btn::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.4s ease;
}

.premium-action-btn:hover::before {
    left: 100%;
}

.premium-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.4);
}

.premium-action-btn:active {
    transform: translateY(0);
}

.premium-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Premium Table Section */
.premium-table-section {
    margin-bottom: 30px;
}

.premium-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px 0;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premium-section-title svg {
    width: 20px;
    height: 20px;
    color: rgba(239, 68, 68, 0.8);
}

.count-badge {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.8), rgba(185, 28, 28, 0.8));
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Premium Table Wrapper */
.premium-table-wrapper {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.premium-table-wrapper table {
    background: transparent !important;
}

.premium-table-wrapper thead tr {
    background: rgba(255, 255, 255, 0.05) !important;
}

.premium-table-wrapper thead th {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 14px 12px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.premium-table-wrapper tbody tr {
    transition: all 0.2s ease;
}

.premium-table-wrapper tbody tr:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateY(-1px);
}

.premium-table-wrapper tbody td {
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px 12px !important;
}

/* Enhanced Action Buttons in Table */
.premium-table-wrapper .btn-approval-action {
    font-size: 0.8rem;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.premium-table-wrapper .btn-primary {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.premium-table-wrapper .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.premium-table-wrapper .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.premium-table-wrapper .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.premium-table-wrapper .btn-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.premium-table-wrapper .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.premium-table-wrapper .btn-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    border: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.premium-table-wrapper .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Empty State */
.empty-state {
    padding: 60px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .premium-approvals-header {
        flex-direction: column;
        gap: 20px;
    }

    .premium-action-btn {
        width: 100%;
        justify-content: center;
    }

    .gradient-orb-approvals-1,
    .gradient-orb-approvals-2,
    .gradient-orb-approvals-3 {
        filter: blur(80px);
        opacity: 0.3;
    }
}

/* ==============================================
   âś¨ PREMIUM WHO IS AT WORK MODAL STYLES âś¨
   ============================================== */

/* Modal-specific Gradient Orbs */
.gradient-orb-modal-1 {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.3), transparent 70%);
    top: 10%;
    right: 15%;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-modal-2 {
    position: fixed;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    bottom: 15%;
    left: 10%;
    animation: float 24s ease-in-out infinite;
    animation-delay: 6s;
}

.gradient-orb-modal-3 {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
    top: 50%;
    left: 50%;
    animation: float 28s ease-in-out infinite;
    animation-delay: 12s;
}

.premium-modal-overlay {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.premium-who-modal {
    margin: 40px auto;
}

/* Premium Modal Header */
.premium-who-header {
    position: relative;
    padding-bottom: 30px;
}

.premium-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: rgba(239, 68, 68, 0.9);
    transform: rotate(90deg);
}

/* Modal Body */
.premium-modal-body {
    position: relative;
    z-index: 1;
}

/* Info Section */
.premium-who-info {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
}

.premium-timestamp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premium-timestamp-card svg {
    width: 18px;
    height: 18px;
    color: rgba(239, 68, 68, 0.8);
    flex-shrink: 0;
}

.timestamp-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timestamp-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.premium-refresh-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.premium-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.premium-refresh-btn svg {
    width: 18px;
    height: 18px;
}

/* Count Badge */
.premium-count-badge {
    padding: 20px 40px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(185, 28, 28, 0.15));
    border: 1px solid rgba(220, 38, 38, 0.3);
    text-align: center;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
}

.count-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.count-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Table Wrapper */
.premium-who-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
}

.premium-who-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-who-table thead tr {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.premium-who-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-who-table th>* {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.premium-who-table th svg {
    width: 16px;
    height: 16px;
    color: rgba(239, 68, 68, 0.7);
}

.premium-who-table tbody tr {
    transition: all 0.2s ease;
}

.premium-who-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.premium-who-table td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.premium-who-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Active vs Inactive presence rows ── */
.who-row-active td {
    color: rgba(255, 255, 255, 0.95);
}

.who-row-active .who-hours {
    color: rgba(16, 185, 129, 0.95);
    font-weight: 700;
}

.who-row-inactive td {
    color: rgba(255, 255, 255, 0.3);
}

.who-row-inactive .dept-badge {
    filter: grayscale(100%);
    opacity: 0.35;
}

.who-row-inactive .who-hours {
    color: rgba(255, 255, 255, 0.25);
}

.who-row-inactive:hover td {
    color: rgba(255, 255, 255, 0.45);
}

.employee-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
}

.dept-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid;
    font-size: 0.85rem;
    font-weight: 500;
}

.dept-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.work-hours {
    font-family: 'Courier New', monospace;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Empty State */
.premium-empty-state {
    padding: 60px 40px;
    text-align: center;
}

.premium-empty-state svg {
    width: 80px;
    height: 80px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.premium-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.premium-empty-state p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Footer Note */
.premium-footer-note {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.premium-footer-note svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .premium-who-info {
        grid-template-columns: 1fr;
    }

    .premium-count-badge {
        padding: 16px 30px;
    }

    .count-number {
        font-size: 2rem;
    }

    .premium-who-table th,
    .premium-who-table td {
        padding: 12px;
        font-size: 0.85rem;
    }
}

/* ==========================================
   PARTIAL HOUR BLOCK STYLES (Unavailability)
   ========================================== */

/* CzÄ™Ĺ›ciowa blokada godzinowa dla niedostÄ™pnoĹ›ci */
.state-block-partial {
    background: repeating-linear-gradient(45deg,
            rgba(255, 193, 7, 0.1),
            rgba(255, 193, 7, 0.1) 5px,
            rgba(255, 193, 7, 0.2) 5px,
            rgba(255, 193, 7, 0.2) 10px) !important;
    border: 1px solid rgba(255, 193, 7, 0.4) !important;
    cursor: not-allowed !important;
    position: relative;
}

.state-block-partial:hover {
    background: repeating-linear-gradient(45deg,
            rgba(255, 193, 7, 0.2),
            rgba(255, 193, 7, 0.2) 5px,
            rgba(255, 193, 7, 0.3) 5px,
            rgba(255, 193, 7, 0.3) 10px) !important;
}

/* Ikona W w komórce dla niedostępności */
.state-block-partial::before {
    content: 'W';
    font-size: 0.8rem;
    font-weight: 700;
    color: #f59e0b;
    display: block;
    text-align: center;
}

/* ==========================================
   APPROVALS TABLE â€” 50% ROW HEIGHT (COMPACT)
   ========================================== */

/* Nadpisanie bazowego style.css (ktĂłry ma height: 50px !important) */
.premium-approvals-container .approvals-table {
    table-layout: fixed;
}

/* 50% height: byĹ‚o 50px -> teraz 24px (mniej niĹĽ poĹ‚owa dla wiÄ™kszej kompaktowoĹ›ci) */
.premium-approvals-container .approvals-table th,
.premium-approvals-container .approvals-table td {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 3px 8px !important;
    line-height: 1.1 !important;
    vertical-align: middle !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* NagĹ‚Ăłwki jeszcze ciaĹ›niejsze */
.premium-approvals-container .approvals-table thead th {
    padding: 2px 8px !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase;
}

/* Tekst w wierszu */
.premium-approvals-container .approvals-table tbody td {
    font-size: 0.8rem !important;
    padding: 3px 8px !important;
}

/* Przyciski w kolumnie AKCJE â€” teĹĽ 50% */
.premium-approvals-container .approvals-table .btn,
.premium-approvals-container .approvals-table button {
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    padding: 2px 8px !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    margin: 1px 2px !important;
}

/* Badge / statusy kompakt */
.premium-approvals-container .approvals-table .badge,
.premium-approvals-container .approvals-table .status-badge {
    padding: 1px 6px !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    display: inline-block;
}

/* Avatar images - mniejsze */
.premium-approvals-container .approvals-table td img.avatar-sm {
    width: 20px !important;
    height: 20px !important;
}

/* Sortowanie icons - mniejsze */
.premium-approvals-container .approvals-table th svg {
    width: 10px;
    height: 10px;
    vertical-align: middle;
}

/* ============================================
   PREMIUM GLASSMORPHISM - EMPLOYEE REQUEST MODAL
   ============================================ */

/* Modal Overlay - Dark backdrop */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Premium Glass Card */
.modal-overlay .modal {
    background: linear-gradient(135deg,
            rgba(30, 41, 59, 0.95) 0%,
            rgba(15, 23, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 32px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Glow accent line at top */
.modal-overlay .modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent,
            rgba(99, 102, 241, 0.6),
            transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* Modal Title */
.modal-overlay .modal h3 {
    margin: 0 0 24px 0;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

/* Form Groups */
.modal-overlay .form-group {
    margin-bottom: 20px;
}

.modal-overlay .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Controls - Premium Glass Input */
.modal-overlay select,
.modal-overlay textarea,
.modal-overlay input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-sizing: border-box;
}

.modal-overlay select:hover,
.modal-overlay textarea:hover {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.modal-overlay select:focus,
.modal-overlay textarea:focus {
    border-color: rgba(99, 102, 241, 0.6);
    background: rgba(15, 23, 42, 0.9);
    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1),
        0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Textarea specific */
.modal-overlay textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Date Display */
.modal-overlay #date-range-display {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #6366f1;
    font-size: 1rem;
    padding: 8px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Modal Actions - Button Container */
.modal-overlay .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

/* Premium Buttons */
.modal-overlay .btn {
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

/* Primary Button - Glow Effect */
.modal-overlay .btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow:
        0 4px 12px rgba(99, 102, 241, 0.3),
        0 0 20px rgba(99, 102, 241, 0.2);
}

.modal-overlay .btn-primary::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;
}

.modal-overlay .btn-primary:hover::before {
    left: 100%;
}

.modal-overlay .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(99, 102, 241, 0.4),
        0 0 30px rgba(99, 102, 241, 0.3);
}

.modal-overlay .btn-primary:active {
    transform: translateY(0);
}

/* Secondary Button - Glass Effect */
.modal-overlay .btn-secondary {
    background: rgba(51, 65, 85, 0.6);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(10px);
}

.modal-overlay .btn-secondary:hover {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    transform: translateY(-1px);
}

.modal-overlay .btn-secondary:active {
    transform: translateY(0);
}

/* Hours Section Special Styling */
.modal-overlay #hours-section {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.modal-overlay #hours-section label:first-child {
    color: #a5b4fc;
}

/* Flatpickr calendar container */
.flatpickr-calendar {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

.flatpickr-day {
    color: #cbd5e1 !important;
    border-radius: 6px !important;
}

.flatpickr-day:hover {
    background: rgba(99, 102, 241, 0.2) !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
}

.flatpickr-day.selected {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
}

.flatpickr-months {
    background: rgba(15, 23, 42, 0.6) !important;
}

.flatpickr-current-month {
    color: #e2e8f0 !important;
}

/* ===== MODAL HORIZONTAL 2-COLUMN LAYOUT ===== */

/* Wide modal for 2 columns */
.modal-request-wide {
    max-width: 980px !important;
    width: 980px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px 28px !important;
}

/* Header with title + info icon */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
}

.modal-header h3 {
    margin: 0 !important;
}

/* Info button + tooltip */
.req-info {
    position: relative;
}

.req-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.req-info-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(148, 163, 184, 0.5);
}

/* Tooltip - shows on hover */
.req-tooltip {
    position: absolute;
    top: 40px;
    right: 0;
    width: 340px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.98);
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.req-tooltip strong {
    color: #a5b4fc;
    display: block;
    margin-bottom: 8px;
}

.req-info:hover .req-tooltip {
    display: block;
}

/* 2-column grid */
.req-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    margin-bottom: 0;
}

/* Left column */
.req-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Right column */
.req-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Form groups spacing */
.modal-request-wide .form-group {
    margin-bottom: 0 !important;
}

.modal-request-wide .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #cbd5e1;
}

/* Calendar container */
.calendar-container {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

/* Date preview below calendar */
.req-date-preview {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: #a5b4fc;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hours section - always visible */
.hours-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    transition: opacity 0.3s ease;
}

.hours-section.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.hours-section label:first-child {
    margin-bottom: 10px;
}

.hours-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 10px;
}

.hours-col {
    display: flex;
    flex-direction: column;
}

.hours-label {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 6px;
    font-weight: 500;
}

.hours-hint {
    font-size: 0.80rem;
    color: #94a3b8;
    line-height: 1.4;
    font-style: italic;
}

/* Textarea */
.modal-request-wide textarea {
    resize: none !important;
    min-height: 100px;
}

/* Modal actions in right column */
.modal-request-wide .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 0;
    border-top: none;
}

/* ===== FLATPICKR CALENDAR CUSTOMIZATION ===== */

/* Compact inline calendar */
.flatpickr-calendar.inline {
    box-shadow: none !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    width: 100% !important;
    max-width: 320px;
}

.flatpickr-months {
    background: transparent !important;
    padding: 10px 0;
}

.flatpickr-current-month {
    font-size: 1.05rem;
    color: #e2e8f0 !important;
}

.flatpickr-day {
    color: #cbd5e1 !important;
    height: 38px;
    line-height: 38px;
    max-width: 38px;
    font-size: 0.92rem;
    border: none !important;
}

/* CRITICAL: Unified Selection Color (Pill Shape) */
/* 1st click: startRange = rounded left */
.flatpickr-day.startRange {
    background: #9d174d !important;
    color: white !important;
    border-radius: 50px 0 0 50px !important;
    border: 1px solid #9d174d !important;
    box-shadow: 2.5px 0 0 #9d174d !important;
    /* Fill gap to right */
    z-index: 2;
    /* On top of neighbors */
}

/* 2nd click: endRange = rounded right */
.flatpickr-day.endRange {
    background: #9d174d !important;
    color: white !important;
    border-radius: 0 50px 50px 0 !important;
    border: 1px solid #9d174d !important;
    box-shadow: -2.5px 0 0 #9d174d !important;
    /* Fill gap to left */
    z-index: 2;
}

/* Middle of range: flat, same color, filling gaps */
.flatpickr-day.inRange {
    background: #9d174d !important;
    color: white !important;
    border-radius: 0 !important;
    border: 1px solid #9d174d !important;
    /* Fill gaps on both sides to create solid bar */
    box-shadow: -2.5px 0 0 #9d174d, 2.5px 0 0 #9d174d !important;
    z-index: 1;
}

/* Single selected day (both start and end same) */
.flatpickr-day.selected.startRange.endRange {
    border-radius: 50% !important;
    box-shadow: none !important;
    background: #9d174d !important;
    border-color: #9d174d !important;
}

/* Hover effect */
.flatpickr-day:hover:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    background: rgba(99, 102, 241, 0.2) !important;
    border-radius: 8px !important;
}

.flatpickr-day.today {
    border: 1px solid #6366f1 !important;
}

/* ===== RESPONSIVE: Mobile fallback ===== */
@media (max-width: 900px) {
    .modal-request-wide {
        max-width: 95vw !important;
        width: auto !important;
    }

    .req-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== AVATAR CROPPER ===== */
.cropper-container {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #1e293b;
    border-radius: 12px;
    border: 2px dashed #475569;
    margin: 0 auto 15px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
}

.cropper-container.active {
    border-style: solid;
    border-color: #6366f1;
}

.cropper-container:active {
    cursor: grabbing;
}

.cropper-placeholder {
    color: #64748b;
    pointer-events: none;
    text-align: center;
}

/* The actual image canvas */
.cropper-canvas {
    display: block;
    /* transform will be handled in JS */
}

/* Circular Overlay Mask */
.cropper-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas */
    background: radial-gradient(circle closest-side, transparent 96%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 10;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Controls below cropper */
.cropper-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.zoom-slider {
    flex-grow: 1;
    height: 6px;
    background: #475569;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
}

.btn-upload {
    width: 100%;
    border: 2px dashed #475569;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
    cursor: pointer;
}

.btn-upload:hover {
    border-color: #6366f1;
    color: #a5b4fc;
    background: rgba(99, 102, 241, 0.1);
}

.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

/* ================================================
   MÓJ GRAFIK - Kalendarz kafelkowy
   ================================================ */

.my-schedule-calendar {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-header .day-name {
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.day-tile:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.day-tile--empty {
    background: transparent;
    border: none;
    pointer-events: none;
}

.day-tile--weekend {
    background: rgba(255, 100, 100, 0.05);
    border-color: rgba(255, 100, 100, 0.2);
}

.day-tile-header {
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    text-align: center;
}

.day-tile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.8rem;
}

.tile-block {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tile-block strong {
    font-size: 0.85rem;
    font-weight: 600;
}

.tile-block small {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.tile-block span {
    font-size: 0.8rem;
    font-weight: 500;
}

.tile-work {
    background: rgba(100, 200, 100, 0.15);
    border-left: 3px solid #10b981;
}

.tile-absence {
    background: rgba(255, 150, 50, 0.15);
    border-left: 3px solid #f59e0b;
}

.tile-unavailable {
    background: rgba(200, 100, 255, 0.15);
    border-left: 3px solid #a855f7;
}

.tile-empty {
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    padding: 20px 0;
}

.tile-status {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}

.tile-status.status-pending {
    background: rgba(255, 200, 100, 0.3);
    color: #fbbf24;
}

.tile-status.status-approved {
    background: rgba(100, 200, 100, 0.3);
    color: #10b981;
}

.tile-status.status-rejected {
    background: rgba(255, 100, 100, 0.3);
    color: #ef4444;
}

/* ================================================
   TRYB DRUKOWANIA
   ================================================ */

@media print {

    /* Ukryj elementy UI */
    #sidebar,
    .gradient-orb,
    .premium-action-bar,
    button,
    .nav-item,
    #user-info {
        display: none !important;
    }

    /* Ukryj scrollbar */
    body,
    html {
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }

    /* Ukryj scrollbar - Chrome/Safari */
    ::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    /* Resetuj paddding głównego kontenera */
    #main-view {
        padding: 0 !important;
    }

    #content-area {
        padding: 0 !important;
    }

    /* Dostosuj layout dla A4 */
    .premium-glow-container {
        background: white !important;
        padding: 5mm 8mm !important;
    }

    .gf-card {
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid;
    }

    .premium-header {
        color: #000 !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid #000;
        padding-bottom: 3px;
    }

    .header-icon {
        display: none !important;
    }

    .premium-title {
        color: #000 !important;
        font-size: 12pt !important;
        -webkit-text-fill-color: #000 !important;
        margin: 0 !important;
    }

    .premium-subtitle {
        color: #333 !important;
        font-size: 8pt !important;
        margin: 0 !important;
    }

    /* Banner ostrzegawczy - minimalny BEZ RAMKI */
    .warning-banner {
        padding: 4px 8px !important;
        margin-bottom: 4px !important;
        border: none !important;
        background: transparent !important;
    }

    .warning-banner h3 {
        font-size: 8pt !important;
        margin: 0 0 2px 0 !important;
        color: #666 !important;
    }

    .warning-banner p {
        font-size: 6pt !important;
        margin: 0 !important;
        line-height: 1.1 !important;
        color: #888 !important;
    }

    /* Kalendarz - pełna szerokość, bez skalowania */
    .my-schedule-calendar {
        background: white !important;
        border: 1px solid #000 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .calendar-header .day-name {
        color: #000 !important;
        border-bottom: 1px solid #ccc;
        font-size: 9pt !important;
        padding: 3px !important;
    }

    .day-tile {
        background: white !important;
        border: 1px solid #ccc !important;
        color: #000 !important;
        page-break-inside: avoid;
        min-height: 60px !important;
        padding: 2px !important;
    }

    .day-tile:hover {
        transform: none !important;
    }

    .day-tile-header {
        color: #000 !important;
        border-bottom: 1px solid #ddd;
        font-size: 9pt !important;
        font-weight: bold !important;
        padding: 2px !important;
    }

    .day-tile-content {
        color: #000 !important;
        font-size: 7pt !important;
        padding: 2px !important;
    }

    .tile-block {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
        color: #000 !important;
        font-size: 7pt !important;
        padding: 2px 3px !important;
        margin: 1px 0 !important;
    }

    .tile-work {
        background: #e6f7e6 !important;
        border-left: 3px solid #10b981 !important;
    }

    .tile-absence {
        background: #fff4e6 !important;
        border-left: 3px solid #f59e0b !important;
    }

    .tile-unavailable {
        background: #f3e6ff !important;
        border-left: 3px solid #a855f7 !important;
    }

    .tile-status {
        border: 1px solid #ccc;
    }

    /* Nagłówek druku (dla czytelności) */
    .premium-header::before {
        content: '';
        display: block;
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, #000, transparent);
        margin-bottom: 10px;
    }
}

@page {
    size: A4 landscape;
    margin: 8mm;
}

/* ==============================================
   ✨ SHIFTFLOW AI CHAT PANEL ✨
   ============================================== */
.ai-chat-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    background: rgba(15, 23, 42, 0.85);
    /* Dark slightly transparent slate */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px inset rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: bottom right;
}

.ai-chat-panel.collapsed {
    transform: translateY(calc(100% - 50px));
    /* leaves header visible */
}

.ai-chat-header {
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.9), rgba(126, 34, 206, 0.9));
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-header .chat-toggle-icon {
    font-size: 12px;
    transition: transform 0.3s;
}

.ai-chat-panel.collapsed .chat-toggle-icon {
    transform: rotate(180deg);
}

.ai-chat-body {
    display: flex;
    flex-direction: column;
    height: 350px;
}

.ai-chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    animation: slideIn 0.3s ease-out;
}

.ai-msg.bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-bottom-left-radius: 4px;
}

.ai-msg.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
    border-bottom-right-radius: 4px;
}

.ai-chat-input-area {
    padding: 12px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
}

.ai-chat-input-area input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.ai-chat-input-area input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.ai-chat-input-area button {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(126, 34, 206, 0.9));
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ai-chat-input-area button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.ai-chat-input-area button:active {
    transform: translateY(1px);
}

.ai-loading-dots {
    display: flex;
    gap: 4px;
    padding: 4px;
}

.ai-loading-dots span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: bounce 1s infinite alternate;
}

.ai-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    to {
        transform: translateY(-4px);
        opacity: 0.5;
    }
}

.ai-patch-highlight {
    animation: pulseHighlight 2s ease-out;
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.7);
        background-color: rgba(168, 85, 247, 0.3) !important;
    }

    70% {
        box-shadow: 0 0 0 10px rgba(168, 85, 247, 0);
        background-color: rgba(168, 85, 247, 0.1) !important;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}