/* Standard Status Page Design */

/* Standard Dashboard Logo Styling for Status Page */
.user-brand .logo-mz {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
    border-radius: 0.5rem !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.9375rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3) !important;
}

.user-brand .logo-mz:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.4) !important;
    text-decoration: none !important;
}

.user-brand .logo-text {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-left: 0.5rem !important;
    text-transform: none !important;
}

.user-brand .logo-text:hover {
    text-decoration: none !important;
}

/* Dark theme logo styling */
[data-theme="dark"] .user-brand .logo-mz {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark) 100%) !important;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) !important;
}

[data-theme="dark"] .user-brand .logo-mz:hover {
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4) !important;
}

[data-theme="dark"] .user-brand .logo-text {
    color: var(--text-primary) !important;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .user-brand .logo-text {
        display: none !important;
    }
}

/* Container */
.status-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Status Header */
.status-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.operational .status-dot {
    background-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.status-indicator.outage .status-dot {
    background-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.status-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.last-updated {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #111827;
}

/* Services Section */
.services-section {
    margin-bottom: 3rem;
}

.services-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

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

.service-item:hover {
    background-color: #f9fafb;
}

.service-info {
    flex: 1;
}

.service-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.service-type {
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: capitalize;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.service-status.operational {
    color: #10b981;
}

.service-status.outage {
    color: #ef4444;
}

/* Uptime Section */
.uptime-section {
    margin-bottom: 3rem;
}

.uptime-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.uptime-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.uptime-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.uptime-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.uptime-value {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

/* Incidents Section */
.incidents-section {
    margin-bottom: 3rem;
}

.incidents-list {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.incident-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

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

.incident-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.incident-status.resolved {
    color: #10b981;
}

.incident-status.ongoing {
    color: #f59e0b;
}

.incident-content {
    flex: 1;
}

.incident-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.incident-date {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.incident-description {
    color: #374151;
    line-height: 1.5;
}

.no-incidents {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6b7280;
}

.no-incidents-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.no-incidents-text {
    font-size: 1.125rem;
    font-weight: 500;
}

/* Theme Switcher Improvements */
.theme-toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #5a6fd8 100%);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.theme-toggle-btn i {
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    position: absolute;
}

.theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-dark {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

[data-theme="dark"] .theme-icon-light {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Theme switcher positioning and effects */
.navbar-nav .theme-toggle-btn {
    margin: 0 0.5rem;
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.theme-toggle-btn:hover::before {
    transform: translateX(100%);
}

/* Dark theme specific theme switcher */
[data-theme="dark"] .theme-toggle-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Dark Theme */
[data-theme="dark"] .status-page-container {
    background: #111827;
    color: #f9fafb;
}

[data-theme="dark"] .status-title {
    color: #f9fafb;
}

[data-theme="dark"] .last-updated {
    color: #9ca3af;
}

[data-theme="dark"] .section-title {
    color: #f9fafb;
}

[data-theme="dark"] .services-list,
[data-theme="dark"] .incidents-list {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .service-item {
    border-bottom-color: #374151;
}

[data-theme="dark"] .service-item:hover {
    background-color: #374151;
}

[data-theme="dark"] .service-name {
    color: #f9fafb;
}

[data-theme="dark"] .service-type {
    color: #9ca3af;
}

[data-theme="dark"] .uptime-item {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .uptime-item:hover {
    border-color: #4b5563;
}

[data-theme="dark"] .uptime-label {
    color: #9ca3af;
}

[data-theme="dark"] .uptime-value {
    color: #f9fafb;
}

[data-theme="dark"] .incident-item {
    border-bottom-color: #374151;
}

[data-theme="dark"] .incident-title {
    color: #f9fafb;
}

[data-theme="dark"] .incident-date {
    color: #9ca3af;
}

[data-theme="dark"] .incident-description {
    color: #d1d5db;
}

[data-theme="dark"] .no-incidents {
    color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-page-container {
        padding: 1rem 0.5rem;
    }
    
    .status-title {
        font-size: 1.5rem;
    }
    
    .status-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .uptime-grid {
        grid-template-columns: 1fr;
    }
    
    .incident-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .incident-status {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .status-title {
        font-size: 1.25rem;
    }
    
    .service-item,
    .incident-item {
        padding: 1rem;
    }
    
    .uptime-item {
        padding: 1rem;
    }
    
    .uptime-value {
        font-size: 1.5rem;
    }
}

/* Privacy Policy Content Styling */
.privacy-content {
    color: #111827;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    padding: 0;
    max-width: none;
}

[data-theme="dark"] .privacy-content {
    color: #f9fafb;
}

.privacy-content h1 {
    color: #111827;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.privacy-content h2 {
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-content h2::before {
    content: "📋";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.privacy-content h3 {
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.25rem;
    position: relative;
    padding-left: 1.25rem;
}

.privacy-content h3::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.5rem;
}

.privacy-content h4,
.privacy-content h5,
.privacy-content h6 {
    color: #111827;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

[data-theme="dark"] .privacy-content h1 {
    color: #f9fafb;
    border-bottom-color: #374151;
}

[data-theme="dark"] .privacy-content h2,
[data-theme="dark"] .privacy-content h3,
[data-theme="dark"] .privacy-content h4,
[data-theme="dark"] .privacy-content h5,
[data-theme="dark"] .privacy-content h6 {
    color: #f9fafb;
}

.privacy-content p {
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 1rem;
}

.privacy-content ul,
.privacy-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
    margin-left: 0;
}

.privacy-content ul {
    list-style-type: none;
    position: relative;
}

.privacy-content ul li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.privacy-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 0.9rem;
}

.privacy-content ol {
    counter-reset: item;
}

.privacy-content ol li {
    margin-bottom: 0.75rem;
    display: block;
    position: relative;
    padding-left: 2rem;
}

.privacy-content ol li::before {
    content: counter(item) ".";
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    color: #3b82f6;
    font-weight: bold;
    min-width: 1.5rem;
}

.privacy-content strong {
    font-weight: 600;
    color: #111827;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .privacy-content strong {
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-content em {
    color: #6b7280;
    font-style: italic;
}

[data-theme="dark"] .privacy-content em {
    color: #9ca3af;
}

/* Special styling for contact sections */
.privacy-content h3:has-text("Contact")::before {
    content: "📞";
}

.privacy-content h3:has-text("Security")::before {
    content: "🔒";
}

.privacy-content h3:has-text("Rights")::before {
    content: "⚖️";
}

.privacy-content h3:has-text("Data")::before {
    content: "💾";
}

/* Enhanced visual elements */
.privacy-content {
    position: relative;
}

.privacy-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #ef4444);
    border-radius: 2px;
}

[data-theme="dark"] .privacy-content::before {
    background: linear-gradient(90deg, #60a5fa, #34d399, #fbbf24, #f87171);
}

/* Highlight important sections */
.privacy-content h2 {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border-left: 4px solid #3b82f6;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

[data-theme="dark"] .privacy-content h2 {
    background: linear-gradient(135deg, #1f2937, #374151);
    border-left-color: #60a5fa;
}

/* Contact information styling */
.privacy-content h3:contains("Contact") {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    border-left: 3px solid #f59e0b;
}

[data-theme="dark"] .privacy-content h3:contains("Contact") {
    background: linear-gradient(135deg, #451a03, #78350f);
    border-left-color: #fbbf24;
}

/* Add subtle animations */
.privacy-content h2,
.privacy-content h3 {
    transition: all 0.3s ease;
}

.privacy-content h2:hover,
.privacy-content h3:hover {
    transform: translateX(4px);
}

/* Enhanced list styling */
.privacy-content ul li {
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
}

.privacy-content ul li:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(2px);
}

[data-theme="dark"] .privacy-content ul li:hover {
    background: rgba(96, 165, 250, 0.1);
}

/* Code and technical terms styling */
.privacy-content code {
    background: #f1f5f9;
    color: #e11d48;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

[data-theme="dark"] .privacy-content code {
    background: #1e293b;
    color: #f87171;
}

/* Table of Contents Styling */
.toc-title {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

[data-theme="dark"] .toc-title {
    color: #f9fafb;
    border-bottom-color: #374151;
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-bottom: 0;
}

.toc-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.toc-link:hover::before {
    left: 100%;
}

.toc-link:hover {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .toc-link {
    color: #d1d5db;
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .toc-link:hover {
    color: #60a5fa;
    background: #1e3a8a;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Add anchor targets for smooth scrolling */
.privacy-content h2[id],
.privacy-content h3[id] {
    scroll-margin-top: 2rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .privacy-content h1 {
        font-size: 1.75rem;
    }
    
    .privacy-content h2 {
        font-size: 1.25rem;
        margin-top: 2rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0.75rem 1rem;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }
    
    .privacy-content ul,
    .privacy-content ol {
        padding-left: 1.5rem;
    }
    
    .privacy-content ul li,
    .privacy-content ol li {
        padding-left: 1.25rem;
    }
    
    .privacy-content h2:hover,
    .privacy-content h3:hover {
        transform: none;
    }
    
    .privacy-content ul li:hover {
        transform: none;
    }
}
