* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1628;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 10px;
}

/* ========== سلايدر خلفية الكول سنتر ========== */
.slider-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
}

.slide.active {
    opacity: 1;
    animation: zoomEffect 8s ease-in-out forwards;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(10, 22, 40, 0.88) 0%, 
        rgba(30, 58, 95, 0.82) 50%, 
        rgba(10, 22, 40, 0.88) 100%);
    z-index: 1;
}

body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(94, 196, 212, 0.8), transparent),
        radial-gradient(2px 2px at 60px 70px, rgba(94, 196, 212, 0.6), transparent),
        radial-gradient(1px 1px at 50px 50px, rgba(94, 196, 212, 0.7), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(94, 196, 212, 0.5), transparent),
        radial-gradient(2px 2px at 90px 10px, rgba(94, 196, 212, 0.8), transparent),
        radial-gradient(1px 1px at 150px 120px, rgba(94, 196, 212, 0.6), transparent),
        radial-gradient(2px 2px at 200px 60px, rgba(94, 196, 212, 0.7), transparent),
        radial-gradient(1px 1px at 180px 30px, rgba(94, 196, 212, 0.5), transparent),
        radial-gradient(2px 2px at 220px 100px, rgba(94, 196, 212, 0.8), transparent),
        radial-gradient(1px 1px at 270px 50px, rgba(94, 196, 212, 0.6), transparent);
    background-repeat: repeat;
    background-size: 300px 200px;
    animation: starsAnimation 100s linear infinite;
    opacity: 0.6;
    pointer-events: none;
}

@keyframes starsAnimation {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-200px);
    }
}

/* خلفية AI مع الشبكة */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(94, 196, 212, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 196, 212, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

:root {
    --primary-color: #5ec4d4;
    --primary-dark: #5568d3;
    --secondary-color: #1e3a5f;
    --accent-color: #f093fb;
    --success-color: #4facfe;
    --danger-color: #fa709a;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
}

.container {
    display: flex;
    width: 95%;
    max-width: 800px;
    height: auto;
    min-height: 500px;
    max-height: 95vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* تحسينات للموبايل من البداية */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        min-height: 100vh;
        border-radius: 0;
        flex-direction: column;
    }
}

/* === زر القائمة الهامبرجر === */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(94, 196, 212, 0.9), rgba(30, 58, 95, 0.9));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(94, 196, 212, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(94, 196, 212, 0.6);
}

.hamburger-line {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === الهيدر الثابت للموبايل === */
.mobile-header {
    display: none; /* مخفي على الديسكتوب */
}

@media (max-width: 768px) {
    /* إخفاء زر الهامبرجر المنفصل وتحويله لجزء من الهيدر */
    .hamburger-menu {
        position: fixed;
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
        padding: 10px;
        background: rgba(94, 196, 212, 0.2);
        border-radius: 8px;
        box-shadow: none;
        z-index: 1001;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(26, 54, 93, 0.95));
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        align-items: center;
        justify-content: space-between;
        padding: 0 60px 0 12px; /* مساحة للهامبرجر على اليمين */
        z-index: 997;
        border-bottom: 1px solid rgba(94, 196, 212, 0.2);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .mobile-logo {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    
    .mobile-title {
        font-size: 1.1em;
        font-weight: 600;
        color: white;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-balance {
        display: flex;
        align-items: center;
        gap: 3px;
        background: linear-gradient(135deg, rgba(94, 196, 212, 0.2), rgba(30, 58, 95, 0.3));
        padding: 6px 10px;
        border-radius: 20px;
        border: 1px solid rgba(94, 196, 212, 0.3);
    }
    
    .mobile-balance-value {
        font-size: 0.9em;
        font-weight: 600;
        color: #5ec4d4;
    }
    
    .mobile-balance-currency {
        font-size: 0.75em;
        color: rgba(94, 196, 212, 0.8);
    }
}

/* الخلفية المعتمة */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* الشريط الجانبي */
.sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #0d1b2a 0%, #1a365d 50%, #0d1b2a 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(94, 196, 212, 0.2);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 196, 212, 0.5) rgba(13, 27, 42, 0.3);
}

/* تخصيص شريط التمرير للقائمة الجانبية */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(13, 27, 42, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(94, 196, 212, 0.6), rgba(30, 58, 95, 0.8));
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(94, 196, 212, 0.8), rgba(30, 58, 95, 1));
}

.sidebar.active {
    right: 0;
}

/* هيدر القائمة الجانبية */
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: linear-gradient(135deg, rgba(94, 196, 212, 0.15), rgba(30, 58, 95, 0.3));
    border-bottom: 1px solid rgba(94, 196, 212, 0.2);
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(94, 196, 212, 0.3);
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sidebar-brand-name {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #5ec4d4, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-brand-tagline {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
}

/* معلومات المستخدم */
.sidebar-user-profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
}

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

.sidebar-username {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.sidebar-role {
    display: inline-flex;
    align-items: center;
    font-size: 0.8em;
    color: var(--teal-color);
    background: rgba(94, 196, 212, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    width: fit-content;
    border: 1px solid rgba(94, 196, 212, 0.3);
}

.sidebar-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2), rgba(94, 196, 212, 0.1));
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.sidebar-balance-icon {
    font-size: 1.2em;
}

.sidebar-balance-value {
    font-size: 1.3em;
    font-weight: 700;
    color: #4ade80;
}

.sidebar-balance-currency {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(94, 196, 212, 0.3), transparent);
    margin: 0;
}

/* قائمة التنقل */
.sidebar-nav {
    flex: 1;
    padding: 15px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 12px;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(94, 196, 212, 0.12);
    color: #fff;
    border-color: rgba(94, 196, 212, 0.2);
    transform: translateX(-5px);
}

.menu-item.active {
    background: linear-gradient(135deg, rgba(94, 196, 212, 0.25), rgba(30, 58, 95, 0.35));
    border: 1px solid rgba(94, 196, 212, 0.4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(94, 196, 212, 0.2);
}

.menu-item.active .menu-icon {
    transform: scale(1.1);
}

.menu-icon {
    font-size: 1.4em;
    width: 32px;
    text-align: center;
    transition: transform 0.3s ease;
}

.menu-label {
    flex: 1;
    font-size: 0.95em;
    font-weight: 500;
}

.menu-arrow {
    font-size: 0.9em;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--teal-color);
}

.menu-item:hover .menu-arrow,
.menu-item.active .menu-arrow {
    opacity: 1;
    transform: translateX(-5px);
}

.menu-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7em;
    font-weight: 600;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.admin-menu-item {
    border: 1px dashed rgba(94, 196, 212, 0.3) !important;
}

.install-menu-item {
    background: rgba(94, 196, 212, 0.08);
}

/* فوتر القائمة الجانبية */
.sidebar-footer {
    padding: 15px 20px 25px;
    border-top: 1px solid rgba(94, 196, 212, 0.15);
}

.sidebar-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.1));
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #fca5a5;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sidebar-logout-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(220, 38, 38, 0.2));
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

.sidebar-logout-btn .logout-icon {
    font-size: 1.2em;
}

/* Legacy styles - للتوافق */
.menu-item .icon {
    font-size: 1.4em;
    width: 32px;
    text-align: center;
}

.menu-item .label {
    flex: 1;
    font-size: 0.95em;
    font-weight: 500;
}

.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7em;
    font-weight: 600;
    padding: 0 6px;
}

/* الشعار في الهيدر */
.header-logo-container {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    background: transparent;
    border-radius: 50%;
    flex-shrink: 0;
}

.header-logo-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(94, 196, 212, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(94, 196, 212, 0.6);
}

/* المحتوى الرئيسي */
.main-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

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

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 15px;
}

.header h1 {
    color: #fff;
    font-size: 22px;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: center;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(94, 196, 212, 0.2);
    padding: 8px 15px;
    border-radius: 12px;
    border: 2px solid rgba(94, 196, 212, 0.3);
}

.user-icon {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-name-header {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.user-role-header {
    color: #5ec4d4;
    font-size: 11px;
    font-weight: 500;
}

.logout-header-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--danger-color), #fee140);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.3);
}

.logout-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 112, 154, 0.5);
}

.logout-icon {
    font-size: 16px;
}

/* زر لوحة التحكم للأدمن */
.admin-link-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #5ec4d4, #1e3a5f);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-decoration: none;
}

.admin-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

.admin-icon {
    font-size: 16px;
}

/* ========== شريط الرصيد في الهيدر ========== */
.balance-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.balance-header:hover {
    transform: scale(1.05);
}

.balance-header.low {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    animation: pulse-warning 2s infinite;
}

.balance-header.medium {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.balance-icon {
    font-size: 14px;
}

.balance-header-value {
    font-weight: 700;
}

.balance-header-currency {
    opacity: 0.9;
    font-size: 12px;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.phone-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 50px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.phone-display.empty {
    display: none !important;
}

.phone-number {
    font-size: 28px;
    color: #fff;
    min-height: 0;
    letter-spacing: 2px;
    flex: 1;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.delete-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: linear-gradient(135deg, var(--danger-color), #fe5196);
    color: white;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(250, 112, 154, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(250, 112, 154, 0.4);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* لوحة الأرقام */
.dialpad {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    direction: rtl;
}

.num-btn {
    width: 65px;
    height: 65px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.num-btn:hover {
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(94, 196, 212, 0.4);
    color: white;
}

.num-btn:hover .number {
    color: white;
}

.num-btn:hover .letters {
    color: rgba(255, 255, 255, 0.9);
}

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

.num-btn .number {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
}

.num-btn .letters {
    font-size: 10px;
    color: #5ec4d4;
    margin-top: 2px;
}

/* اختيار رقم الاتصال */
.caller-id-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    padding: 20px;
    background: rgba(94, 196, 212, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(94, 196, 212, 0.3);
    animation: slideDown 0.3s ease;
}

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

.caller-id-selector.hidden {
    display: none;
}

.caller-id-selector label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.caller-id-dropdown {
    padding: 12px 20px;
    border-radius: 10px;
    border: 2px solid rgba(94, 196, 212, 0.4);
    background: rgba(30, 58, 95, 0.8);
    backdrop-filter: blur(10px);
    font-size: 16px;
    color: #fff;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.3s ease;
}

.caller-id-dropdown:hover {
    border-color: #5ec4d4;
    box-shadow: 0 2px 15px rgba(94, 196, 212, 0.4);
}

.caller-id-dropdown:focus {
    outline: none;
    border-color: #5ec4d4;
    box-shadow: 0 0 0 3px rgba(94, 196, 212, 0.3);
}

.confirm-call-btn {
    padding: 12px 30px;
    border: none;
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 192, 87, 0.4);
}

.confirm-call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 192, 87, 0.5);
}

.confirm-call-btn:active {
    transform: translateY(0);
}

.call-btn {
    width: 58px;
    height: 58px;
    border: none;
    background: linear-gradient(135deg, var(--success-color) 0%, #00c6ff 100%);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

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

.call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.5);
}

.call-btn:hover::before {
    width: 100%;
    height: 100%;
}

.call-btn:active {
    transform: scale(0.95);
}

.quick-dial {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* شاشة المكالمة */
.call-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.call-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.call-status {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.call-employee-name {
    font-size: 16px;
    color: #5ec4d4;
    font-weight: 600;
    margin-bottom: 10px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.call-number {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    direction: ltr;
}

.call-duration {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.recording-status {
    margin-top: 15px;
    color: #f44336;
    font-size: 16px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.call-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.control-btn.end-call {
    background: linear-gradient(135deg, var(--danger-color) 0%, #fe5196 100%);
    color: white;
}

.control-btn.end-call:hover {
    background: linear-gradient(135deg, #fe5196 0%, var(--danger-color) 100%);
}

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

.control-btn .label {
    font-size: 11px;
}

/* قائمة التسجيلات */
.recordings-list {
    flex: 1;
    overflow-y: auto;
}

.recordings-list h2 {
    color: #fff;
    margin-bottom: 20px;
}

#recordings-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recording-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.recording-info {
    flex: 1;
}

.recording-number {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.recording-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.recording-controls {
    display: flex;
    gap: 10px;
}

.recording-controls button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.download-btn {
    background: linear-gradient(135deg, var(--success-color), #00c6ff);
    color: white;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: linear-gradient(135deg, #00c6ff, var(--success-color));
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.recording-controls button:hover {
    transform: scale(1.05);
}

/* حالة الاتصال */
.connection-status {
    position: absolute;
    bottom: 10px;
    right: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffa500;
    animation: blink 1.5s infinite;
}

.connection-status.connected .status-dot {
    background: #4caf50;
    animation: none;
}

.connection-status.error .status-dot {
    background: #f44336;
    animation: none;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* سجل المكالمات */
.call-history-list {
    flex: 1;
    overflow-y: auto;
}

.call-history-list h2 {
    color: #fff;
    margin-bottom: 20px;
}

#call-history-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.call-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.call-item:hover {
    background: #e8e8e8;
    transform: translateX(-3px);
}

.call-item-info {
    flex: 1;
}

.call-item-number {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.call-item-details {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.call-item-type {
    display: flex;
    align-items: center;
    gap: 5px;
}

.call-item-actions {
    display: flex;
    gap: 10px;
}

.call-item-actions button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

/* جهات الاتصال */
.contacts-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.contacts-header h2 {
    color: #fff;
    margin: 0;
}

.add-contact-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.add-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

#contacts-container {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(240, 147, 251, 0.08));
    transform: translateX(-3px);
}

.contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: bold;
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-phone {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.contact-actions {
    display: flex;
    gap: 10px;
}

.contact-actions button {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.contact-call-btn {
    background: linear-gradient(135deg, var(--success-color), #00c6ff);
    color: white;
}

.contact-call-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

/* الإعدادات */
.settings-panel {
    flex: 1;
    overflow-y: auto;
}

.settings-panel h2 {
    color: #fff;
    margin-bottom: 30px;
    font-size: 28px;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.settings-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
}

.settings-section h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

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

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info h3 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.version {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 3px;
}

.build-date {
    color: #999;
    font-size: 12px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.setting-label {
    color: #fff;
    font-size: 14px;
}

.setting-value {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

.setting-input {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    width: 100%;
    max-width: 300px;
    direction: ltr;
    text-align: left;
    transition: all 0.3s ease;
}

.setting-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.status-online {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

/* ========== قسم الرصيد ========== */
.balance-display {
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 15px;
    color: white;
}

.balance-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.balance-value {
    font-size: 36px;
    font-weight: 700;
}

.balance-currency {
    font-size: 18px;
    opacity: 0.9;
}

.balance-status {
    font-size: 14px;
    opacity: 0.85;
}

.balance-low {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.balance-medium {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%) !important;
}

.balance-good {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%) !important;
}

.recharge-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.recharge-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.refresh-balance-btn {
    width: 100%;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-balance-btn:hover {
    background: #e0e0e0;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--success-color), #00c6ff);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.setting-select {
    padding: 8px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.setting-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.about-text {
    text-align: center;
    padding: 20px 0;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.copyright {
    color: #999;
    font-size: 12px;
}

/* إدارة المديرين */
.employees-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.add-employee-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.add-employee-form h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.permissions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.permission-item:hover {
    background: #f0f0f0;
}

.permission-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.permission-item span {
    color: #fff;
    font-size: 13px;
}

.add-employee-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-employee-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.employees-list {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.employees-list h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

#employees-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.no-employees {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 0;
}

.employee-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s;
}

.employee-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.employee-info h6 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 600;
}

.employee-username {
    color: #5ec4d4;
    font-size: 13px;
    font-weight: 500;
}

.delete-employee-btn {
    background: linear-gradient(135deg, var(--danger-color), #fee140);
    color: white;
    border: none;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-employee-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(250, 112, 154, 0.4);
}

.employee-permissions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.permissions-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
}

.permissions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.permission-tag {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 60px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state p {
    color: #999;
    font-size: 16px;
    margin-bottom: 20px;
}

.add-contact-btn-empty {
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.add-contact-btn-empty:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
}

/* إخفاء العناصر */
.hidden {
    display: none !important;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 0;
        align-items: flex-start;
        min-height: 100vh;
        overflow-x: hidden;
    }
    
    /* زر الهامبرجر في الموبايل */
    .hamburger-menu {
        top: 12px;
        right: 12px;
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, rgba(94, 196, 212, 0.2), rgba(30, 58, 95, 0.3));
        border: 1px solid rgba(94, 196, 212, 0.3);
    }
    
    .hamburger-line {
        width: 22px;
        height: 2.5px;
    }
    
    /* القائمة الجانبية في الموبايل - مُصغرة */
    .sidebar {
        width: 70% !important;
        max-width: 260px !important;
        right: -100% !important;
        padding-top: 0 !important;
    }
    
    .sidebar.active {
        right: 0 !important;
    }
    
    .sidebar-header {
        padding: 14px 12px !important;
    }
    
    .sidebar-logo {
        width: 36px !important;
        height: 36px !important;
    }
    
    .sidebar-brand-name {
        font-size: 1em !important;
    }
    
    .sidebar-user-profile {
        padding: 10px 12px !important;
    }
    
    .sidebar-username {
        font-size: 0.85em !important;
    }
    
    .sidebar-role {
        font-size: 0.7em !important;
    }
    
    .sidebar-balance {
        font-size: 0.75em !important;
        padding: 4px 8px !important;
    }
    
    .sidebar-nav {
        padding: 8px 8px !important;
    }
    
    .menu-item {
        padding: 8px 10px !important;
        gap: 8px !important;
        border-radius: 6px !important;
    }
    
    .menu-icon {
        font-size: 1.1em !important;
        width: 22px !important;
    }
    
    .menu-label {
        font-size: 0.8em !important;
    }
    
    .menu-arrow {
        font-size: 0.7em !important;
    }
    
    .sidebar-footer {
        padding: 8px 12px 14px !important;
    }
    
    .sidebar-logout-btn {
        padding: 8px 12px !important;
        font-size: 0.8em !important;
        border-radius: 6px !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding-top: 70px !important;
    }
    
    .main-content {
        width: 100% !important;
        padding: 15px !important;
        overflow-y: auto;
        min-height: calc(100vh - 70px);
    }
    
    .header {
        padding: 10px 15px !important;
        flex-wrap: wrap;
        background: linear-gradient(135deg, rgba(10, 22, 40, 0.98), rgba(30, 58, 95, 0.95));
    }
    
    .header-top {
        display: flex;
        flex-direction: row;
        gap: 12px;
        align-items: center !important;
        justify-content: center;
        width: 100%;
    }
    
    /* الشعار والعنوان في سطر واحد */
    .header-logo-container {
        margin-bottom: 0 !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .header-logo-img {
        width: 45px !important;
        height: 45px !important;
    }
    
    .header h1 {
        font-size: 1.5em !important;
        text-align: center;
        margin: 0 !important;
    }
    
    /* إخفاء معلومات المستخدم في الهيدر على الموبايل - موجودة في القائمة الجانبية */
    .user-info-header {
        display: none !important;
    }
    
    .user-info {
        font-size: 0.85em !important;
    }
    
    .logout-btn {
        padding: 8px 15px !important;
        font-size: 13px !important;
    }
    
    .nav-item {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    /* تحسين الأزرار في لوحة الأرقام */
    .keypad {
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .key {
        width: 70px !important;
        height: 70px !important;
        font-size: 22px !important;
    }
    
    .key .letters {
        font-size: 10px !important;
    }
    
    .call-btn-round {
        width: 70px !important;
        height: 70px !important;
        font-size: 26px !important;
    }
    
    /* تحسين الـ inputs */
    input, button, select, textarea {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .section-content {
        padding: 10px !important;
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto;
    }
    
    .form-group {
        margin-bottom: 12px !important;
    }
    
    /* تحسين عرض التسجيلات */
    .recording-item {
        padding: 10px !important;
        font-size: 13px;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
    
    .recording-info {
        width: 100%;
    }
    
    .recording-controls {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .recording-controls button {
        width: 100% !important;
        margin: 0 !important;
    }
    
    h2 {
        font-size: 1.2em !important;
    }
    
    h3, h4 {
        font-size: 1.05em !important;
    }
    
    h5 {
        font-size: 0.95em !important;
    }
    
    /* شاشة عرض الرقم في الموبايل */
    .phone-display {
        min-height: 70px !important;
        padding: 20px 15px !important;
        margin-bottom: 15px !important;
        border-radius: 20px !important;
    }
    
    .phone-number {
        font-size: 26px !important;
        letter-spacing: 3px !important;
    }
    
    .delete-btn {
        font-size: 20px !important;
        padding: 10px 15px !important;
    }
    
    .phone-input-container input {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .call-btn {
        padding: 15px !important;
        font-size: 16px !important;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .checkbox-group label {
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* تحسين قسم الإعدادات */
    .settings-section {
        padding: 10px !important;
    }
    
    .employees-container {
        flex-direction: column !important;
    }
    
    .add-employee-form,
    .employees-list {
        width: 100% !important;
        margin-bottom: 15px;
    }
    
    .employee-card {
        padding: 10px !important;
    }
    
    /* تحسين Modal */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }
    
    .hamburger-menu {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .hamburger-line {
        width: 20px;
        height: 2px;
    }
    
    .sidebar {
        width: 90% !important;
        max-width: none !important;
    }
    
    .container {
        border-radius: 0 !important;
        padding-top: 60px !important;
    }
    
    .main-content {
        padding: 8px !important;
    }
    
    .header h1 {
        font-size: 1.2em !important;
    }
    
    .header-logo-container {
        width: 38px !important;
        height: 38px !important;
    }
    
    .header-logo-img {
        width: 38px !important;
        height: 38px !important;
    }
    
    /* شاشة عرض الرقم في الموبايل الصغير */
    .phone-display {
        padding: 18px 15px !important;
        min-height: 70px !important;
        margin-bottom: 15px !important;
        border-radius: 20px !important;
    }
    
    .phone-number {
        font-size: 24px !important;
        letter-spacing: 2px !important;
    }
    
    .delete-btn {
        font-size: 18px !important;
        padding: 10px 14px !important;
    }
    
    .key {
        width: 60px !important;
        height: 60px !important;
        font-size: 20px !important;
    }
    
    .num-btn {
        min-height: 55px !important;
    }
    
    .num-btn .number {
        font-size: 22px !important;
    }
    
    .call-btn-round {
        width: 60px !important;
        height: 60px !important;
        font-size: 22px !important;
    }
    
    h2 {
        font-size: 1.1em !important;
    }
    
    .nav-item {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    
    .user-badge {
        min-width: 100% !important;
    }
}

/* ===== تقارير ساعات العمل ===== */
.work-reports-panel {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.work-reports-panel h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 24px;
}

.reports-controls {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.date-range-picker label {
    font-weight: 600;
    color: #2c3e50;
}

.date-range-picker input[type="date"] {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.date-range-picker input[type="date"]:focus {
    outline: none;
    border-color: #6c5ce7;
}

.btn-primary {
    padding: 10px 30px;
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* زر لوحة التحكم */
.btn-admin-dashboard {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-admin-dashboard:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #1e3a5f 0%, #5ec4d4 100%);
}

.admin-control-section {
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.reports-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    padding: 20px;
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.reports-table thead {
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
}

.reports-table th,
.reports-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.reports-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hours-badge {
    display: inline-block;
    padding: 5px 15px;
    background: #27ae60;
    color: white;
    border-radius: 20px;
    font-weight: 600;
}

.btn-details {
    padding: 8px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-details:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.no-data {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
    font-size: 18px;
}

.admin-only {
    display: flex;
}

/* Modal للتفاصيل */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 22px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 20px;
}

.employee-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.summary-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-item .label {
    font-weight: 600;
    color: #2c3e50;
}

.summary-item .value {
    font-size: 18px;
    color: #5ec4d4;
    font-weight: bold;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.details-table th,
.details-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.details-table thead {
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.details-table tbody tr:hover {
    background: #f0f0f0;
}

/* ===== تحذير عدم النشاط ===== */
.inactivity-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.warning-content {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 400px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    }
    50% {
        box-shadow: 0 10px 60px rgba(255, 107, 107, 0.8);
    }
}

.warning-icon {
    font-size: 40px;
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.warning-text strong {
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.warning-text p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.warning-btn {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff6b6b;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.warning-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .warning-content {
        min-width: auto;
        max-width: 90vw;
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .warning-icon {
        font-size: 30px;
    }
}

/* ==================== تسعيرة المكالمات ==================== */
.pricing-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 15px;
    padding: 20px;
}

.pricing-section h4 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 18px;
}

.pricing-note {
    background: #fff3cd;
    color: #856404;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 15px;
    border-right: 4px solid #ffc107;
}

.pricing-table-container {
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.pricing-table-container h5 {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.pricing-table thead {
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
}

.pricing-table th {
    padding: 10px 8px;
    text-align: right;
    font-weight: 600;
}

.pricing-table th:first-child {
    border-radius: 0 8px 0 0;
}

.pricing-table th:last-child {
    border-radius: 8px 0 0 0;
}

.pricing-table td {
    padding: 10px 8px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
}

.pricing-table tbody tr:hover {
    background: #f7fafc;
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table .highlight-row {
    background: #fff5f5 !important;
}

.pricing-table .highlight-row td {
    color: #c53030;
    font-weight: 600;
}

.pricing-tip {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 13px;
    margin-top: 15px;
    border-right: 4px solid #28a745;
}

.pricing-tip strong {
    color: #0d5c1d;
}

/* Responsive للتسعيرة */
@media (max-width: 480px) {
    .pricing-table {
        font-size: 11px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 5px;
    }
    
    .pricing-table-container {
        padding: 10px;
    }
}

/* ===== شاشة المكالمة الواردة ===== */
.incoming-call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.98) 0%, rgba(118, 75, 162, 0.98) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.incoming-call-overlay.hidden {
    display: none;
}

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

.incoming-call-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 400px;
    width: 90%;
    animation: slideUp 0.5s ease;
}

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

.incoming-call-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.call-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s ease-out infinite;
}

.call-pulse.delay-1 {
    animation-delay: 0.5s;
}

.call-pulse.delay-2 {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.caller-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 40px rgba(79, 172, 254, 0.5);
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    25% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-5deg);
    }
    75% {
        transform: translate(-50%, -50%) rotate(5deg);
    }
}

.avatar-icon {
    font-size: 45px;
}

.incoming-call-info {
    margin-bottom: 40px;
}

.incoming-title {
    color: white;
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.caller-number {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    direction: ltr;
    font-family: 'Segoe UI', monospace;
}

.caller-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.incoming-call-actions {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.incoming-btn {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.incoming-btn .btn-icon {
    font-size: 28px;
}

.incoming-btn .btn-text {
    font-size: 12px;
    font-weight: 600;
}

.reject-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
}

.reject-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(238, 90, 90, 0.5);
}

.accept-btn {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
    animation: acceptPulse 1.5s ease-in-out infinite;
}

@keyframes acceptPulse {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(64, 192, 87, 0.3);
    }
    50% {
        box-shadow: 0 8px 40px rgba(64, 192, 87, 0.6);
    }
}

.accept-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(64, 192, 87, 0.5);
}

/* تحسين لوحة الاتصال */
.dialpad {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 25px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.number-pad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    direction: rtl;
}

.num-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 18px 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.num-btn:hover {
    background: linear-gradient(180deg, #5ec4d4 0%, #1e3a5f 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.num-btn:hover .number,
.num-btn:hover .letters {
    color: white;
}

.num-btn:active {
    transform: scale(0.95);
}

.num-btn .number {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}

.num-btn .letters {
    font-size: 10px;
    color: #5ec4d4;
    margin-top: 4px;
    letter-spacing: 1px;
}

.call-btn {
    width: 100%;
    padding: 18px;
    font-size: 32px;
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(64, 192, 87, 0.4);
    margin-top: 10px;
}

.call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(64, 192, 87, 0.5);
}

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

/* تحسين عرض الرقم - Professional Phone Display */
.phone-display {
    background: linear-gradient(145deg, rgba(30, 58, 95, 0.9), rgba(10, 22, 40, 0.95));
    border-radius: 20px;
    padding: 15px 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 45px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 8px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(94, 196, 212, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* إطار متوهج متحرك */
.phone-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, 
        #5ec4d4, 
        #1e3a5f, 
        #5ec4d4, 
        #1e3a5f, 
        #5ec4d4);
    background-size: 300% 100%;
    border-radius: 27px;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* خطوط ضوئية داخلية */
.phone-display::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
    border-radius: 23px;
}

.phone-number {
    font-size: 32px;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(135deg, #ffffff 0%, #5ec4d4 50%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 200% auto;
    animation: textShine 3s ease-in-out infinite;
    direction: ltr;
    text-align: center;
    flex: 1;
    font-family: 'Courier New', 'Segoe UI', monospace;
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(94, 196, 212, 0.5);
    position: relative;
    z-index: 1;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    50% { background-position: 200% center; }
    100% { background-position: 0% center; }
}

.delete-btn {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    font-size: 22px;
    padding: 12px 18px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.delete-btn:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.4), rgba(255, 107, 107, 0.2));
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.4);
}

.delete-btn:active {
    transform: scale(0.95);
}

/* تحسين الرصيد في الهيدر */
.balance-header {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    padding: 8px 15px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(72, 187, 120, 0.3);
    animation: balanceGlow 2s ease-in-out infinite;
}

@keyframes balanceGlow {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(72, 187, 120, 0.3);
    }
    50% {
        box-shadow: 0 3px 20px rgba(72, 187, 120, 0.5);
    }
}

.balance-header.low {
    background: linear-gradient(135deg, #fc8181 0%, #f56565 100%);
    animation: balancePulse 1s ease-in-out infinite;
}

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

.balance-header.medium {
    background: linear-gradient(135deg, #f6e05e 0%, #ecc94b 100%);
}

.balance-header-value {
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.balance-header-currency {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

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

/* Responsive للمكالمة الواردة */
@media (max-width: 480px) {
    .incoming-call-card {
        padding: 35px 25px;
    }
    
    .incoming-call-animation {
        width: 120px;
        height: 120px;
    }
    
    .caller-avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-icon {
        font-size: 35px;
    }
    
    .caller-number {
        font-size: 26px;
    }
    
    .incoming-btn {
        width: 70px;
        height: 70px;
    }
    
    .incoming-btn .btn-icon {
        font-size: 24px;
    }
}

/* تصغير حجم التطبيق على الهاتف */
@media (max-width: 600px) {
    body {
        font-size: 12px;
    }
    
    .hamburger-menu {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
    }
    
    .header {
        padding: 5px 8px !important;
    }
    
    .header h1 {
        font-size: 0.95em !important;
    }
    
    .header-logo-container {
        width: 35px !important;
        height: 35px !important;
    }
    
    .header-logo-img {
        width: 35px !important;
        height: 35px !important;
    }
    
    /* الشريط الجانبي يبقى مخفي مع الهامبرجر */
    .sidebar {
        padding-top: 60px !important;
    }
    
    .menu-item {
        padding: 12px 15px !important;
        margin-bottom: 8px !important;
    }
    
    .menu-item .icon {
        font-size: 22px !important;
    }
    
    .menu-item .label {
        font-size: 12px !important;
    }
    
    .bottom-logo-container {
        width: 60px !important;
        height: 60px !important;
    }
    
    .bottom-logo-img {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* تصغير لوحة الاتصال */
    .dialpad {
        padding: 12px !important;
        border-radius: 18px !important;
    }
    
    /* شاشة عرض الرقم */
    .phone-display {
        padding: 15px 12px !important;
        min-height: 60px !important;
        margin-bottom: 12px !important;
        border-radius: 15px !important;
    }
    
    .phone-number {
        font-size: 22px !important;
        letter-spacing: 2px !important;
    }
    
    .delete-btn {
        font-size: 16px !important;
        padding: 8px 12px !important;
        border-radius: 12px !important;
    }
    
    .number-pad {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .num-btn {
        min-height: 50px !important;
        padding: 10px 6px !important;
        border-radius: 12px !important;
    }
    
    .num-btn .number {
        font-size: 20px !important;
    }
    
    .num-btn .letters {
        font-size: 8px !important;
    }
    
    .call-btn {
        padding: 12px !important;
        font-size: 24px !important;
        border-radius: 15px !important;
    }
    
    /* تصغير اختيار رقم الاتصال */
    .caller-id-selector {
        padding: 15px !important;
        margin: 10px 0 !important;
        gap: 10px !important;
    }
    
    .caller-id-selector label {
        font-size: 14px !important;
    }
    
    .caller-id-dropdown {
        padding: 10px 15px !important;
        font-size: 14px !important;
        min-width: 180px !important;
    }
    
    .confirm-call-btn {
        padding: 10px 25px !important;
        font-size: 14px !important;
    }
    
    /* تصغير الرصيد */
    .balance-header {
        padding: 5px 8px !important;
        border-radius: 12px !important;
        gap: 4px !important;
    }
    
    .balance-header-amount {
        font-size: 12px !important;
    }
    
    .balance-header-currency {
        font-size: 9px !important;
    }
    
    .balance-icon {
        font-size: 12px !important;
    }
    
    /* تصغير معلومات المستخدم */
    .user-info {
        font-size: 10px !important;
    }
    
    .user-badge {
        padding: 3px 6px !important;
        font-size: 9px !important;
    }
    
    .logout-btn {
        padding: 4px 8px !important;
        font-size: 9px !important;
    }
    
    /* تصغير الشاشة الرئيسية */
    .main-content {
        padding: 5px !important;
    }
    
    h2 {
        font-size: 0.9em !important;
    }
    
    .nav-tabs {
        gap: 2px !important;
    }
    
    .nav-item {
        padding: 4px 6px !important;
        font-size: 9px !important;
    }
    
    /* تصغير قوائم التسجيلات */
    .recording-item {
        padding: 8px !important;
    }
    
    .recording-info {
        gap: 2px !important;
    }
    
    /* تصغير النماذج */
    .modal-content {
        padding: 10px !important;
    }
    
    .form-group label {
        font-size: 11px !important;
    }
    
    .form-group input,
    .form-group select {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    
    /* إخفاء الشعار السفلي */
    .bottom-logo-container {
        display: none !important;
    }
}

/* ===== PWA زر التثبيت ===== */
#install-app-btn {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%) !important;
    animation: installPulse 2s infinite;
}

#install-app-btn.install-available {
    display: block !important;
}

#install-app-btn:hover {
    background: linear-gradient(135deg, #00cec9 0%, #00b894 100%) !important;
    transform: scale(1.05);
}

#install-app-btn .icon {
    animation: bounce 1s infinite;
}

@keyframes installPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 184, 148, 0);
    }
}

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

/* بانر التثبيت للموبايل */
.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #5ec4d4 0%, #1e3a5f 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.install-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.install-banner-icon {
    font-size: 32px;
}

.install-banner-text h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
}

.install-banner-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.install-banner-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #5ec4d4;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.install-banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.install-banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.8;
}

.install-banner-close:hover {
    opacity: 1;
}
