.alert {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
.hajm {
font-size: 0.7rem;
}


.light-theme .bg-tarikh{
	background-color: #ffffff;
	border: 1px solid #d1d5db;
}
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.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;
}

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

input:checked + .slider {
    background-color: #2196F3;
}

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

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider.disabled {
    background-color: #666;
    cursor: not-allowed;
}

.slider.disabled:before {
    background-color: #ccc;
    transform: translateX(0);
}

details[open] .details-arrow-down {
    display: none;
}

details[open] .details-arrow-up {
    display: block;
}

.text-red-500 {
    color: #ef4444;
}

.text-orange-500 {
    color: #f97316;
}

.text-green-500 {
    color: #22c55e;
}

.status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.status-circle.online {
    background-color: #22c55e;
    animation: pulse 0.8s infinite;
}

.status-circle.offline {
    background-color: #6b7280;
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#onlineUsersCount, #totalUsersCount, #disabledUsersCount, #expiredUsersCount {
    font-size: 1.5rem;
    color: #22c55e;
}

#disabledUsersCount {
    color: #f97316;
}

#expiredUsersCount {
    color: #ef4444;
}

.light-theme {
    background-color: #ffffff;
    color: #1a1a1a;
}

.light-theme .bg-gray-800 {
    background-color: #f3f4f6;
    color: #1a1a1a;
}

.light-theme .bg-gray-700 {
    background-color: #e5e7eb;
    color: #1a1a1a;
}

.light-theme .text-white {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .theme-toggle-button {
    background: linear-gradient(90deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.light-theme .theme-toggle-button:hover {
    background: linear-gradient(90deg, #d1d5db, #9ca3af);
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 .text-sm,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 .text-sm,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 .text-sm,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 .text-sm {
    color: #1a1a1a;
}

.light-theme .bg-gradient-to-r.from-purple-600.to-blue-600 .text-white,
.light-theme .bg-gradient-to-r.from-yellow-600.to-orange-600 .text-white,
.light-theme .bg-gradient-to-r.from-red-600.to-pink-600 .text-white,
.light-theme .bg-gradient-to-r.from-green-600.to-teal-600 .text-white {
    color: #1a1a1a;
}

.traffic-details {
  position: absolute;
        background: rgba(30, 41, 59, 0.95);
        border-radius: 6px;
        padding: 8px 12px;
        color: white;
        font-size: 0.8rem;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        display: none;
        min-width: 120px;
}

.traffic-details span {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.traffic-details span:last-child {
    margin-bottom: 0;
}

.bg-gradient-to-r.from-purple-600.to-blue-600:hover .traffic-details {
    display: block;
}

.bg-gradient-to-r.from-purple-600.to-blue-600 {
    background: linear-gradient(135deg, #6b46c1, #3b82f6);
}

.bg-gradient-to-r.from-yellow-600.to-orange-600 {
    background: linear-gradient(135deg, #d97706, #f97316);
}

.bg-gradient-to-r.from-red-600.to-pink-600 {
    background: linear-gradient(135deg, #dc2626, #ec4899);
}

.bg-gradient-to-r.from-green-500.to-emerald-500 {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: white;
}

.bg-gradient-to-r.from-green-500.to-emerald-500:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.light-theme .bg-gradient-to-r.from-green-500.to-emerald-500 {
    background: linear-gradient(135deg, #e5e7eb, #d1d5db);
    color: #1a1a1a;
}

.text-orange-500.data-limit {
    color: #f97316;
    font-weight: bold;
}

.text-red-500.expired {
    color: #ef4444;
    font-weight: bold;
}

.traffic-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 4px;
}

.glass-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.gradient-text {
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.status-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.progress-bar {
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.5s ease;
}

.download-btn {
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}


.node-card {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.5rem;
    padding: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid #6b7280;
}

.node-card:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-2px);
}

.node-card.online {
    border-left-color: #22c55e;
}

.node-card.offline {
    border-left-color: #ef4444;
}

.node-card.error {
    border-left-color: #f97316;
}

.node-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.node-status.online {
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse 1.5s infinite;
}

.node-status.offline {
    background-color: #ef4444;
}

.node-status.error {
    background-color: #f97316;
}

.node-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.node-action-btn {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.node-action-btn.sync {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.node-action-btn.sync:hover {
    background: rgba(59, 130, 246, 0.4);
}

.node-action-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.node-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.4);
}

.node-action-btn.status {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.node-action-btn.status:hover {
    background: rgba(156, 163, 175, 0.4);
}

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

#syncProgressBar {
    animation: progress-pulse 1.5s infinite;
}

.sync-step {
    transition: all 0.3s ease;
}

.sync-step.completed {
    color: #22c55e;
}

.sync-step.completed i {
    color: #22c55e;
    animation: none;
}

.sync-step.failed {
    color: #ef4444;
}

.sync-step.failed i {
    color: #ef4444;
    animation: none;
}


.connection-badge {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.connection-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index:25;
}

.server-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.server-icon.main svg {
    color: #8b5cf6;
}

.server-icon.node svg {
    color: #3b82f6;
}

.download-option {
    transition: all 0.2s ease;
}

.download-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-option .server-icon {
    margin-right: 8px;
}