/**
 * Kleeja team
 * 2017
 * Enhanced Design with Modern Effects
 */

/* ====== GLOBAL FONT SETUP ====== */
html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Tajawal', sans-serif;
}

/* Arabic font support */
[dir="rtl"], [dir="rtl"] * {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ====== HEADER NAVBAR STYLES ====== */

/* Primary navbar (top) */
.kleeja-navbar-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    padding: 1rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.kleeja-navbar-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.kleeja-navbar-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

/* Brand styling */
.kleeja-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.kleeja-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kleeja-logo {
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    object-fit: contain;
    object-position: center;
}

.kleeja-brand:hover .kleeja-logo {
    transform: scale(1.1) rotate(-5deg);
}

.brand-text {
    letter-spacing: 0.5px;
    font-weight: 800;
}

/* Navigation links */
.kleeja-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    margin: 0 4px;
    border-radius: 4px;
}

.kleeja-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.kleeja-nav-link:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-radius: 4px;
}

.kleeja-nav-link:hover::after {
    width: 80%;
}

.kleeja-nav-link.active {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Secondary navbar (user menu) */
.kleeja-navbar-secondary {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.08);
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.3s ease;
    border-top: 3px solid #007bff;
}

/* RTL Support for Secondary Navbar */
[dir="rtl"] .kleeja-navbar-secondary {
    border-top: 3px solid #007bff;
}

.kleeja-navbar-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 123, 255, 0.03) 0%, rgba(0, 123, 255, 0) 100%);
    pointer-events: none;
}

.kleeja-navbar-secondary:hover {
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.12);
}

/* User brand */
.kleeja-user-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: 2.5px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

/* RTL Support */
[dir="rtl"] .kleeja-user-brand {
    margin-left: 0;
    margin-right: auto;
    flex-direction: row-reverse;
}

.kleeja-user-brand:not(.kleeja-user-brand-mobile) {
    margin-left: auto;
}

.kleeja-user-brand:hover {
    transform: scale(1.08);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    border-color: rgba(0, 123, 255, 0.6);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.kleeja-user-icon {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}

.kleeja-user-brand:hover .kleeja-user-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Navbar Toggler Styling */
.navbar-toggler {
    padding: 0.4rem 0.6rem;
    border: 2px solid rgba(0, 123, 255, 0.5);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.navbar-toggler:hover {
    border-color: rgba(0, 123, 255, 0.8);
    background-color: rgba(0, 123, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23007bff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 1.5rem;
    height: 1.5rem;
}

/* Primary navbar toggler */
.kleeja-navbar-primary .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.kleeja-navbar-primary .navbar-toggler:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.1);
}

.kleeja-navbar-primary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Secondary navbar toggler */
.kleeja-navbar-secondary .navbar-toggler {
    border-color: rgba(0, 123, 255, 0.4);
    margin-right: 0;
}

.kleeja-navbar-secondary .navbar-toggler:hover {
    border-color: rgba(0, 123, 255, 0.8);
    background-color: rgba(0, 123, 255, 0.1);
}

.kleeja-navbar-secondary .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%23007bff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Secondary navbar nav links */
.kleeja-navbar-secondary .kleeja-nav-link {
    color: #495057 !important;
    font-weight: 500;
    position: relative;
    padding: 0.75rem 1rem !important;
    transition: all 0.3s ease;
    margin: 0 4px;
    border-radius: 4px;
}

.kleeja-navbar-secondary .kleeja-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.8), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.kleeja-navbar-secondary .kleeja-nav-link:hover {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.08);
    transform: translateY(-2px);
    border-radius: 4px;
}

.kleeja-navbar-secondary .kleeja-nav-link:hover::after {
    width: 80%;
}

.kleeja-navbar-secondary .kleeja-nav-link.active {
    color: #007bff !important;
    background-color: rgba(0, 123, 255, 0.12);
    border-radius: 4px;
    box-shadow: inset 0 2px 6px rgba(0, 123, 255, 0.1);
}

/* Responsive adjustments */

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
    .kleeja-navbar-primary {
        padding: 1.2rem 0;
    }
    
    .kleeja-brand {
        font-size: 1.5rem;
        gap: 14px;
    }
    
    .kleeja-logo {
        width: 4rem !important;
        height: 4rem !important;
    }
    
    .brand-text {
        letter-spacing: 0.8px;
    }
    
    .kleeja-nav-link {
        padding: 0.8rem 1.2rem !important;
        margin: 0 6px;
        font-size: 1rem;
    }
    
    .kleeja-navbar-secondary {
        padding: 0.9rem 0;
    }
    
    .kleeja-user-brand {
        padding: 8px 16px;
        gap: 14px;
        margin-left: auto !important;
    }
    
    .kleeja-user-name {
        font-size: 0.97rem;
        color: #000000 !important;
    }
    
    /* RTL Large Desktop */
    [dir="rtl"] .kleeja-user-brand {
        margin-left: 0 !important;
        margin-right: 1rem !important;
        flex-direction: row-reverse;
    }
}

/* Standard desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .kleeja-navbar-primary {
        padding: 1rem 0;
    }
    
    .kleeja-brand {
        font-size: 1.35rem;
        gap: 12px;
    }
    
    .kleeja-logo {
        width: 35px !important;
        height: 35px !important;
    }
    
    .kleeja-nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 4px;
    }
    
    .kleeja-navbar-secondary {
        padding: 0.8rem 0;
    }
    
    .kleeja-user-brand {
        padding: 7px 14px;
        gap: 12px;
        margin-left: auto !important;
    }
    
    .kleeja-user-name {
        font-size: 0.93rem;
        color: #ffffff !important;
    }
    
    /* RTL Standard Desktop */
    [dir="rtl"] .kleeja-user-brand {
        margin-left: 0 !important;
        margin-right: 1rem !important;
        flex-direction: row-reverse;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .kleeja-navbar-primary {
        padding: 0.9rem 0;
    }
    
    .kleeja-brand {
        font-size: 1.25rem;
        gap: 10px;
        margin-right: auto;
    }
    
    .kleeja-logo {
        width: 32px !important;
        height: 32px !important;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .kleeja-nav-link {
        padding: 0.7rem 0.9rem !important;
        margin: 0 3px;
        font-size: 0.95rem;
    }
    
    .kleeja-navbar-secondary {
        padding: 0.7rem 0;
    }
    
    .kleeja-user-brand {
        padding: 6px 12px;
        gap: 10px;
        margin-left: auto !important;
    }
    
    .kleeja-user-icon {
        width: 26px;
        height: 26px;
    }
    
    .kleeja-user-name {
        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff !important;
    }
    
    /* RTL Tablet */
    [dir="rtl"] .kleeja-user-brand {
        margin-left: 0 !important;
        margin-right: 1rem !important;
        flex-direction: row-reverse;
    }
}

/* Small tablet/landscape mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .kleeja-navbar-primary {
        padding: 0.8rem 0;
    }
    
    .kleeja-brand {
        font-size: 1.15rem;
        gap: 8px;
        margin-right: auto;
    }
    
    .kleeja-logo {
        width: 30px !important;
        height: 30px !important;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .kleeja-nav-link {
        padding: 0.6rem 0.8rem !important;
        margin: 0 2px;
        font-size: 0.9rem;
    }
    
    /* Secondary navbar tablet improvements */
    .kleeja-navbar-secondary {
        padding: 0.7rem 0;
        border-top: 3px solid #007bff;
    }
    
    .kleeja-user-brand {
        padding: 7px 12px;
        gap: 10px;
        width: auto;
        margin-left: auto !important;
    }
    
    .kleeja-user-icon {
        width: 26px;
        height: 26px;
    }
    
    .kleeja-user-name {
        font-size: 0.9rem;
        display: block;
        font-weight: 600;
        color: #ffffff !important;
    }
    
    /* RTL Small Tablet */
    [dir="rtl"] .kleeja-user-brand {
        margin-left: 0 !important;
        margin-right: 1rem !important;
        flex-direction: row-reverse;
    }
    
    .navbar-collapse {
        padding-top: 0.5rem;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link {
        padding: 0.6rem 0.8rem !important;
        margin: 0 2px;
        font-size: 0.9rem;
    }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    .kleeja-navbar-primary {
        padding: 0.7rem 0;
    }
    
    .kleeja-brand {
        font-size: 1rem;
        gap: 6px;
    }
    
    .kleeja-logo {
        width: 28px !important;
        height: 28px !important;
    }
    
    .brand-text {
        display: none;
    }
    
    .kleeja-nav-link {
        padding: 0.6rem 0.6rem !important;
        margin: 4px 0;
        font-size: 0.85rem;
        display: block;
        text-align: start;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    /* Secondary navbar mobile improvements - Always expanded */
    .kleeja-navbar-secondary {
        padding: 0.7rem 1rem !important;
        border-top: 3px solid #007bff;
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin: 0 !important;
    }
    
    /* Hide toggler button */
    .kleeja-navbar-secondary .navbar-toggler {
        display: none !important;
    }
    
    /* Collapse menu always visible and horizontal */
    .kleeja-navbar-secondary .navbar-collapse {
        flex: 1 !important;
        order: 1 !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: flex-end;
    }
    
    .kleeja-navbar-secondary .navbar-nav {
        flex-direction: row !important;
        margin-left: 0 !important;
        margin-right: 0;
    }
    
    /* User brand on far right (LTR) */
    .kleeja-user-brand-mobile {
        padding: 8px 10px;
        gap: 8px;
        margin: 0 !important;
        margin-left: auto !important;
        border-radius: 10px;
        justify-content: flex-start;
        order: 2;
        flex-shrink: 0;
        width: auto !important;
        flex: none !important;
    }
    
    /* RTL Mobile: User brand stays on right */
    [dir="rtl"] .kleeja-navbar-secondary {
        justify-content: space-between !important;
        flex-direction: row !important;
    }
    
    [dir="rtl"] .kleeja-navbar-secondary .navbar-collapse {
        margin: 0 !important;
        flex-direction: row-reverse !important;
    }
    
    [dir="rtl"] .kleeja-navbar-secondary .navbar-nav {
        flex-direction: row-reverse !important;
    }
    
    [dir="rtl"] .kleeja-user-brand-mobile {
        margin: 0 !important;
        margin-right: 1rem !important;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link {
        padding: 0.6rem 0.8rem !important;
        margin: 0 4px;
        font-size: 0.85rem;
        display: inline-block;
    }
    
    .kleeja-user-icon {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }
    
    .kleeja-user-name {
        font-size: 0.85rem;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        color: #ffffff !important;
        margin: 0;
        padding: 0;
    }
    
    .navbar-collapse {
        padding-top: 0.5rem;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link {
        padding: 0.6rem 0.8rem !important;
        margin: 4px 0;
        font-size: 0.85rem;
        display: block;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link::after {
        display: none;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link:hover {
        background-color: rgba(0, 123, 255, 0.1);
        transform: none;
    }\n}

/* Extra small mobile (< 360px) */
@media (max-width: 359px) {
    .kleeja-navbar-primary {
        padding: 0.6rem 0;
    }
    
    .kleeja-brand {
        font-size: 0.95rem;
    }
    
    .kleeja-logo {
        width: 26px !important;
        height: 26px !important;
    }
    
    .kleeja-nav-link {
        padding: 0.5rem 0.4rem !important;
        font-size: 0.8rem;
        margin: 2px 0;
    }
    
    /* Secondary navbar extra small mobile - Always expanded */
    .kleeja-navbar-secondary {
        padding: 0.6rem 1rem !important;
        border-top: 2px solid #007bff;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        margin: 0 !important;
    }
    
    /* Hide toggler button */
    .kleeja-navbar-secondary .navbar-toggler {
        display: none !important;
    }
    
    /* Collapse menu always visible */
    .kleeja-navbar-secondary .navbar-collapse {
        flex: 1 !important;
        order: 1 !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
    }
    
    .kleeja-navbar-secondary .navbar-nav {
        flex-direction: row !important;
        margin-left: 0 !important;
        margin-right: 0;
    }
    
    /* User on right (LTR) */
    .kleeja-user-brand-mobile {
        padding: 6px 8px;
        gap: 6px;
        margin: 0 !important;
        margin-left: auto !important;
        order: 2;
        width: auto !important;
        flex-shrink: 0;
        flex: none !important;
    }
    
    /* RTL: User brand stays on right side */
    [dir="rtl"] .kleeja-navbar-secondary {
        justify-content: space-between !important;
        flex-direction: row !important;
    }
    
    [dir="rtl"] .kleeja-navbar-secondary .navbar-collapse {
        margin: 0 !important;
        flex-direction: row-reverse !important;
    }
    
    [dir="rtl"] .kleeja-navbar-secondary .navbar-nav {
        flex-direction: row-reverse !important;
    }
    
    [dir="rtl"] .kleeja-user-brand-mobile {
        margin: 0 !important;
        margin-right: 0.75rem !important;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link {
        padding: 0.5rem 0.5rem !important;
        margin: 0 2px;
        font-size: 0.8rem;
        display: inline-block;
    }
    
    .kleeja-user-icon {
        width: 24px;
        height: 24px;
    }
    
    .kleeja-user-name {
        font-size: 0.75rem;
        display: block;
        color: #ffffff !important;
        margin: 0;
        padding: 0;
    }
    
    .kleeja-navbar-secondary .kleeja-nav-link {
        padding: 0.5rem 0.5rem !important;
        margin: 2px 0;
        font-size: 0.8rem;
    }
}

/* ====== WELCOME SECTION STYLES ====== */

.kleeja-welcome-section {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    transition: all 0.3s ease;
}

.kleeja-welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.kleeja-welcome-section:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.kleeja-welcome-header {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.kleeja-welcome-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 2rem;
    color: #ffffff;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.kleeja-welcome-icon .glyphicon {
    animation: heartbeat 1.2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1);
    }
}

.kleeja-welcome-text {
    flex: 1;
    color: #ffffff;
}

.kleeja-welcome-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-user-name-welcome {
    color: #fff;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.kleeja-welcome-msg {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Responsive adjustments */

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
    .kleeja-welcome-section {
        padding: 2.5rem 2rem;
    }
    
    .kleeja-welcome-header {
        gap: 25px;
    }
    
    .kleeja-welcome-icon {
        width: 70px;
        height: 70px;
        font-size: 2.3rem;
    }
    
    .kleeja-welcome-title {
        font-size: 2rem;
    }
    
    .kleeja-welcome-msg {
        font-size: 1.05rem;
    }
}

/* Standard desktop (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .kleeja-welcome-section {
        padding: 2rem 1.8rem;
    }
    
    .kleeja-welcome-icon {
        width: 65px;
        height: 65px;
        font-size: 2.1rem;
    }
    
    .kleeja-welcome-title {
        font-size: 1.7rem;
    }
}

/* Tablet (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .kleeja-welcome-section {
        padding: 1.8rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-welcome-header {
        gap: 18px;
    }
    
    .kleeja-welcome-icon {
        width: 55px;
        height: 55px;
        font-size: 1.9rem;
    }
    
    .kleeja-welcome-title {
        font-size: 1.5rem;
    }
    
    .kleeja-welcome-msg {
        font-size: 0.95rem;
    }
}

/* Small tablet/landscape mobile (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .kleeja-welcome-section {
        padding: 1.5rem 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .kleeja-welcome-header {
        gap: 15px;
    }
    
    .kleeja-welcome-icon {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
    }
    
    .kleeja-welcome-title {
        font-size: 1.3rem;
    }
    
    .kleeja-welcome-msg {
        font-size: 0.9rem;
    }
}

/* Mobile (< 576px) */
@media (max-width: 575px) {
    .kleeja-welcome-section {
        padding: 1.2rem 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .kleeja-welcome-header {
        gap: 12px;
    }
    
    .kleeja-welcome-icon {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .kleeja-welcome-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .kleeja-welcome-msg {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

/* Extra small mobile (< 360px) */
@media (max-width: 359px) {
    .kleeja-welcome-section {
        padding: 1rem 0.8rem;
        margin-bottom: 0.8rem;
        border-radius: 6px;
    }
    
    .kleeja-welcome-header {
        gap: 10px;
    }
    
    .kleeja-welcome-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .kleeja-welcome-title {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
    }
    
    .kleeja-welcome-msg {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* RTL Support */
[dir="rtl"] .kleeja-welcome-header {
    flex-direction: row-reverse;
}


#content_index{
    margin: 10px 0;
}

@media (min-width: 576px){
  #content_index .jumbotron{
      padding: 1.4rem 2rem;
  }
}

.safe_code{
    margin: 10px 0;
}
#kleeja_img_captcha{
    cursor: pointer;
}

.who-online{
    margin: 10px 0;
}

/* Loading Box - Ensure proper inheritance */
#loadbox {
    /* Inherits all properties from .kleeja-loading-container */
}

/* fileuser */
.file-user-image{
    border: 0;
    position: relative;
}
.file-user-image img{
    width: 100%;
    transition: 0.2s ease-in-out;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}

.file-user-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}

.file-user-file:hover{
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


@media (min-width: 992px) {
    .card-columns {
        column-count: 4;
    }
}

.kcheck-image{
    position: absolute;
    bottom: 10px;
    left: 20px;
    z-index: 10;
}

/* ====== ENHANCED WELCOME SECTION WITH SVG ====== */

.kleeja-welcome-svg-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0.6;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-15px) translateX(5px); }
    50% { transform: translateY(-30px) translateX(-5px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(20px) translateX(-8px); }
    50% { transform: translateY(10px) translateX(8px); }
    75% { transform: translateY(25px) translateX(-5px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-25px); }
}

.kleeja-welcome-svg-bg .kleeja-float-1 {
    animation: float1 6s ease-in-out infinite;
}

.kleeja-welcome-svg-bg .kleeja-float-2 {
    animation: float2 8s ease-in-out infinite;
}

.kleeja-welcome-svg-bg .kleeja-float-3 {
    animation: float3 7s ease-in-out infinite;
}

.kleeja-heart-svg {
    animation: heartPulse 1.3s ease-in-out infinite;
}

@keyframes heartPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
}

.kleeja-heart-img {
    animation: heartPulse 1.3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    object-fit: contain;
}

.kleeja-heart-path {
    transform-origin: center;
    animation: heartBeat 1.3s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% { filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0.5)); }
    25%, 75% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8)); }
}

.kleeja-welcome-section:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.kleeja-welcome-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.kleeja-user-name-welcome {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kleeja-welcome-decoration {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.kleeja-deco-line {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 1px;
}

.kleeja-deco-1 {
    width: 60px;
    animation: expandWidth 2s ease-in-out infinite;
}

.kleeja-deco-2 {
    width: 40px;
    animation: expandWidth 2.5s ease-in-out infinite 0.3s;
}

.kleeja-deco-3 {
    width: 50px;
    animation: expandWidth 2.2s ease-in-out infinite 0.6s;
}

@keyframes expandWidth {
    0%, 100% { width: 100%; }
    50% { width: 70%; }
}

@media (max-width: 767px) {
    .kleeja-deco-line {
        display: none;
    }
}

@media (max-width: 575px) {
    .kleeja-welcome-svg-bg {
        opacity: 0.3;
    }
}

@media (max-width: 359px) {
    .kleeja-welcome-svg-bg {
        opacity: 0.2;
    }
}

[dir="rtl"] .kleeja-welcome-decoration {
    right: auto;
    left: 0;
}

/* ====== UPLOAD FORM STYLES ====== */

.kleeja-upload-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.kleeja-upload-card:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.kleeja-upload-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
}

.kleeja-upload-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    display: flex;
    align-items: center;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Verification Box */
.kleeja-verification-box {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4f8 100%);
    border: 2px solid #e3f2fd;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.kleeja-verification-box:hover {
    border-color: #007bff;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.1);
}

.kleeja-verification-header {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.kleeja-verification-note {
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.kleeja-captcha-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.kleeja-captcha-image {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    height: 42px;
    width: auto;
    object-fit: contain;
}

.kleeja-captcha-image:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transform: scale(1.02);
}

.kleeja-verification-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-verification-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #fff;
}

/* Files Upload Section */
.kleeja-files-upload {
    margin-bottom: 1.5rem;
}

.kleeja-file-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.kleeja-file-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-file-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-file-button:active {
    transform: translateY(0);
}

.kleeja-file-input-text {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    font-size: 0.95rem;
    color: #495057;
    cursor: not-allowed;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-file-input-group:hover .kleeja-file-input-text {
    border-color: #007bff;
    background-color: #ffffff;
}

/* Upload Footer */
.kleeja-upload-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f4f8;
}

.kleeja-terms-box {
    flex: 1;
    font-size: 1rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kleeja-terms-box small {
    line-height: 1.5;
    word-break: break-word;
}

.kleeja-terms-box svg {
    flex-shrink: 0;
}

.kleeja-submit-btn {
    padding: 0.85rem 2.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-submit-btn:active {
    transform: translateY(0);
}

/* Responsive adjustments */

@media (max-width: 767px) {
    .kleeja-upload-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-upload-title {
        font-size: 1.2rem;
    }
    
    .kleeja-captcha-wrapper {
        flex-direction: column;
    }
    
    .kleeja-captcha-image {
        max-width: 100%;
        height: auto;
    }
    
    .kleeja-file-input-group {
        flex-direction: column;
    }
    
    .kleeja-file-button {
        width: 100%;
        justify-content: center;
    }
    
    .kleeja-upload-footer {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        border-top: 1px solid #f0f4f8;
        padding-top: 0.8rem;
    }
    
    .kleeja-terms-box {
        font-size: 0.75rem;
        width: 100%;
        gap: 0.4rem;
        order: -1;
    }
    
    .kleeja-submit-btn {
        width: 80%;
        max-width: 250px;
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .kleeja-terms-box small {
        font-size: 0.7rem;
    }
    
    .kleeja-terms-box svg {
        width: 14px;
        height: 14px;
        min-width: 14px;
    }
}

@media (max-width: 575px) {
    .kleeja-upload-card {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .kleeja-upload-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .kleeja-upload-title {
        font-size: 1rem;
    }
    
    .kleeja-upload-footer {
        gap: 0.6rem;
        padding-top: 0.8rem;
        border-top: 1px solid #f0f4f8;
        flex-direction: column;
        align-items: center;
    }
    
    .kleeja-terms-box {
        font-size: 0.65rem;
        gap: 0.3rem;
        width: 100%;
        order: -1;
    }
    
    .kleeja-submit-btn {
        padding: 0.55rem 1rem;
        font-size: 0.75rem;
        font-weight: 600;
        width: 70%;
        max-width: 200px;
    }
    
    .kleeja-terms-box small {
        font-size: 0.6rem;
        line-height: 1.3;
    }
    
    .kleeja-terms-box svg {
        width: 12px;
        height: 12px;
        min-width: 12px;
    }
    
    .kleeja-verification-box {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-verification-header {
        font-size: 0.95rem;
    }
    
    .kleeja-verification-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .kleeja-file-button {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .kleeja-submit-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* RTL Support */
[dir="rtl"] .kleeja-upload-title {
    flex-direction: row;
}

[dir="rtl"] .kleeja-verification-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-file-button {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-upload-footer {
    flex-direction: row-reverse;
}

/* Hidden file input styling */
.kleeja-file-input-hidden {
    display: none;
}

/* Loading Box Styles */
.kleeja-loading-box {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #ffffff;
    display: none;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
}

.kleeja-loading-box.active {
    display: block;
    animation: slideIn 0.3s ease;
}

.kleeja-loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Online Users Section */
.kleeja-online-users {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.kleeja-online-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-user-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf1 100%);
    color: #495057;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    margin: 0.25rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.kleeja-user-badge:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border-color: #007bff;
}

/* Messages Styling */
.kleeja-message-box {
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-message-error {
    background-color: #fff5f5;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.kleeja-message-success {
    background-color: #f5fff5;
    border-left: 4px solid #28a745;
    color: #155724;
}

.kleeja-message-warning {
    background-color: #fffbf0;
    border-left: 4px solid #ffc107;
    color: #856404;
}

.kleeja-message-info {
    background-color: #f0f8ff;
    border-left: 4px solid #007bff;
    color: #004085;
}

/* File Selected State */
.kleeja-file-input-group.file-selected {
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f8ff 100%);
    padding: 0.75rem;
    border-radius: 8px;
    border: 2px solid #007bff;
}

.kleeja-file-input-group.file-selected .kleeja-file-input-text {
    border-color: #007bff;
    background-color: #ffffff;
    color: #007bff;
    font-weight: 600;
}

/* Responsive adjustments for tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .kleeja-upload-card {
        padding: 2rem;
    }
    
    .kleeja-upload-footer {
        flex-direction: row;
        align-items: center;
    }
    
    .kleeja-submit-btn {
        width: auto;
    }
}

/* Responsive adjustments for desktop */
@media (min-width: 1200px) {
    .kleeja-upload-card {
        max-width: 100%;
        padding: 2.5rem;
    }
    
    .kleeja-upload-title {
        font-size: 1.75rem;
    }
    
    .kleeja-captcha-wrapper {
        gap: 1.5rem;
    }
}

/* Tablet landscape */
@media (min-width: 992px) and (max-width: 1199px) {
    .kleeja-upload-card {
        padding: 2rem;
    }
    
    .kleeja-file-input-group {
        gap: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .kleeja-upload-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .kleeja-upload-title {
        font-size: 0.95rem;
    }
    
    .kleeja-file-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .kleeja-submit-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .kleeja-verification-input {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Loading animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for hover states */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.kleeja-submit-btn:hover {
    animation: pulse 1.5s ease-in-out;
}

/* SVG Icons Styling */
.kleeja-upload-title svg,
.kleeja-verification-header svg,
.kleeja-file-button svg,
.kleeja-terms-box svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.kleeja-file-button:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.kleeja-verification-box:hover .kleeja-verification-header svg {
    transform: scale(1.1);
}

[dir="rtl"] .kleeja-upload-title svg,
[dir="rtl"] .kleeja-verification-header svg,
[dir="rtl"] .kleeja-file-button svg,
[dir="rtl"] .kleeja-terms-box svg {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Form container message section */
.kleeja-messages {
    margin-bottom: 1.5rem;
}

.kleeja-message-box {
    animation: slideIn 0.3s ease;
    border-radius: 6px;
}

/* Additional hover states for interactive elements */
.kleeja-file-input-group:hover .kleeja-file-button {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.25);
}

/* Input focus states */
.kleeja-verification-input:focus {
    background-color: #ffffff;
    color: #007bff;
}

/* File text placeholder styling */
.kleeja-file-input-text::placeholder {
    color: #adb5bd;
}

/* Transitions for all interactive elements */
.kleeja-upload-card *,
.kleeja-file-button,
.kleeja-verification-input,
.kleeja-submit-btn {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Active state animations */
.kleeja-file-button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
}

.kleeja-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.2);
}

/* Focus visible for accessibility */
.kleeja-submit-btn:focus-visible,
.kleeja-verification-input:focus-visible {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* Enhanced file selected feedback */
.kleeja-file-input-group.file-selected .kleeja-file-button {
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

/* Card shadow enhancement on scroll */
@media (prefers-reduced-motion: no-preference) {
    .kleeja-upload-card {
        will-change: box-shadow, transform;
    }
}

/* Captcha refresh button enhancement */
.kleeja-captcha-image {
    cursor: pointer;
    user-select: none;
}

.kleeja-captcha-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Loading states and transitions */
.kleeja-upload-card.is-submitting {
    opacity: 0.8;
    pointer-events: none;
}

.kleeja-submit-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}

.kleeja-submit-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success and error states for messages */
.kleeja-message-box {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.kleeja-message-box strong {
    font-weight: 700;
}

/* Tablet adjustments */
@media (min-width: 576px) and (max-width: 767px) {
    .kleeja-upload-card {
        padding: 1.75rem;
    }
    
    .kleeja-captcha-wrapper {
        flex-direction: row;
    }
    
    .kleeja-file-input-group {
        flex-direction: row;
    }
}

/* Mobile landscape adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .kleeja-upload-card {
        padding: 1rem;
    }
    
    .kleeja-upload-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
}

/* High resolution displays */
@media (min-width: 1920px) {
    .kleeja-upload-card {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .kleeja-file-button,
    .kleeja-submit-btn {
        min-height: 48px;
        min-width: 48px;
    }
}

/* Print styles */
@media print {
    .kleeja-upload-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
    
    .kleeja-file-button,
    .kleeja-submit-btn {
        background: #ffffff !important;
        color: #000000 !important;
        border: 1px solid #000000;
    }
}

/* ====== FOOTER STYLES ====== */

.kleeja-footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    cursor: pointer;
    border: none;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-footer-admin-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.kleeja-footer-admin-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-footer-admin-btn svg {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.kleeja-footer-admin-btn:hover svg {
    transform: scale(1.1) rotate(5deg);
}

.kleeja-footer-admin-btn a {
    color: #ffffff !important;
    text-decoration: none;
}

.kleeja-footer-admin-btn a:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* Responsive footer adjustments */
@media (max-width: 767px) {
    .kleeja-footer-admin-btn {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
    
    footer .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    footer .col {
        text-align: center;
    }
}

@media (max-width: 575px) {
    .kleeja-footer-admin-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
}

/* RTL Support for Footer Button */
[dir="rtl"] .kleeja-footer-admin-btn {
    margin-bottom:0.5rem;
    flex-direction: row-reverse;
}

/* ====== GUIDE PAGE STYLES ====== */

.kleeja-guide-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-guide-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 0.3rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-guide-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-guide-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.kleeja-guide-group-wrapper {
    display: flex;
}

.kleeja-guide-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 123, 255, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.kleeja-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.12);
}

.kleeja-guide-card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    padding: 0.9rem;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.kleeja-guide-list-item {
    padding: 0;
    border-bottom: 1px solid #f0f4f8;
    transition: background-color 0.3s ease;
}

.kleeja-guide-list-item:last-child {
    border-bottom: none;
}

.kleeja-guide-list-item:hover {
    background-color: #f8f9ff;
}

.kleeja-guide-item-content {
    padding: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 40px;
}

.kleeja-guide-value-large {
    color: #007bff;
    font-family: 'Courier New', monospace;
    background-color: #f0f4f8;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

.kleeja-guide-separator {
    color: #dee2e6;
    font-weight: 300;
    font-size: 1rem;
}

.kleeja-guide-size-text {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.kleeja-guide-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.kleeja-guide-item-row:last-child {
    margin-bottom: 0;
}

.kleeja-guide-label {
    font-weight: 600;
    color: #007bff;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 50px;
}

.kleeja-guide-value {
    color: #495057;
    font-family: 'Courier New', monospace;
    background-color: #f0f4f8;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    font-size: 0.8rem;
}

/* Responsive guide layout */
@media (max-width: 991px) {
    .kleeja-guide-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 767px) {
    .kleeja-guide-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-guide-title {
        font-size: 1.4rem;
    }
    
    .kleeja-guide-description {
        font-size: 0.9rem;
    }
    
    .kleeja-guide-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
    }
    
    .kleeja-guide-card-header {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .kleeja-guide-item-content {
        padding: 0.6rem;
        min-height: 36px;
    }
    
    .kleeja-guide-value-large {
        font-size: 0.95rem;
        padding: 0.3rem 0.6rem;
    }
    
    .kleeja-guide-size-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 575px) {
    .kleeja-guide-header {
        padding: 0.8rem 0;
        margin-bottom: 1.2rem;
    }
    
    .kleeja-guide-title {
        font-size: 1.2rem;
    }
    
    .kleeja-guide-description {
        font-size: 0.85rem;
    }
    
    .kleeja-guide-container {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }
    
    .kleeja-guide-card-header {
        padding: 0.6rem;
        font-size: 0.8rem;
    }
    
    .kleeja-guide-item-content {
        padding: 0.5rem;
        min-height: 32px;
        gap: 0.3rem;
    }
    
    .kleeja-guide-value-large {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }
    
    .kleeja-guide-separator {
        font-size: 0.9rem;
    }
    
    .kleeja-guide-size-text {
        font-size: 0.75rem;
    }
}

/* RTL Support for Guide */
[dir="rtl"] .kleeja-guide-item-content {
    flex-direction: row;
}

[dir="rtl"] .kleeja-guide-label {
    margin-left: 0;
    margin-right: 0.3rem;
}

/* ====== STATS PAGE STYLES ====== */

.kleeja-stats-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-stats-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 0.3rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-stats-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-stats-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.kleeja-stats-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    overflow: visible;
}

.kleeja-stats-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
    object-position: center;
}

.kleeja-stats-container {
    background: #ffffff;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    flex: 1;
    display: block;
    padding: 0;
    margin: 0;
    list-style: none;
    min-height: auto;
}

.kleeja-stats-container:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.kleeja-stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-left: 3px solid #007bff;
    border-radius: 8px;
    transition: all 0.3s ease;
    list-style: none;
}

.kleeja-stats-item:last-child {
    border-left: 3px solid #007bff;
}

.kleeja-stats-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
    padding-left: 1.4rem;
    border-left: 3px solid #007bff;
}

.kleeja-stats-label {
    font-weight: 600;
    color: #007bff;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-shrink: 0;
    min-width: 120px;
}

.kleeja-stats-value {
    color: #495057;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-stats-value b {
    color: #007bff;
    font-weight: 700;
}

/* Responsive stats layout */
@media (max-width: 991px) {
    .kleeja-stats-wrapper {
        gap: 1.5rem;
    }
    
    .kleeja-stats-image-container {
        width: 160px;
        height: 160px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
}

@media (max-width: 767px) {
    .kleeja-stats-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-stats-title {
        font-size: 1.4rem;
    }
    
    .kleeja-stats-description {
        font-size: 0.9rem;
    }
    
    .kleeja-stats-wrapper {
        flex-direction: row;
        gap: 1.2rem;
        align-items: flex-start;
    }
    
    .kleeja-stats-image-container {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        overflow: visible;
    }
    
    .kleeja-stats-container {
        flex: 1;
        min-width: 0;
    }
    
    .kleeja-stats-item {
        padding: 0.85rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .kleeja-stats-item:hover {
        padding-left: 1rem;
        border-left: none;
        border-bottom: 2px solid #007bff;
        padding-bottom: 0.85rem;
    }
    
    .kleeja-stats-label {
        font-size: 0.85rem;
        flex-basis: 100%;
        min-width: auto;
    }
    
    .kleeja-stats-value {
        font-size: 0.85rem;
        text-align: left;
        flex-basis: 100%;
    }
}

@media (max-width: 575px) {
    .kleeja-stats-header {
        padding: 0.8rem 0;
        margin-bottom: 1rem;
    }
    
    .kleeja-stats-title {
        font-size: 1.2rem;
    }
    
    .kleeja-stats-description {
        font-size: 0.8rem;
    }
    
    .kleeja-stats-wrapper {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        width: 100%;
    }
    
    .kleeja-stats-image-container {
        width: 90px;
        height: 90px;
        margin: 0 auto;
        flex-shrink: 0;
        border-radius: 8px;
        order: -1;
    }
    
    .kleeja-stats-container {
        width: 100%;
        display: block;
        background: #ffffff;
        border-radius: 8px;
        overflow: auto;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .kleeja-stats-item {
        padding: 0.7rem 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        border-bottom: 1px solid #f0f4f8;
        list-style: none;
    }
    
    .kleeja-stats-item:last-child {
        border-bottom: none;
    }
    
    .kleeja-stats-label {
        font-size: 0.8rem;
        color: #007bff;
        font-weight: 600;
    }
    
    .kleeja-stats-value {
        font-size: 0.75rem;
        color: #495057;
        text-align: left;
    }
}}

/* RTL Support for Stats */
[dir="rtl"] .kleeja-stats-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-stats-item {
    flex-direction: row;
}

[dir="rtl"] .kleeja-stats-value {
    text-align: left;
}

[dir="rtl"] .kleeja-stats-item:hover {
    padding-left: 1.2rem;
    padding-right: 1.4rem;
    border-left: none;
    border-right: 3px solid #007bff;
}

@media (max-width: 767px) {
    [dir="rtl"] .kleeja-stats-value {
        text-align: right;
    }
    
    [dir="rtl"] .kleeja-stats-item:hover {
        border-right: none;
        border-bottom: 2px solid #007bff;
    }
}

/* ====== CALL/CONTACT PAGE STYLES ====== */

.kleeja-call-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-call-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-alert {
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

.kleeja-alert-danger {
    color: #721c24;
}

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

.kleeja-alert-list li {
    padding: 0.3rem 0;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-call-form {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 600px;
    margin: 0 auto;
}

.kleeja-call-form:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
}

.kleeja-form-group {
    margin-bottom: 1.5rem;
}

.kleeja-form-group:last-child {
    margin-bottom: 0;
}

.kleeja-form-label {
    display: block;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #495057;
    box-sizing: border-box;
}

.kleeja-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    background-color: #f8f9ff;
}

.kleeja-form-control::placeholder {
    color: #adb5bd;
}

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

.kleeja-call-captcha {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f8ff 100%);
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.kleeja-captcha-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.kleeja-captcha-img {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.kleeja-captcha-img:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

.kleeja-form-help {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.3rem;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Submit button styling */
.kleeja-call-form .kleeja-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-call-form .kleeja-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-call-form .kleeja-submit-btn:active {
    transform: translateY(0);
}

/* Responsive call form */
@media (max-width: 767px) {
    .kleeja-call-form {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .kleeja-form-group {
        margin-bottom: 1.2rem;
    }
    
    textarea.kleeja-form-control {
        min-height: 100px;
    }
    
    .kleeja-call-captcha {
        padding: 0.9rem;
        border: 1px solid #e3f2fd;
        margin-bottom: 1.2rem;
    }
    
    .kleeja-captcha-wrapper {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .kleeja-captcha-img {
        width: 100%;
        height: 100px;
        max-height: 100px;
        object-fit: contain;
    }
    
    .kleeja-call-captcha .kleeja-form-control {
        width: 100%;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .kleeja-call-header {
        padding: 0.8rem 0;
        margin-bottom: 1.2rem;
    }
    
    .kleeja-call-title {
        font-size: 1.2rem;
    }
    
    .kleeja-call-form {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .kleeja-form-label {
        font-size: 0.85rem;
    }
    
    .kleeja-form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .kleeja-call-captcha {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 6px;
        border: 1px solid #e3f2fd;
        background: linear-gradient(135deg, #f9faff 0%, #f3f7ff 100%);
    }
    
    .kleeja-captcha-wrapper {
        flex-direction: column;
        gap: 0.6rem;
        align-items: stretch;
    }
    
    .kleeja-captcha-img {
        width: 100%;
        height: 80px;
        max-height: 80px;
        object-fit: contain;
        border-radius: 4px;
    }
    
    .kleeja-call-captcha .kleeja-form-control {
        width: 100%;
        padding: 0.6rem 0.7rem;
        font-size: 0.9rem;
        border-radius: 4px;
    }
    
    .kleeja-alert {
        padding: 0.8rem;
    }
    
    .kleeja-alert-list li {
        font-size: 0.85rem;
    }
}}

/* RTL Support for Call Form */
[dir="rtl"] .kleeja-captcha-wrapper {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-form-control {
    direction: rtl;
}

[dir="rtl"] .kleeja-form-control[style*="direction:ltr"] {
    direction: ltr !important;
}

/* ====== RULES PAGE STYLES ====== */

.kleeja-rules-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-rules-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-rules-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
    line-height: 1.8;
}

.kleeja-rules-content:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.kleeja-rules-text {
    color: #495057;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-rules-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.kleeja-rules-text p:last-child {
    margin-bottom: 0;
}

.kleeja-rules-text h1,
.kleeja-rules-text h2,
.kleeja-rules-text h3,
.kleeja-rules-text h4,
.kleeja-rules-text h5,
.kleeja-rules-text h6 {
    color: #007bff;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-rules-text h1 {
    font-size: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
    padding-bottom: 0.5rem;
}

.kleeja-rules-text h2 {
    font-size: 1.35rem;
}

.kleeja-rules-text h3 {
    font-size: 1.15rem;
}

.kleeja-rules-text ul,
.kleeja-rules-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.kleeja-rules-text li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.kleeja-rules-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.kleeja-rules-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.kleeja-rules-text strong,
.kleeja-rules-text b {
    color: #007bff;
    font-weight: 700;
}

.kleeja-rules-text em,
.kleeja-rules-text i {
    color: #6c757d;
    font-style: italic;
}

.kleeja-rules-text blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6c757d;
    font-style: italic;
}

/* Responsive rules layout */
@media (max-width: 767px) {
    .kleeja-rules-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-rules-title {
        font-size: 1.4rem;
    }
    
    .kleeja-rules-content {
        padding: 1.5rem;
    }
    
    .kleeja-rules-text {
        font-size: 0.95rem;
    }
    
    .kleeja-rules-text h1 {
        font-size: 1.3rem;
    }
    
    .kleeja-rules-text h2 {
        font-size: 1.15rem;
    }
    
    .kleeja-rules-text h3 {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .kleeja-rules-header {
        padding: 0.8rem 0;
        margin-bottom: 1.2rem;
    }
    
    .kleeja-rules-title {
        font-size: 1.2rem;
    }
    
    .kleeja-rules-content {
        padding: 1.2rem;
        border-radius: 8px;
    }
    
    .kleeja-rules-text {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .kleeja-rules-text h1 {
        font-size: 1.1rem;
    }
    
    .kleeja-rules-text ul,
    .kleeja-rules-text ol {
        padding-left: 1.5rem;
    }
}

/* RTL Support for Rules */
[dir="rtl"] .kleeja-rules-text {
    text-align: right;
}

[dir="rtl"] .kleeja-rules-text ul,
[dir="rtl"] .kleeja-rules-text ol {
    padding-left: 0;
    padding-right: 2rem;
}

[dir="rtl"] .kleeja-rules-text blockquote {
    border-left: none;
    border-right: 4px solid #007bff;
    padding-left: 0;
    padding-right: 1rem;
}

@media (max-width: 575px) {
    [dir="rtl"] .kleeja-rules-text ul,
    [dir="rtl"] .kleeja-rules-text ol {
        padding-right: 1.5rem;
    }
}

/* ====== POPUP MODAL STYLES ====== */

.kleeja-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.kleeja-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.kleeja-modal {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kleeja-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #007bff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kleeja-modal-title {
    margin: 0;
    font-size: 1.3rem;
    color: #007bff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-modal-title svg {
    width: 24px;
    height: 24px;
}

.kleeja-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.kleeja-modal-close:hover {
    color: #007bff;
    transform: rotate(90deg);
}

.kleeja-modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.kleeja-modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-modal-btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-modal-btn-secondary {
    background: #e9ecef;
    color: #495057;
}

.kleeja-modal-btn-secondary:hover {
    background: #dee2e6;
}

.kleeja-modal-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.kleeja-modal-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

/* Modal types */
.kleeja-modal-error .kleeja-modal-header {
    border-bottom-color: #dc3545;
}

.kleeja-modal-error .kleeja-modal-title {
    color: #dc3545;
}

.kleeja-modal-error .kleeja-modal-body {
    background: #fff5f5;
}

.kleeja-modal-success .kleeja-modal-header {
    border-bottom-color: #28a745;
}

.kleeja-modal-success .kleeja-modal-title {
    color: #28a745;
}

.kleeja-modal-success .kleeja-modal-body {
    background: #f5fff5;
}

.kleeja-modal-warning .kleeja-modal-header {
    border-bottom-color: #ffc107;
}

.kleeja-modal-warning .kleeja-modal-title {
    color: #ffc107;
}

.kleeja-modal-warning .kleeja-modal-body {
    background: #fffbf0;
}

.kleeja-modal-info .kleeja-modal-header {
    border-bottom-color: #007bff;
}

.kleeja-modal-info .kleeja-modal-title {
    color: #007bff;
}

.kleeja-modal-info .kleeja-modal-body {
    background: #f5f9ff;
}

/* Responsive modal */
@media (max-width: 767px) {
    .kleeja-modal {
        width: 95%;
        max-width: 100%;
    }
    
    .kleeja-modal-header {
        padding: 1.2rem;
    }
    
    .kleeja-modal-body {
        padding: 1.2rem;
        font-size: 0.95rem;
    }
    
    .kleeja-modal-footer {
        padding: 1.2rem;
        flex-direction: column-reverse;
    }
    
    .kleeja-modal-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .kleeja-modal {
        width: 98%;
        border-radius: 8px;
    }
    
    .kleeja-modal-header {
        padding: 1rem;
    }
    
    .kleeja-modal-title {
        font-size: 1.1rem;
        gap: 0.6rem;
    }
    
    .kleeja-modal-body {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .kleeja-modal-footer {
        padding: 1rem;
    }
}

/* ====== PROFILE PAGE STYLES ====== */

.kleeja-profile-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-profile-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 0.5rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-profile-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.kleeja-profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #f0f4f8;
    overflow-x: auto;
}

.kleeja-profile-tab-btn {
    flex: 1;
    padding: 1.2rem 1rem;
    background: #ffffff;
    border: none;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-bottom: 3px solid transparent;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-profile-tab-btn:hover {
    background: #f8f9ff;
    color: #007bff;
}

.kleeja-profile-tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.kleeja-profile-tab-btn svg {
    width: 20px;
    height: 20px;
}

.kleeja-profile-content {
    padding: 2rem;
}

.kleeja-profile-tab-content {
    display: none;
}

.kleeja-profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kleeja-form-group {
    margin-bottom: 1.5rem;
}

.kleeja-form-group:last-child {
    margin-bottom: 0;
}

.kleeja-form-label {
    display: block;
    font-weight: 600;
    color: #007bff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e3f2fd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #495057;
}

.kleeja-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kleeja-form-control:disabled {
    background: #f8f9ff;
    color: #6c757d;
    cursor: not-allowed;
}

.kleeja-form-help {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.3rem;
    font-weight: 500;
}

.kleeja-profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.kleeja-profile-fallback {
    padding: 2rem;
    text-align: center;
}

/* Alert styles */
.kleeja-alert {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kleeja-alert-header {
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.kleeja-alert-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.kleeja-alert-list {
    padding: 0 1.2rem 1rem 1.2rem;
    margin: 0;
    list-style: none;
}

.kleeja-alert-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
}

.kleeja-alert-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    font-weight: bold;
}

.kleeja-alert-danger {
    background: #fff5f5;
    border-left: 4px solid #dc3545;
}

.kleeja-alert-danger .kleeja-alert-header {
    color: #dc3545;
    background: #ffe5e5;
}

.kleeja-alert-danger .kleeja-alert-list {
    color: #c82333;
}

/* Responsive profile */
@media (max-width: 767px) {
    .kleeja-profile-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-profile-title {
        font-size: 1.4rem;
    }
    
    .kleeja-profile-description {
        font-size: 0.9rem;
    }
    
    .kleeja-profile-tabs {
        flex-wrap: wrap;
    }
    
    .kleeja-profile-tab-btn {
        padding: 1rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .kleeja-profile-tab-btn svg {
        display: none;
    }
    
    .kleeja-profile-content {
        padding: 1.5rem;
    }
    
    .kleeja-form-group {
        margin-bottom: 1.2rem;
    }
    
    .kleeja-form-control {
        padding: 0.65rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .kleeja-profile-title {
        font-size: 1.2rem;
    }
    
    .kleeja-profile-description {
        font-size: 0.8rem;
    }
    
    .kleeja-profile-card {
        border-radius: 8px;
    }
    
    .kleeja-profile-tabs {
        border-bottom: 1px solid #f0f4f8;
    }
    
    .kleeja-profile-tab-btn {
        padding: 0.8rem 0.6rem;
        font-size: 0.75rem;
        flex: 0 1 auto;
    }
    
    .kleeja-profile-content {
        padding: 1rem;
    }
    
    .kleeja-form-group {
        margin-bottom: 1rem;
    }
    
    .kleeja-form-label {
        font-size: 0.85rem;
    }
    
    .kleeja-form-control {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
    }
    
    .kleeja-profile-actions {
        flex-direction: column;
    }
}

/* ====== FILEUSER PAGE STYLES ====== */

.kleeja-fileuser-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
}

.kleeja-fileuser-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0 0 0.5rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-fileuser-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-user-name {
    color: #007bff;
    font-weight: 600;
}

.kleeja-file-count {
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;
}

.kleeja-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9ff;
    border-radius: 12px;
    border: 2px dashed #e3f2fd;
}

.kleeja-empty-state svg {
    opacity: 0.3;
    margin-bottom: 1rem;
}

.kleeja-empty-state-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-fileuser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Unified File Card Layout for all file types */
.kleeja-fileuser-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.18);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 3px solid transparent;
    position: relative;
}

.kleeja-fileuser-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 123, 255, 0.28);
}

/* Checked state - green border and enhanced shadow */
.kleeja-fileuser-card input[type="checkbox"]:checked {
    accent-color: #28a745;
}

.kleeja-fileuser-card:has(input[type="checkbox"]:checked) {
    border-color: #28a745;
    box-shadow: 0 6px 22px rgba(40, 167, 69, 0.32);
}

.kleeja-fileuser-card:has(input[type="checkbox"]:checked):hover {
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.42);
}

.kleeja-file-card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.kleeja-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.kleeja-file-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kleeja-fileuser-card:hover .kleeja-file-preview {
    transform: scale(1.05);
}

/* File Icon Placeholder for non-image files */
.kleeja-file-icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

.kleeja-file-icon-placeholder svg {
    opacity: 0.6;
    transition: all 0.3s ease;
}

.kleeja-fileuser-card:hover .kleeja-file-icon-placeholder svg {
    opacity: 0.9;
    transform: scale(1.1);
}

/* Checkbox Badge on card */
.kleeja-file-checkbox-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.kleeja-file-checkbox-badge input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    transition: accent-color 0.3s ease;
}

.kleeja-fileuser-card:has(input[type="checkbox"]:checked) .kleeja-file-checkbox-badge input {
    accent-color: #28a745;
}

/* File Card Content */
.kleeja-file-card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.kleeja-file-card-title {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    word-break: break-word;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.kleeja-file-card-title:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* File Stats Container */
.kleeja-file-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.kleeja-file-stat-item {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.kleeja-file-stat-item strong {
    color: #007bff;
    font-weight: 600;
}

.kleeja-file-stat-item svg {
    color: #007bff;
    flex-shrink: 0;
}

.kleeja-fileuser-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(13 19 22 / 50%);
    overflow: hidden;
    transition: all 0.3s ease;
}

.kleeja-fileuser-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgb(13 19 22 / 55%);
}

.kleeja-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: #f8f9ff;
}

.kleeja-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.kleeja-file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.kleeja-fileuser-image:hover .kleeja-file-thumbnail {
    transform: scale(1.05);
}

.kleeja-file-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kleeja-file-checkbox input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.kleeja-fileuser-file {
    display: flex;
    flex-direction: column;
}

.kleeja-file-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    flex: 1;
    position: relative;
}

.kleeja-file-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #f8f9ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kleeja-file-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.kleeja-file-info {
    flex: 1;
    min-width: 0;
}

.kleeja-file-name {
    display: block;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    word-break: break-word;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-file-name:hover {
    color: #0056b3;
}

.kleeja-file-meta {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.kleeja-file-stat {
    font-size: 0.75rem;
    color: #6c757d;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-file-stat strong {
    color: #007bff;
}

.kleeja-file-checkbox-inline {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.kleeja-file-checkbox-inline input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.kleeja-fileuser-actions {
    padding: 2rem;
    background: #f8f9ff;
    border-radius: 10px;
    border: 1px solid #e3f2fd;
}

.kleeja-action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.kleeja-action-btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-btn-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.kleeja-btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.kleeja-btn-delete-all {
    background: linear-gradient(135deg, #fd7e14 0%, #e55100 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(253, 126, 20, 0.2);
}

.kleeja-btn-delete-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.3);
}

.kleeja-check-link {
    display: flow-root;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-check-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-copy-link-section {
    padding: 2rem;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.08);
}

.kleeja-copy-link-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #007bff;
    margin: 0 0 1rem 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-copy-link-box {
    display: flex;
    gap: 0.8rem;
}

.kleeja-copy-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e3f2fd;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: 'Tajawal', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
}

.kleeja-copy-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kleeja-copy-btn {
    padding: 0.75rem 1.2rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Responsive fileuser */
@media (max-width: 991px) {
    .kleeja-fileuser-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.2rem;
    }
}

@media (max-width: 767px) {
    .kleeja-fileuser-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }
    
    .kleeja-fileuser-title {
        font-size: 1.4rem;
    }
    
    .kleeja-fileuser-description {
        font-size: 0.9rem;
    }
    
    .kleeja-fileuser-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .kleeja-fileuser-actions {
        padding: 1.5rem;
    }
    
    .kleeja-action-buttons {
        flex-direction: column;
    }
    
    .kleeja-action-btn {
        width: 100%;
    }
    
    .kleeja-copy-link-box {
        flex-direction: column;
    }
    
    .kleeja-copy-btn {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .kleeja-fileuser-title {
        font-size: 1.2rem;
    }
    
    .kleeja-fileuser-description {
        font-size: 0.8rem;
    }
    
    .kleeja-fileuser-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .kleeja-image-wrapper {
        height: 150px;
    }
    
    .kleeja-file-content {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .kleeja-file-icon {
        width: 40px;
        height: 40px;
    }
    
    .kleeja-file-name {
        font-size: 0.85rem;
    }
    
    .kleeja-file-stat {
        font-size: 0.7rem;
    }
    
    .kleeja-fileuser-actions {
        padding: 1rem;
    }
    
    .kleeja-copy-link-section {
        padding: 1rem;
    }
    
    .kleeja-copy-link-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
}

/* debug kleeja */
.debug_kleeja{width:80%;margin:20px 0;background-color:white;border:1px #666 solid;}
.debug_kleeja fieldset{margin:0 auto;width:80%;}


.g-recaptcha div{
    margin: 4px auto;
    width: 100% !important;
}

/* ============================================ */
/* Register Page Styles */
/* ============================================ */

.kleeja-register-header {
    text-align: center;
    padding-bottom: 2rem;
}

.kleeja-register-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.kleeja-register-description {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.kleeja-register-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: calc(100% - 2rem);
}

.kleeja-form-group {
    margin-bottom: 1.5rem;
}

.kleeja-form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    word-break: break-word;
}

.kleeja-form-label svg {
    color: #007bff;
    flex-shrink: 0;
    min-width: 18px;
    height: 18px;
}

.kleeja-form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    box-sizing: border-box;
}

.kleeja-form-input:focus {
    outline: none;
    border-color: #007bff;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kleeja-form-input::placeholder {
    color: #999;
}

.kleeja-form-help {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.4;
}

.kleeja-captcha-group {
    margin-bottom: 2rem;
}

.kleeja-captcha-box {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.kleeja-captcha-image {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
    width: auto;
    max-width: 150px;
    flex-shrink: 0;
    background: #f8f9fa;
    object-fit: contain;
}

.kleeja-captcha-image:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

.kleeja-captcha-input {
    flex: 1;
    min-width: 200px;
}

.kleeja-alert {
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.kleeja-alert-danger {
    background: #fff5f5;
    border-left-color: #dc3545;
}

.kleeja-alert-icon {
    color: #dc3545;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kleeja-alert-icon svg {
    width: 100%;
    height: 100%;
}

.kleeja-alert-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #333;
    font-size: 0.95rem;
    flex: 1;
    min-width: 200px;
}

.kleeja-alert-list li {
    padding: 0.25rem 0;
    word-break: break-word;
}

.kleeja-register-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.kleeja-register-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    min-height: 44px;
}

.kleeja-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-register-btn:active {
    transform: translateY(0);
}

.kleeja-register-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive Breakpoint: Large Tablets (max 991px) */
@media (max-width: 991px) {
    .kleeja-register-card {
        max-width: 100%;
        width: calc(100% - 2rem);
    }

    .kleeja-register-header {
        padding-bottom: 1.5rem;
    }
}

/* Responsive Breakpoint: Tablets (max 767px) */
@media (max-width: 767px) {
    .kleeja-register-header {
        padding-bottom: 1.5rem;
    }

    .kleeja-register-card {
        padding: 1.5rem;
        max-width: 100%;
        width: calc(100% - 1.5rem);
        margin: 0 auto 1.5rem;
    }

    .kleeja-register-title {
        font-size: 1.5rem;
    }

    .kleeja-register-description {
        font-size: 0.95rem;
    }

    .kleeja-form-group {
        margin-bottom: 1.25rem;
    }

    .kleeja-form-label {
        font-size: 0.9rem;
        gap: 0.65rem;
    }

    .kleeja-form-label svg {
        width: 17px;
        height: 17px;
    }

    .kleeja-form-input {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }

    .kleeja-captcha-group {
        margin-bottom: 1.5rem;
    }

    .kleeja-captcha-box {
        gap: 0.75rem;
    }

    .kleeja-captcha-image {
        height: 38px;
        max-width: 140px;
    }

    .kleeja-captcha-input {
        min-width: auto;
        width: calc(100% - 140px - 0.75rem);
    }

    .kleeja-alert {
        padding: 0.75rem 1.25rem;
        gap: 0.75rem;
    }

    .kleeja-alert-icon {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }

    .kleeja-register-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        min-height: 42px;
    }

    .kleeja-register-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* Responsive Breakpoint: Mobile Landscape (max 640px) */
@media (max-width: 640px) {
    .kleeja-register-header {
        padding-bottom: 1.25rem;
    }

    .kleeja-register-card {
        padding: 1.25rem;
        width: calc(100% - 1.25rem);
    }

    .kleeja-register-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .kleeja-register-description {
        font-size: 0.9rem;
    }

    .kleeja-form-group {
        margin-bottom: 1rem;
    }

    .kleeja-form-label {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .kleeja-form-input {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }

    .kleeja-captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .kleeja-captcha-image {
        width: 100%;
        max-width: 100%;
        height: 38px;
        object-fit: contain;
        object-fit: contain;
    }

    .kleeja-captcha-input {
        width: 100%;
        min-width: auto;
    }

    .kleeja-form-help {
        font-size: 0.8rem;
    }
}

/* Responsive Breakpoint: Mobile Phones (max 575px) */
@media (max-width: 575px) {
    .kleeja-register-header {
        padding-bottom: 1rem;
        padding-top: 0;
    }

    .kleeja-register-card {
        padding: 1rem;
        width: calc(100% - 1rem);
        margin: 0 auto 1.25rem;
        border-radius: 8px;
    }

    .kleeja-register-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .kleeja-register-description {
        font-size: 0.85rem;
    }

    .kleeja-form-group {
        margin-bottom: 0.9rem;
    }

    .kleeja-form-label {
        font-size: 0.85rem;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .kleeja-form-label svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .kleeja-form-input {
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 5px;
    }

    .kleeja-captcha-group {
        margin-bottom: 1.25rem;
    }

    .kleeja-captcha-image {
        height: 36px;
        width: 100%;
        object-fit: contain;
    }

    .kleeja-form-help {
        font-size: 0.8rem;
        margin-top: 0.4rem;
    }

    .kleeja-alert {
        padding: 0.75rem 1rem;
        gap: 0.65rem;
        border-radius: 5px;
        border-left-width: 3px;
    }

    .kleeja-alert-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .kleeja-alert-list {
        font-size: 0.9rem;
        min-width: auto;
    }

    .kleeja-alert-list li {
        padding: 0.2rem 0;
    }

    .kleeja-register-actions {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }

    .kleeja-register-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
        min-height: 40px;
        border-radius: 5px;
        gap: 0.4rem;
    }

    .kleeja-register-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Breakpoint: Small Mobile Phones (max 425px) */
@media (max-width: 425px) {
    .kleeja-register-card {
        padding: 0.9rem;
        width: calc(100% - 0.9rem);
    }

    .kleeja-register-title {
        font-size: 1.15rem;
    }

    .kleeja-form-label {
        font-size: 0.8rem;
    }

    .kleeja-form-input {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    .kleeja-register-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        min-height: 38px;
    }
}

/* ============================================ */
/* Login Page Styles */
/* ============================================ */

.kleeja-login-header {
    text-align: center;
    padding-bottom: 2rem;
}

.kleeja-login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.kleeja-login-description {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.kleeja-login-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 450px;
    margin: 0 auto 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: calc(100% - 2rem);
}

.kleeja-checkbox-group {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.kleeja-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-checkbox-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
    flex-shrink: 0;
}

.kleeja-checkbox-text {
    color: #333;
}

.kleeja-checkbox-hint {
    display: block;
    color: #666;
    font-size: 0.85rem;
    margin-left: 2.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-login-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
    margin-top: 2rem;
}

.kleeja-login-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.kleeja-login-btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-login-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-login-btn-submit:active {
    transform: translateY(0);
}

.kleeja-login-link {
    padding: 0.85rem 1.5rem;
    background: #e9ecef;
    color: #333;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-height: 44px;
}

.kleeja-login-link:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.kleeja-login-link:active {
    transform: translateY(0);
}

.kleeja-login-btn svg,
.kleeja-login-link svg {
    width: 18px;
    height: 18px;
}

/* Divider */
.kleeja-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
}

.kleeja-divider::before,
.kleeja-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.kleeja-divider-text {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Google Sign-In Button */
.kleeja-google-signin-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #ffffff;
    color: #333;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 44px;
    width: 100%;
}

.kleeja-google-signin-btn:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
}

.kleeja-google-signin-btn:active {
    transform: translateY(0);
    text-decoration: none;
}

.kleeja-google-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Responsive Breakpoint: Large Tablets (max 991px) */
@media (max-width: 991px) {
    .kleeja-login-card {
        max-width: 100%;
        width: calc(100% - 2rem);
    }

    .kleeja-login-header {
        padding-bottom: 1.5rem;
    }
}

/* Responsive Breakpoint: Tablets (max 767px) */
@media (max-width: 767px) {
    .kleeja-login-header {
        padding-bottom: 1.5rem;
    }

    .kleeja-login-card {
        padding: 1.5rem;
        max-width: 100%;
        width: calc(100% - 1.5rem);
        margin: 0 auto 1.5rem;
    }

    .kleeja-login-title {
        font-size: 1.5rem;
    }

    .kleeja-login-description {
        font-size: 0.95rem;
    }

    .kleeja-form-group {
        margin-bottom: 1.25rem;
    }

    .kleeja-checkbox-group {
        padding: 0.9rem;
        margin-bottom: 1.25rem;
    }

    .kleeja-checkbox-label {
        font-size: 0.9rem;
        gap: 0.65rem;
    }

    .kleeja-checkbox-hint {
        font-size: 0.8rem;
        margin-left: 2.25rem;
    }

    .kleeja-form-input {
        padding: 0.65rem 0.9rem;
        font-size: 0.9rem;
    }

    .kleeja-login-btn,
    .kleeja-login-link {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        min-height: 42px;
    }

    .kleeja-login-btn svg,
    .kleeja-login-link svg {
        width: 17px;
        height: 17px;
    }
}

/* Responsive Breakpoint: Mobile Landscape (max 640px) */
@media (max-width: 640px) {
    .kleeja-login-header {
        padding-bottom: 1.25rem;
    }

    .kleeja-login-card {
        padding: 1.25rem;
        width: calc(100% - 1.25rem);
    }

    .kleeja-login-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .kleeja-login-description {
        font-size: 0.9rem;
    }

    .kleeja-form-group {
        margin-bottom: 1rem;
    }

    .kleeja-form-label {
        font-size: 0.9rem;
        gap: 0.5rem;
    }

    .kleeja-form-input {
        padding: 0.6rem 0.85rem;
        font-size: 0.9rem;
    }

    .kleeja-checkbox-group {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .kleeja-checkbox-label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .kleeja-checkbox-hint {
        font-size: 0.75rem;
        margin-left: 2rem;
    }

    .kleeja-captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .kleeja-captcha-image {
        width: 100%;
        max-width: 100%;
        height: 38px;
        object-fit: contain;
    }

    .kleeja-form-help {
        font-size: 0.8rem;
    }

    .kleeja-login-actions {
        gap: 0.75rem;
    }

    .kleeja-login-btn,
    .kleeja-login-link {
        font-size: 0.9rem;
        padding: 0.7rem 1.15rem;
        min-height: 40px;
    }
}

/* Responsive Breakpoint: Mobile Phones (max 575px) */
@media (max-width: 575px) {
    .kleeja-login-header {
        padding-bottom: 1rem;
        padding-top: 0;
    }

    .kleeja-login-card {
        padding: 1rem;
        width: calc(100% - 1rem);
        margin: 0 auto 1.25rem;
        border-radius: 8px;
    }

    .kleeja-login-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .kleeja-login-description {
        font-size: 0.85rem;
    }

    .kleeja-form-group {
        margin-bottom: 0.9rem;
    }

    .kleeja-form-label {
        font-size: 0.85rem;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .kleeja-form-label svg {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    .kleeja-form-input {
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 5px;
    }

    .kleeja-checkbox-group {
        padding: 0.75rem;
        margin-bottom: 1rem;
        border-radius: 5px;
    }

    .kleeja-checkbox-label {
        font-size: 0.85rem;
        gap: 0.5rem;
        margin-bottom: 0.3rem;
    }

    .kleeja-checkbox-input {
        width: 16px;
        height: 16px;
    }

    .kleeja-checkbox-hint {
        font-size: 0.8rem;
        margin-left: 2.2rem;
    }

    .kleeja-captcha-group {
        margin-bottom: 1.25rem;
    }

    .kleeja-captcha-image {
        height: 36px;
    }

    .kleeja-alert {
        padding: 0.75rem 1rem;
        gap: 0.65rem;
        border-radius: 5px;
        border-left-width: 3px;
    }

    .kleeja-alert-icon {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }

    .kleeja-alert-list {
        font-size: 0.9rem;
        min-width: auto;
    }

    .kleeja-alert-list li {
        padding: 0.2rem 0;
    }

    .kleeja-login-actions {
        gap: 0.65rem;
        margin-top: 1.5rem;
    }

    .kleeja-login-btn,
    .kleeja-login-link {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
        min-height: 40px;
        border-radius: 5px;
        gap: 0.4rem;
    }

    .kleeja-login-btn svg,
    .kleeja-login-link svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive Breakpoint: Small Mobile Phones (max 425px) */
@media (max-width: 425px) {
    .kleeja-login-card {
        padding: 0.9rem;
        width: calc(100% - 0.9rem);
    }

    .kleeja-login-title {
        font-size: 1.15rem;
    }

    .kleeja-form-label {
        font-size: 0.8rem;
    }

    .kleeja-form-input {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }

    .kleeja-checkbox-group {
        padding: 0.7rem;
    }

    .kleeja-checkbox-label {
        font-size: 0.8rem;
    }

    .kleeja-login-btn,
    .kleeja-login-link {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        min-height: 38px;
    }
}

/* ============================================ */
/* Get Password Page Styles */
/* ============================================ */

.kleeja-getpass-header {
    text-align: center;
    padding-bottom: 2rem;
}

.kleeja-getpass-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.3;
}

.kleeja-getpass-description {
    color: #666;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.kleeja-getpass-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    max-width: 450px;
    margin: 0 auto 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    width: calc(100% - 2rem);
}

.kleeja-getpass-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.kleeja-getpass-btn {
    flex: 1;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    min-height: 44px;
}

.kleeja-getpass-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.kleeja-getpass-btn:active {
    transform: translateY(0);
}

.kleeja-getpass-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive Breakpoint: Large Tablets (max 991px) */
@media (max-width: 991px) {
    .kleeja-getpass-card {
        max-width: 100%;
        width: calc(100% - 2rem);
    }

    .kleeja-getpass-header {
        padding-bottom: 1.5rem;
    }
}

/* Responsive Breakpoint: Tablets (max 767px) */
@media (max-width: 767px) {
    .kleeja-getpass-header {
        padding-bottom: 1.5rem;
    }

    .kleeja-getpass-card {
        padding: 1.5rem;
        max-width: 100%;
        width: calc(100% - 1.5rem);
        margin: 0 auto 1.5rem;
    }

    .kleeja-getpass-title {
        font-size: 1.5rem;
    }

    .kleeja-getpass-description {
        font-size: 0.95rem;
    }

    .kleeja-getpass-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        min-height: 42px;
    }

    .kleeja-getpass-btn svg {
        width: 17px;
        height: 17px;
    }
}

/* Responsive Breakpoint: Mobile Landscape (max 640px) */
@media (max-width: 640px) {
    .kleeja-getpass-header {
        padding-bottom: 1.25rem;
    }

    .kleeja-getpass-card {
        padding: 1.25rem;
        width: calc(100% - 1.25rem);
    }

    .kleeja-getpass-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .kleeja-getpass-description {
        font-size: 0.9rem;
    }

    .kleeja-captcha-box {
        flex-direction: column;
        align-items: stretch;
    }

    .kleeja-captcha-image {
        width: 100%;
        max-width: 100%;
        height: 38px;
        object-fit: contain;
    }

    .kleeja-getpass-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.15rem;
        min-height: 40px;
    }
}

/* Responsive Breakpoint: Mobile Phones (max 575px) */
@media (max-width: 575px) {
    .kleeja-getpass-header {
        padding-bottom: 1rem;
        padding-top: 0;
    }

    .kleeja-getpass-card {
        padding: 1rem;
        width: calc(100% - 1rem);
        margin: 0 auto 1.25rem;
        border-radius: 8px;
    }

    .kleeja-getpass-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .kleeja-getpass-description {
        font-size: 0.85rem;
    }

    .kleeja-captcha-group {
        margin-bottom: 1.25rem;
    }

    .kleeja-captcha-image {
        height: 36px;
    }

    .kleeja-getpass-actions {
        gap: 0.65rem;
        margin-top: 1.5rem;
    }

    .kleeja-getpass-btn {
        font-size: 0.9rem;
        padding: 0.65rem 1rem;
        min-height: 40px;
        border-radius: 5px;
        gap: 0.4rem;
    }

    .kleeja-getpass-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ====== MESSAGE CONTAINERS ====== */
.kleeja-message-container {
    display: flex;
    align-items: stretch;
    gap: 15px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    animation: slideDown 0.3s ease-out;
    flex-wrap: wrap;
}

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

/* Success Message */
.kleeja-message-success {
    background: linear-gradient(135deg, #84e6c5 0%, #56d0a8 100%);
    border-left: 5px solid #1b8a6f;
    box-shadow: 0 2px 8px rgba(84, 208, 168, 0.15);
}

.kleeja-message-success .kleeja-message-icon {
    color: #0f5c47;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 24px;
}

.kleeja-message-success .kleeja-message-text {
    color: #0d4f3d;
    font-weight: 500;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
}

/* Error Message */
.kleeja-message-error {
    background: linear-gradient(135deg, #ff9999 0%, #ff6b6b 100%);
    border-left: 5px solid #c92a2a;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.15);
}

.kleeja-message-error .kleeja-message-icon {
    color: #7a0f1f;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 24px;
}

.kleeja-message-error .kleeja-message-text {
    color: #7a0f1f;
    font-weight: 500;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.6;
}

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

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

.kleeja-message-content {
    flex: 1;
    min-width: 200px;
}

.kleeja-message-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 4px 0;
    opacity: 0.8;
}

.kleeja-message-text {
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Copy Button */
.kleeja-message-copy-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255, 255, 255, 0.3);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 2px;
}

.kleeja-message-copy-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.kleeja-message-copy-btn:active {
    transform: scale(0.95);
}

.kleeja-message-copy-btn.copied {
    background: rgba(255, 255, 255, 0.6);
    animation: copyFlash 0.4s ease;
}

@keyframes copyFlash {
    0% { background: rgba(255, 255, 255, 0.4); }
    50% { background: rgba(255, 255, 255, 0.7); }
    100% { background: rgba(255, 255, 255, 0.4); }
}

.kleeja-message-copy-btn svg {
    width: 18px;
    height: 18px;
}

/* Message Lines with individual copy buttons */
.kleeja-message-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    gap: 15px;
}

.kleeja-message-line:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.kleeja-message-line:first-child {
    padding-top: 0;
}

.kleeja-message-line > *:first-child {
    min-width: 120px;
}

.kleeja-message-field-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
    flex-shrink: 0;
}

.kleeja-message-field-text {
    flex: 1;
    font-size: 13px;
    word-break: break-all;
    padding: 4px 0;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.02);
    padding: 6px 8px;
    border-radius: 3px;
}

.kleeja-message-field-copy {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 32px;
}

.kleeja-message-field-copy:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.08);
}

.kleeja-message-field-copy:active {
    transform: scale(0.94);
}

.kleeja-message-field-copy.copied {
    background: rgba(255, 255, 255, 0.4);
    animation: copyFlashField 0.4s ease;
}

@keyframes copyFlashField {
    0% { background: rgba(255, 255, 255, 0.25); }
    50% { background: rgba(255, 255, 255, 0.5); }
    100% { background: rgba(255, 255, 255, 0.25); }
}

.kleeja-message-field-copy svg {
    width: 16px;
    height: 16px;
}

/* Responsive Message Line */
@media (max-width: 991px) {
    .kleeja-message-line {
        padding: 10px 0;
        gap: 12px;
    }

    .kleeja-message-field-label {
        min-width: 100px;
        font-size: 11px;
    }

    .kleeja-message-field-text {
        font-size: 12px;
    }

    .kleeja-message-field-copy {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 767px) {
    .kleeja-message-line {
        flex-wrap: wrap;
        padding: 10px 0;
        gap: 8px;
    }

    .kleeja-message-line > *:first-child {
        width: 100%;
        min-width: 100%;
    }

    .kleeja-message-field-label {
        min-width: auto;
        width: 100%;
        margin-bottom: 4px;
    }

    .kleeja-message-field-text {
        flex: 1 1 calc(100% - 40px);
        font-size: 12px;
    }

    .kleeja-message-field-copy {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }
}

@media (max-width: 575px) {
    .kleeja-message-line {
        padding: 8px 0;
        gap: 6px;
    }

    .kleeja-message-field-label {
        font-size: 10px;
    }

    .kleeja-message-field-text {
        font-size: 11px;
    }

    .kleeja-message-field-copy {
        width: 28px;
        height: 28px;
    }

    .kleeja-message-field-copy svg {
        width: 14px;
        height: 14px;
    }
}

/* Responsive Message Container */
@media (max-width: 991px) {
    .kleeja-message-container {
        padding: 14px 18px;
        gap: 12px;
    }

    .kleeja-message-copy-btn {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 767px) {
    .kleeja-message-container {
        padding: 12px 15px;
        gap: 12px;
        margin-bottom: 15px;
        flex-direction: row;
    }

    .kleeja-message-text {
        font-size: 13px;
    }

    .kleeja-message-copy-btn {
        width: 36px;
        height: 36px;
    }

    .kleeja-message-copy-btn svg {
        width: 16px;
        height: 16px;
    }

    .kleeja-message-content {
        min-width: auto;
    }

    .kleeja-message-line {
        padding: 6px 0;
    }

    .kleeja-message-field-text {
        font-size: 12px;
    }

    .kleeja-message-field-copy {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .kleeja-message-field-copy svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 575px) {
    .kleeja-message-container {
        padding: 11px 12px;
        gap: 10px;
        align-items: stretch;
    }

    .kleeja-message-icon {
        width: 20px;
        height: 20px;
        margin-top: 0;
    }

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

    .kleeja-message-text {
        font-size: 12px;
    }

    .kleeja-message-copy-btn {
        width: 34px;
        height: 34px;
    }

    .kleeja-message-copy-btn svg {
        width: 15px;
        height: 15px;
    }

    .kleeja-message-line {
        padding: 5px 0;
    }

    .kleeja-message-field-text {
        font-size: 11px;
    }

    .kleeja-message-field-copy {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .kleeja-message-field-copy svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 425px) {
    .kleeja-message-container {
        padding: 10px 12px;
        gap: 10px;
    }

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

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

    .kleeja-message-text {
        font-size: 12px;
    }

    .kleeja-message-copy-btn {
        width: 30px;
        height: 30px;
    }

    .kleeja-message-copy-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* ====== LOADING CONTAINER ====== */
.kleeja-loading-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.kleeja-loading-container.show {
    display: flex;
    animation: fadeInLoading 0.3s ease;
}

@keyframes fadeInLoading {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.kleeja-loading-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: 300px;
    text-align: center;
    animation: slideUpLoading 0.4s ease;
}

@keyframes slideUpLoading {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.kleeja-loading-spinner {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kleeja-spinner-svg {
    width: 100%;
    height: 100%;
    color: #007bff;
    transform: scaleX(-1);
}

.kleeja-spinner-active {
    animation: spinLoading 1.5s linear infinite;
    stroke: #007bff;
}

@keyframes spinLoading {
    0% {
        transform: rotate(0deg);
        stroke-dasharray: 31.4 94.2;
    }
    50% {
        transform: rotate(180deg);
        stroke-dasharray: 78.5 94.2;
    }
    100% {
        transform: rotate(360deg);
        stroke-dasharray: 31.4 94.2;
    }
}

.kleeja-loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    margin: 0;
    letter-spacing: 0.3px;
}

.kleeja-loading-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 24px;
}

.kleeja-loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #007bff;
    animation: bounceLoading 1.4s infinite ease-in-out both;
}

.kleeja-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.kleeja-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.kleeja-loading-dots span:nth-child(3) {
    animation-delay: 0;
}

@keyframes bounceLoading {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Loading */
@media (max-width: 640px) {
    .kleeja-loading-box {
        min-width: 280px;
        padding: 30px;
        gap: 16px;
    }

    .kleeja-spinner-svg {
        width: 50px;
        height: 50px;
    }

    .kleeja-loading-text {
        font-size: 14px;
    }
}

@media (max-width: 425px) {
    .kleeja-loading-box {
        min-width: 250px;
        padding: 25px;
        gap: 14px;
    }

    .kleeja-spinner-svg {
        width: 45px;
        height: 45px;
    }

    .kleeja-loading-text {
        font-size: 13px;
    }

    .kleeja-loading-dots span {
        width: 6px;
        height: 6px;
    }
}

/* ====== ONLINE USERS CONTAINER ====== */
.kleeja-online-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.kleeja-online-container:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.kleeja-online-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: 600;
}

.kleeja-online-header svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.kleeja-online-title {
    font-size: 14px;
    flex: 1;
}

.kleeja-online-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.kleeja-online-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    background: white;
}

.kleeja-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    color: #0056b3;
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.kleeja-user-badge:hover {
    
    transform: translateY(-1px);
}

.kleeja-user-badge svg {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Responsive Online Container */
@media (max-width: 767px) {
    .kleeja-online-container {
        margin-bottom: 15px;
    }

    .kleeja-online-header {
        padding: 12px 15px;
        gap: 10px;
    }

    .kleeja-online-title {
        font-size: 13px;
    }

    .kleeja-online-count {
        padding: 3px 10px;
        font-size: 12px;
    }

    .kleeja-online-list {
        padding: 12px 15px;
        gap: 8px;
    }

    .kleeja-user-badge {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 425px) {
    .kleeja-online-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .kleeja-online-header svg {
        width: 18px;
        height: 18px;
    }

    .kleeja-online-title {
        font-size: 12px;
    }

    .kleeja-online-count {
        padding: 2px 8px;
        font-size: 11px;
        min-width: 28px;
    }

    .kleeja-online-list {
        padding: 10px 12px;
        gap: 6px;
    }

    .kleeja-user-badge {
        padding: 4px 8px;
        font-size: 11px;
    }

    .kleeja-user-badge svg {
        width: 10px;
        height: 10px;
    }
}

/* Responsive Breakpoint: Small Mobile Phones (max 425px) */
@media (max-width: 425px) {
    .kleeja-getpass-card {
        padding: 0.9rem;
        width: calc(100% - 0.9rem);
    }

    .kleeja-getpass-title {
        font-size: 1.15rem;
    }

    .kleeja-getpass-btn {
        font-size: 0.85rem;
        padding: 0.6rem 0.9rem;
        min-height: 38px;
    }
}

/* ====== FILEUSER CLICKABLE CARD STYLES ====== */
.kleeja-fileuser-item.kleeja-fileuser-file {
    cursor: pointer;
    transition: all 0.2s ease;
}

.kleeja-fileuser-item.kleeja-fileuser-file:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

.kleeja-file-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
}

/* Checkbox styling for selected state */
.kleeja-fileuser-item.kleeja-fileuser-file input[type="checkbox"]:checked {
    opacity: 1;
}

.kleeja-fileuser-item.kleeja-fileuser-file input[type="checkbox"]:checked + .kleeja-file-content,
.kleeja-fileuser-item.kleeja-fileuser-file input[type="checkbox"] + .kleeja-file-content {
    /* File content base styles */
}

/* Highlight when checkbox is checked */
.kleeja-fileuser-item.kleeja-fileuser-file:has(input[type="checkbox"]:checked) {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f7ff 100%);
    border-color: #007bff;
    border-left: 4px solid #007bff;
}

.kleeja-fileuser-item.kleeja-fileuser-file:has(input[type="checkbox"]:checked) .kleeja-file-icon {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.kleeja-fileuser-item.kleeja-fileuser-file:has(input[type="checkbox"]:checked) .kleeja-file-icon img {
    opacity: 0.8;
}

.kleeja-file-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f0f4f8;
}

.kleeja-file-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.kleeja-file-info {
    flex: 1;
    min-width: 0;
}

.kleeja-file-name {
    display: block;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 6px;
    word-break: break-word;
    transition: color 0.2s;
}

.kleeja-file-name:hover {
    color: #007bff;
}

.kleeja-file-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.kleeja-file-stat {
    font-size: 12px;
    color: #666;
}

.kleeja-file-stat strong {
    color: #333;
}

.kleeja-file-checkbox-inline {
    flex-shrink: 0;
}

.kleeja-file-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ====== DOWNLOAD PAGE STYLES ====== */
.kleeja-download-header {
    padding: 0;
    margin-bottom: 2rem;
}

.kleeja-download-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.5rem 0;
}

.kleeja-download-description {
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

.kleeja-download-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    border: 1px solid rgba(0, 123, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.kleeja-download-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px 12px 0 0;
}

.kleeja-download-info-card:hover {
    box-shadow: 0 12px 48px rgba(0, 123, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.kleeja-download-action-card {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.kleeja-download-action-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.kleeja-download-action-card:hover {
    box-shadow: 0 12px 48px rgba(0, 123, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-6px);
}

.kleeja-download-action-content {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.kleeja-download-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.kleeja-download-card-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #007bff 0%, #0056b3 100%);
    border-radius: 2px;
}

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

.kleeja-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.75rem;
    border-bottom: 1px solid #e8ecf1;
    gap: 1rem;
    transition: all 0.3s ease;
}

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

.kleeja-download-item:hover {
    background-color: rgba(0, 123, 255, 0.04);
    padding-left: 1rem;
    border-radius: 6px;
}

.kleeja-download-label {
    font-weight: 700;
    color: #007bff;
    font-size: 0.95rem;
    flex-shrink: 0;
    min-width: 140px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.kleeja-download-value {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: right;
}

.kleeja-download-value a {
    color: #007bff;
    text-decoration: none;
}

.kleeja-download-value a:hover {
    text-decoration: underline;
}

/* Responsive download layout */
@keyframes kleeja-spinner-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.kleeja-download-spinner {
    width: 120px;
    height: 120px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top: 6px solid #ffffff;
    border-right: 6px solid #ffffff;
    border-radius: 50%;
    animation: kleeja-spinner-rotate 1.2s linear infinite;
    margin: 0 auto;
}

.kleeja-download-spinner-done {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.kleeja-download-spinner-done::after {
    content: '✓';
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
}

.kleeja-download-wait {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive download layout */
@media (max-width: 991px) {
    .kleeja-download-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 767px) {
    .kleeja-download-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .kleeja-download-title {
        font-size: 1.4rem;
    }

    .kleeja-download-description {
        font-size: 0.9rem;
    }

    .kleeja-download-label {
        min-width: 100px;
        font-size: 0.9rem;
    }

    .kleeja-download-value {
        font-size: 0.9rem;
        text-align: left;
    }

    .kleeja-download-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* ====== REPORT PAGE STYLES ====== */

/* Report wrapper - centered and narrower */
.kleeja-report-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Page header */
.kleeja-report-header {
    padding: 1.5rem 0;
    border-bottom: 3px solid #007bff;
    margin-bottom: 2rem;
    text-align: center;
}

.kleeja-report-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #007bff;
    margin: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-page-description {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Report card */
.kleeja-report-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.kleeja-report-card:hover {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
}

/* Report form */
.kleeja-form {
    display: flex;
    flex-direction: column;
}

/* Form group styling */
.kleeja-form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.kleeja-form-group:last-child {
    margin-bottom: 0;
}

/* Form labels with icons */
.kleeja-form-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

.kleeja-form-label svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #007bff;
    transition: all 0.3s ease;
}

.kleeja-form-group:focus-within .kleeja-form-label svg {
    color: #0056b3;
    transform: scale(1.1);
}

/* Form inputs */
.kleeja-form-input,
.kleeja-form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e3f2fd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Tajawal', sans-serif;
    background: #ffffff;
    color: #333333;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.kleeja-form-input:focus,
.kleeja-form-textarea:focus {
    outline: none;
    border-color: #007bff;
    background: #f9faff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.kleeja-form-input:disabled {
    background: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
    border-color: #d1d1d1;
}

.kleeja-form-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Captcha group */
.kleeja-captcha-group {
    background: linear-gradient(135deg, #f9faff 0%, #f3f7ff 100%);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #e3f2fd;
}

.kleeja-captcha-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kleeja-captcha-image {
    border-radius: 6px;
    border: 2px solid #e3f2fd;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    padding: 4px;
    max-width: 250px;
    height: auto;
}

.kleeja-captcha-image:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
    transform: scale(1.02);
}

.kleeja-captcha-input {
    max-width: 250px;
    flex: 1;
    min-width: 150px;
}

.kleeja-form-help {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.3rem;
    font-weight: 500;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Alert styling */
.kleeja-alert {
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.kleeja-alert-danger {
    background: linear-gradient(135deg, #ffe5e5 0%, #fff0f0 100%);
    border: 2px solid #ff6b6b;
    color: #c92a2a;
}

.kleeja-alert-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #c92a2a;
}

.kleeja-alert-icon svg {
    width: 100%;
    height: 100%;
}

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

.kleeja-alert-list li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.kleeja-alert-list li:last-child {
    margin-bottom: 0;
}

/* Form actions */
.kleeja-form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Report button */
.kleeja-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-decoration: none;
    justify-content: center;
    white-space: nowrap;
}

.kleeja-report-btn-submit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.kleeja-report-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.kleeja-report-btn-submit:active {
    transform: translateY(0);
}

.kleeja-report-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Responsive report design */
@media (max-width: 991px) {
    .kleeja-report-title {
        font-size: 1.5rem;
    }

    .kleeja-report-wrapper {
        max-width: 100%;
    }

    .kleeja-report-card {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    .kleeja-page-header {
        padding: 1rem 0;
        margin-bottom: 1.5rem;
    }

    .kleeja-page-title {
        font-size: 1.3rem;
    }

    .kleeja-page-description {
        font-size: 0.9rem;
    }

    .kleeja-report-card {
        padding: 1.5rem;
        border-radius: 8px;
    }

    .kleeja-form-group {
        margin-bottom: 1.2rem;
    }

    .kleeja-form-label {
        font-size: 0.9rem;
    }

    .kleeja-form-input,
    .kleeja-form-textarea {
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
    }

    .kleeja-form-textarea {
        min-height: 100px;
    }

    .kleeja-captcha-group {
        padding: 1rem;
    }

    .kleeja-captcha-box {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }

    .kleeja-captcha-image {
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    .kleeja-captcha-input {
        max-width: 100%;
        width: 100%;
    }

    .kleeja-report-btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .kleeja-page-header {
        padding: 0.8rem 0;
        margin-bottom: 1.2rem;
    }

    .kleeja-page-title {
        font-size: 1.1rem;
    }

    .kleeja-page-description {
        font-size: 0.85rem;
    }

    .kleeja-report-card {
        padding: 1.2rem;
        border-radius: 6px;
    }

    .kleeja-form-group {
        margin-bottom: 1rem;
    }

    .kleeja-form-label {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .kleeja-form-label svg {
        width: 16px;
        height: 16px;
    }

    .kleeja-form-input,
    .kleeja-form-textarea {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
    }

    .kleeja-form-textarea {
        min-height: 90px;
    }

    .kleeja-captcha-group {
        padding: 0.9rem;
        margin-bottom: 1rem;
    }

    .kleeja-captcha-box {
        flex-direction: column;
        gap: 0.6rem;
    }

    .kleeja-captcha-image {
        border-radius: 4px;
        padding: 3px;
    }

    .kleeja-form-help {
        font-size: 0.8rem;
    }

    .kleeja-alert {
        padding: 0.9rem;
        gap: 0.8rem;
    }

    .kleeja-alert-icon {
        width: 20px;
        height: 20px;
    }

    .kleeja-alert-list li {
        font-size: 0.9rem;
    }

    .kleeja-report-btn {
        width: 100%;
        padding: 0.75rem 1.2rem;
        font-size: 0.85rem;
    }

    .kleeja-report-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* RTL Support for Report Form */
[dir="rtl"] .kleeja-report-header {
    text-align: center;
}

[dir="rtl"] .kleeja-form-label {
    flex-direction: row;
    text-align: right;
}

[dir="rtl"] .kleeja-page-title {
    text-align: center;
}

[dir="rtl"] .kleeja-alert-list li {
    text-align: right;
}

[dir="rtl"] .kleeja-captcha-box {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-report-btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-form-input[style*="direction:ltr"],
[dir="rtl"] .kleeja-form-textarea[style*="direction:ltr"] {
    direction: ltr !important;
}

/* Comments Section Styling */
.kleeja-comments-section {
    margin: 2rem 0;
}

.kleeja-comments-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.kleeja-comments-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #0066cc;
}

.kleeja-comments-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066cc;
}

.kleeja-comment-form {
    width: 100%;
}

.kleeja-comment-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
    border: 1px solid #e3f2fd;
}

.kleeja-comment-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.kleeja-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #0066cc;
}

.kleeja-comment-username {
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}

.kleeja-comment-input-group {
    margin-bottom: 1rem;
}

.kleeja-comment-input-group .kleeja-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.kleeja-comment-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.kleeja-comment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, #0066cc, #0052a3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kleeja-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    background: linear-gradient(135deg, #0052a3, #003d7a);
}

.kleeja-comment-btn:active {
    transform: translateY(0);
}

.kleeja-comment-guest-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.kleeja-comment-guest-notice p {
    margin: 0;
    color: #856404;
    font-size: 0.95rem;
}

.kleeja-comments-list {
    margin-top: 2rem;
}

.kleeja-comment-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.kleeja-comment-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #0066cc;
}

.kleeja-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.kleeja-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.kleeja-comment-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kleeja-comment-author {
    font-weight: 600;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.kleeja-comment-author:hover {
    color: #0052a3;
    text-decoration: underline;
}

.kleeja-comment-time {
    font-size: 0.8rem;
    color: #999;
}

.kleeja-comment-delete {
    margin: 0;
}

.kleeja-comment-delete-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.kleeja-comment-delete-btn:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.kleeja-comment-body {
    color: #555;
    line-height: 1.6;
    word-wrap: break-word;
    white-space: pre-wrap;
    font-size: 0.95rem;
}

/* Icon styling */
.kleeja-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
}

/* Responsive Comments */
@media (max-width: 767px) {
    .kleeja-comments-wrapper {
        padding: 1rem;
    }
    
    .kleeja-comment-card {
        padding: 1rem;
    }
    
    .kleeja-comment-header {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .kleeja-comment-actions {
        justify-content: center;
        width: 100%;
    }
    
    .kleeja-comment-btn {
        width: 100%;
        justify-content: center;
    }
}

/* RTL Support for Comments */
[dir="rtl"] .kleeja-comments-header {
    border-bottom-color: #0066cc;
}

[dir="rtl"] .kleeja-comment-user-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-comment-actions {
    justify-content: flex-start;
}

[dir="rtl"] .kleeja-comment-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-comment-delete-btn {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .kleeja-comment-meta {
    flex-direction: row-reverse;
}

/* ====== ANNOUNCEMENT POPUP STYLES ====== */
.kleeja-announcement-popup {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100% - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.kleeja-announcement-popup.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.kleeja-announcement-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.kleeja-announcement-close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.kleeja-announcement-close:hover {
    color: #007bff;
    transform: rotate(90deg);
}

.kleeja-announcement-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 0;
    color: #007bff;
}

.kleeja-announcement-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #007bff;
}

.kleeja-announcement-body {
    padding: 16px 20px;
    flex-grow: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.kleeja-announcement-body p {
    margin: 0;
}

.kleeja-announcement-footer {
    padding: 12px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid #e9ecef;
}

.kleeja-announcement-action {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.kleeja-announcement-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.kleeja-announcement-action:active {
    transform: translateY(0);
}

.kleeja-announcement-action-secondary {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.kleeja-announcement-action-secondary:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.kleeja-announcement-action-secondary:active {
    transform: translateY(0);
}

/* RTL Support for Announcement */
[dir="rtl"] .kleeja-announcement-popup {
    right: auto;
    left: 20px;
}

[dir="rtl"] .kleeja-announcement-close {
    left: auto;
    right: 12px;
}

[dir="rtl"] .kleeja-announcement-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .kleeja-announcement-footer {
    justify-content: flex-start;
}

/* Tablet responsiveness */
@media (max-width: 768px) {
    .kleeja-announcement-popup {
        width: 300px;
        right: 15px;
        bottom: 15px;
    }
    
    [dir="rtl"] .kleeja-announcement-popup {
        right: auto;
        left: 15px;
    }
}

/* Mobile responsiveness for popup */
@media (max-width: 480px) {
    .kleeja-announcement-popup {
        width: calc(100% - 20px);
        right: 10px;
        left: auto;
        bottom: 10px;
        max-width: none;
    }
    
    [dir="rtl"] .kleeja-announcement-popup {
        right: auto;
        left: 10px;
    }
    
    .kleeja-announcement-header {
        gap: 8px;
    }
    
    .kleeja-announcement-title {
        font-size: 16px;
    }
    
    .kleeja-announcement-body {
        font-size: 13px;
        padding: 12px 16px;
    }
    
    .kleeja-announcement-close {
        top: 8px;
        left: 8px;
    }
    
    [dir="rtl"] .kleeja-announcement-close {
        left: auto;
        right: 8px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .kleeja-announcement-popup {
        width: calc(100% - 16px);
        right: 8px;
        left: auto;
        bottom: 8px;
    }
    
    [dir="rtl"] .kleeja-announcement-popup {
        right: auto;
        left: 8px;
    }
    
    .kleeja-announcement-header {
        padding: 16px 16px 0;
    }
    
    .kleeja-announcement-body {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .kleeja-announcement-footer {
        padding: 10px 16px 16px;
    }
    
    .kleeja-announcement-action {
        padding: 8px 16px;
        font-size: 13px;
    }
}
