/* ============================================ */
/* PREMIUM LIGHT THEME - PRODUCTION READY */
/* ============================================ */

[data-theme="light"] {
    --bg: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-primary: #1C1C1E;
    --text-secondary: #6E6E73;
    --card-bg: #FFFFFF;
    --card-hover: #F5F5F7;
    --border-color: #D1D1D6;
    --nav-bg: rgba(255, 255, 255, 0.98);
    --accent-blue: #007AFF;
    --accent-gradient: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --blur: 20px;
}

/* ============================================ */
/* SIDEBAR - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .sidebar {
    background: linear-gradient(180deg, #FFFFFF 0%, #F9F9FB 100%);
    border-right: 1px solid #E5E5EA;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sidebar-header h2 {
    color: #1C1C1E;
    font-weight: 700;
}

[data-theme="light"] .sidebar-link {
    color: #3A3A3C;
    font-weight: 500;
}

[data-theme="light"] .sidebar-link:hover {
    background: linear-gradient(90deg, #F5F5F7 0%, #E8E8ED 100%);
    color: #007AFF;
}

[data-theme="light"] .sidebar-link.active {
    background: linear-gradient(90deg, #E3F2FF 0%, #D4E9FF 100%);
    color: #007AFF;
    border-left: 3px solid #007AFF;
    font-weight: 600;
}

/* ============================================ */
/* NAVBAR - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #E5E5EA;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-btn {
    color: #1C1C1E;
    background: transparent;
}

[data-theme="light"] .nav-btn:hover {
    background: #F5F5F7;
    color: #007AFF;
}

/* ============================================ */
/* CARDS - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .action-card,
[data-theme="light"] .app-card,
[data-theme="light"] .portal-card,
[data-theme="light"] .latest-app-card,
[data-theme="light"] .cert-card {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .action-card:hover,
[data-theme="light"] .app-card:hover,
[data-theme="light"] .portal-card:hover,
[data-theme="light"] .latest-app-card:hover {
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.15);
    border-color: #007AFF;
    transform: translateY(-2px);
}

/* Certificate Cards - Individual */
[data-theme="light"] .cert-card-individual {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .cert-card-individual:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.12);
    border-color: #007AFF;
    transform: translateY(-2px);
}

[data-theme="light"] .cert-title {
    color: #1C1C1E;
    font-weight: 600;
}

/* ============================================ */
/* BUTTONS - PREMIUM LIGHT THEME */
/* ============================================ */

/* Large Download Button */
[data-theme="light"] .download-btn-large {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    font-weight: 600;
    border: none;
}

[data-theme="light"] .download-btn-large:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4845B4 100%);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Certificate Download Button */
[data-theme="light"] .cert-download-btn {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    font-weight: 600;
    transition: all 0.3s ease;
}

[data-theme="light"] .cert-download-btn:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4845B4 100%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
    transform: translateY(-1px);
}

/* Store GET Button */
[data-theme="light"] .btn-install,
[data-theme="light"] .install-btn {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.3);
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .btn-install:hover,
[data-theme="light"] .install-btn:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4845B4 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
}

/* Settings Action Buttons */
[data-theme="light"] .action-button {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9FB 100%);
    color: #007AFF;
    border: 2px solid #007AFF;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.15);
    font-weight: 600;
    transition: all 0.3s ease;
}

[data-theme="light"] .action-button:hover {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    transform: translateY(-2px);
}

/* Premium Button */
[data-theme="light"] .premium-btn {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

[data-theme="light"] .premium-btn:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4845B4 100%);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Setting Button */
[data-theme="light"] .setting-btn {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
    font-weight: 600;
}

[data-theme="light"] .setting-btn:hover {
    background: linear-gradient(135deg, #0051D5 0%, #4845B4 100%);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.35);
}

/* Delete Button */
[data-theme="light"] .btn-delete {
    background: rgba(255, 59, 48, 0.1);
    color: #FF3B30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

[data-theme="light"] .btn-delete:hover {
    background: #FF3B30;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

/* ============================================ */
/* INFO CARDS - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .info-card {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .info-card.warning {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFFAED 100%);
    border: 2px solid #FFCC00;
    box-shadow: 0 4px 16px rgba(255, 204, 0, 0.15);
}

[data-theme="light"] .info-card.success {
    background: linear-gradient(135deg, #E6F7ED 0%, #EEF9F2 100%);
    border: 2px solid #34C759;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

[data-theme="light"] .info-card h3 {
    color: #1C1C1E;
    font-weight: 700;
}

/* ============================================ */
/* GUIDE PAGE - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .guide-section {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

[data-theme="light"] .guide-header {
    color: #1C1C1E;
}

[data-theme="light"] .guide-header h2 {
    color: #1C1C1E;
    font-weight: 700;
}

[data-theme="light"] .guide-step,
[data-theme="light"] .faq-item {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .guide-step:hover,
[data-theme="light"] .faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.12);
    border-color: #007AFF;
}

[data-theme="light"] .guide-step.success {
    background: linear-gradient(135deg, #E6F7ED 0%, #EEF9F2 100%);
    border: 2px solid #34C759;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.15);
}

[data-theme="light"] .guide-step h3,
[data-theme="light"] .faq-item h3 {
    color: #007AFF;
    font-weight: 600;
}

[data-theme="light"] .step-number {
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.3);
}

/* Certificate Status Cards */
[data-theme="light"] .cert-status-card {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

[data-theme="light"] .cert-status-card:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.12);
    border-color: #007AFF;
}

[data-theme="light"] .cert-status-card strong {
    color: #1C1C1E;
    font-weight: 600;
}

[data-theme="light"] .cert-status-card span {
    color: #6E6E73;
}

/* ============================================ */
/* TEXT ELEMENTS - LIGHT THEME */
/* ============================================ */

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
    color: #1C1C1E;
    font-weight: 700;
}

[data-theme="light"] .subtitle,
[data-theme="light"] .section-subtitle {
    color: #6E6E73;
    font-weight: 500;
}

[data-theme="light"] p {
    color: #3A3A3C;
}

[data-theme="light"] code {
    background: linear-gradient(135deg, #F5F5F7 0%, #EBEBF0 100%);
    color: #1C1C1E;
    border: 1px solid #D1D1D6;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

[data-theme="light"] a {
    color: #007AFF;
    font-weight: 500;
}

[data-theme="light"] a:hover {
    color: #0051D5;
    text-decoration: underline;
}

/* ============================================ */
/* BADGES - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .badge,
[data-theme="light"] .view-badge {
    background: linear-gradient(135deg, #E3F2FF 0%, #D4E9FF 100%);
    color: #007AFF;
    border: 1px solid #007AFF;
    font-weight: 600;
}

[data-theme="light"] .cert-expiry-badge {
    background: #F5F5F7;
    color: #3A3A3C;
    border: 1px solid #D1D1D6;
    font-weight: 600;
}

[data-theme="light"] .cert-expiry-badge.valid {
    background: linear-gradient(135deg, #E6F7ED 0%, #D4F0DD 100%);
    color: #34C759;
    border: 1px solid #34C759;
}

[data-theme="light"] .cert-expiry-badge.best {
    background: linear-gradient(135deg, #FFE5B4 0%, #FFD89B 100%);
    color: #FF9500;
    border: 1px solid #FF9500;
}

[data-theme="light"] .status-badge.online {
    background: linear-gradient(135deg, #E6F7ED 0%, #D4F0DD 100%);
    color: #34C759;
    border: 1px solid #34C759;
    font-weight: 700;
}

[data-theme="light"] .star-badge {
    filter: drop-shadow(0 2px 4px rgba(255, 149, 0, 0.3));
}

/* ============================================ */
/* SETTINGS PAGE - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .settings-section {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

[data-theme="light"] .setting-item,
[data-theme="light"] .info-item,
[data-theme="light"] .about-item,
[data-theme="light"] .stat-card {
    background: #FFFFFF;
    border: 1px solid #E5E5EA;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

[data-theme="light"] .setting-item:hover,
[data-theme="light"] .stat-card:hover {
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.12);
    border-color: #007AFF;
}

[data-theme="light"] .stat-number {
    color: #007AFF;
    font-weight: 700;
}

[data-theme="light"] .stat-label {
    color: #6E6E73;
    font-weight: 500;
}

/* ============================================ */
/* CERTIFICATE BUNDLE - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .certificate-bundle {
    background: linear-gradient(135deg, #FFFFFF 0%, #F9F9FB 100%);
    border: 2px solid #007AFF;
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
}

[data-theme="light"] .bundle-header h2 {
    color: #1C1C1E;
    font-weight: 700;
}

[data-theme="light"] .file-size {
    color: #6E6E73;
    font-weight: 500;
}

[data-theme="light"] .bundle-description {
    color: #3A3A3C;
}

/* ============================================ */
/* UTILITY CLASSES - LIGHT THEME */
/* ============================================ */

[data-theme="light"] .footnote {
    color: #6E6E73;
    font-size: 14px;
}

[data-theme="light"] .small {
    color: #8E8E93;
}

/* Ensure smooth transitions */
[data-theme="light"] * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}