/* PRO Theme - Soft Elegant Color Scheme */
/* این استایل‌ها با !important اعمال می‌شوند تا override کنند */

/* Nav should stay visible */
body.pro-mode nav {
    z-index: 50 !important;
}

/* License Header - بعد از nav */
.pro-license-header {
    position: fixed !important;
    top: 64px !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 45 !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

/* Premium Badge Notification */
.pro-premium-badge {
    position: absolute !important;
    top: -10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
    color: white !important;
    padding: 0.25rem 1rem !important;
    border-radius: 16px !important;
    font-size: 0.6875rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.375rem !important;
    animation: badgeFloat 3s ease-in-out infinite !important;
    z-index: 10 !important;
    white-space: nowrap !important;
}

.pro-premium-badge::before {
    content: '' !important;
    position: absolute !important;
    inset: -2px !important;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
    border-radius: 16px !important;
    opacity: 0.3 !important;
    filter: blur(8px) !important;
    z-index: -1 !important;
    animation: badgePulse 2s ease-in-out infinite !important;
}

.pro-premium-badge i {
    font-size: 0.75rem !important;
    animation: sparkle 2s ease-in-out infinite !important;
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-3px);
    }
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        transform: scale(1) rotate(180deg);
    }
    75% {
        transform: scale(1.2) rotate(270deg);
    }
}

.pro-license-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.875rem 1.5rem 0.625rem !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    position: relative;
}

.pro-badge-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pro-crown-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.25);
    position: relative;
}

.pro-crown-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-radius: 14px;
    opacity: 0.2;
    filter: blur(8px);
    z-index: -1;
}

.pro-crown-icon i {
    color: white;
    font-size: 1.5rem;
}

.pro-title {
    color: #1e293b;
    font-size: 1.125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-title i {
    color: #8b5cf6;
    font-size: 1rem;
}

.pro-subtitle {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.125rem;
}

.pro-info-grid {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.pro-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pro-info-label {
    color: #94a3b8;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-info-value {
    color: #1e293b;
    font-size: 0.9375rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-info-value i {
    color: #8b5cf6;
    font-size: 0.875rem;
}

.pro-status-active {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.25);
}

.pro-status-active i {
    animation: statusPulse 2s ease-in-out infinite;
}

.pro-status-inactive {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.25);
}

.pro-status-expired {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25);
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pro-days-remaining {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.25);
}

.pro-logout-btn {
    padding: 0.625rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pro-logout-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Adjust main content for license header */
body.pro-mode .main-content {
    margin-top: 140px !important; /* 64px nav + 76px license header */
}

/* Sidebar should start from top on desktop */
@media (min-width: 641px) {
    body.pro-mode .sidebar {
        top: 0 !important;
        height: 100vh !important;
        padding-top: 140px !important; /* 64px nav + 76px license header */
    }
}

/* PRO Theme Colors - Soft & Elegant - با !important برای override */
body.pro-mode {
    background: linear-gradient(135deg, #fafbff 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
}

/* Dark mode fix for PRO - با specificity بالاتر */
html[data-theme="dark"] body.pro-mode {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%) !important;
}

html[data-theme="dark"] body.pro-mode .pro-license-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%) !important;
    border-bottom: 2px solid #334155 !important;
}

html[data-theme="dark"] body.pro-mode .pro-title {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body.pro-mode .pro-subtitle {
    color: #94a3b8 !important;
}

html[data-theme="dark"] body.pro-mode .pro-info-label {
    color: #64748b !important;
}

html[data-theme="dark"] body.pro-mode .pro-info-value {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.pro-mode .pro-logout-btn {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.pro-mode .pro-logout-btn:hover {
    background: #475569 !important;
    border-color: #64748b !important;
    color: #e2e8f0 !important;
}

/* Nav buttons in dark mode */
html[data-theme="dark"] body.pro-mode .profile-btn {
    background: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.pro-mode .profile-btn:hover {
    background: #475569 !important;
    border-color: #64748b !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.pro-mode .theme-toggle {
    background: #334155 !important;
    color: #cbd5e1 !important;
    border: 1px solid #475569 !important;
}

html[data-theme="dark"] body.pro-mode .theme-toggle:hover {
    background: #475569 !important;
    color: #e2e8f0 !important;
    border-color: #64748b !important;
}

html[data-theme="dark"] body.pro-mode #menuToggle {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.pro-mode #menuToggle:hover {
    color: #a78bfa !important;
}

/* Nav text colors in dark mode */
html[data-theme="dark"] body.pro-mode nav .text-gray-700,
html[data-theme="dark"] body.pro-mode nav .text-gray-600 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.pro-mode nav a {
    color: #94a3b8 !important;
}

html[data-theme="dark"] body.pro-mode nav a:hover {
    color: #a78bfa !important;
}

/* Nav background in dark mode */
html[data-theme="dark"] body.pro-mode .nav-glass {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98)) !important;
    border-bottom: 2px solid #334155 !important;
}

body.pro-mode .glass-card {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="dark"] body.pro-mode .glass-card {
    background: rgba(30, 41, 59, 0.98) !important;
    border: 2px solid #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.pro-mode .nav-glass {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
    border-bottom: 2px solid #e2e8f0 !important;
    backdrop-filter: blur(20px) !important;
}

body.pro-mode .sidebar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
    border-left: 2px solid #e2e8f0 !important;
    backdrop-filter: blur(20px) !important;
}

html[data-theme="dark"] body.pro-mode .sidebar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98)) !important;
    border-left: 2px solid #334155 !important;
}

body.pro-mode .sidebar-item {
    color: #64748b !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] body.pro-mode .sidebar-item {
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

body.pro-mode .sidebar-item:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    color: #8b5cf6 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] body.pro-mode .sidebar-item:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #a78bfa !important;
    font-weight: 700 !important;
}

body.pro-mode .sidebar-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(167, 139, 250, 0.12)) !important;
    color: #8b5cf6 !important;
    border-right: 4px solid #8b5cf6 !important;
    font-weight: 700 !important;
}

html[data-theme="dark"] body.pro-mode .sidebar-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.2)) !important;
    color: #a78bfa !important;
    border-right: 4px solid #a78bfa !important;
    font-weight: 700 !important;
}

body.pro-mode .btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3) !important;
}

body.pro-mode .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* PRO Badge in sections */
.pro-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 20px;
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    margin-right: 0.5rem;
    box-shadow: 0 2px 10px rgba(139, 92, 246, 0.25);
}

/* Accent colors for stats cards in PRO mode */
body.pro-mode .glass-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.12);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .pro-info-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .pro-license-header {
        top: 64px !important;
    }
    
    .pro-premium-badge {
        top: -8px !important;
        font-size: 0.625rem !important;
        padding: 0.25rem 0.875rem !important;
    }
    
    .pro-license-content {
        padding: 0.75rem 1rem 0.5rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
    }
    
    .pro-badge-container {
        width: 100% !important;
    }
    
    .pro-info-grid {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .pro-info-item {
        min-width: 0 !important;
    }
    
    .pro-logout-btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    body.pro-mode .main-content {
        margin-top: 210px !important;
    }
    
    body.pro-mode .sidebar {
        top: 0 !important;
        height: 100vh !important;
        padding-top: 210px !important;
    }
}

@media (max-width: 480px) {
    .pro-premium-badge {
        top: -7px !important;
        font-size: 0.5625rem !important;
        padding: 0.2rem 0.75rem !important;
    }
    
    .pro-title {
        font-size: 0.9375rem !important;
    }
    
    .pro-subtitle {
        font-size: 0.6875rem !important;
    }
    
    .pro-info-label {
        font-size: 0.625rem !important;
    }
    
    .pro-info-value {
        font-size: 0.75rem !important;
    }
    
    .pro-crown-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .pro-crown-icon i {
        font-size: 1.25rem !important;
    }
    
    .pro-info-grid {
        gap: 0.75rem !important;
    }
    
    .pro-status-active,
    .pro-status-inactive,
    .pro-status-expired,
    .pro-days-remaining {
        font-size: 0.625rem !important;
        padding: 0.25rem 0.625rem !important;
    }
    
    body.pro-mode .main-content {
        margin-top: 230px !important;
    }
    
    body.pro-mode .sidebar {
        top: 0 !important;
        height: 100vh !important;
        padding-top: 230px !important;
    }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .pro-license-content {
        padding: 0.875rem 2rem 0.75rem !important;
    }
    
    .pro-info-grid {
        gap: 1.5rem !important;
    }
}

/* Desktop HD */
@media (min-width: 1440px) {
    .pro-license-content {
        max-width: 1400px !important;
        padding: 0.875rem 2rem 0.75rem !important;
    }
    
    .pro-info-grid {
        gap: 2.5rem !important;
    }
    
    .pro-crown-icon {
        width: 52px !important;
        height: 52px !important;
    }
    
    .pro-crown-icon i {
        font-size: 1.625rem !important;
    }
    
    .pro-title {
        font-size: 1.25rem !important;
    }
    
    .pro-subtitle {
        font-size: 0.875rem !important;
    }
}

/* Ultra Wide */
@media (min-width: 1920px) {
    .pro-license-content {
        max-width: 1600px !important;
        padding: 1rem 3rem 0.875rem !important;
    }
    
    .pro-info-grid {
        gap: 3rem !important;
    }
}
