/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    text-align: center;
}

header p {
    text-align: center;
    color: #718096;
    font-size: 1.1rem;
}

/* Client header styles */
.client-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(-5px);
}

.client-info h1 {
    font-size: 2rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.client-path {
    color: #718096;
    font-family: 'Courier New', monospace;
    background: #f7fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-indicator.online {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.status-indicator.offline {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* Main content styles */
main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.demo-grid h2 {
    color: #2d3748;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Client cards */
.client-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.client-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.client-header h3 {
    color: #2d3748;
    font-size: 1.3rem;
}

.client-details p {
    margin-bottom: 0.5rem;
    color: #4a5568;
}

.client-details a {
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
}

.client-details a:hover {
    text-decoration: underline;
}

.client-actions {
    margin-top: 1rem;
    text-align: center;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    margin-left: 0.5rem;
}

.btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

/* Info section */
.info-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.info-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.auth-info h4 {
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.auth-info ul {
    list-style: none;
    padding-left: 0;
}

.auth-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.auth-info li:last-child {
    border-bottom: none;
}

/* Demo content styles */
.demo-content {
    padding: 0;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.welcome-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
}

/* Demo sections */
.demo-sections {
    display: grid;
    gap: 2rem;
}

.demo-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.demo-section h3 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Widgets */
.demo-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.widget {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.widget-header h4 {
    color: #2d3748;
    font-size: 1rem;
}

.widget-icon {
    font-size: 1.5rem;
}

.widget-content p {
    color: #718096;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2d3748;
}

.metric-label {
    color: #718096;
    font-size: 0.875rem;
}

/* Configuration panel */
.config-panel {
    display: grid;
    gap: 1rem;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f7fafc;
    border-radius: 6px;
}

.config-item label {
    font-weight: 500;
    color: #4a5568;
}

.config-item code {
    background: #2d3748;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.env-badge {
    background: #4299e1;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Feature list */
.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.feature-content p {
    color: #718096;
    font-size: 0.9rem;
}

/* Footer styles */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.separator {
    color: #cbd5e0;
}

/* Error page styles */
.error-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-content h1 {
    color: #2d3748;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error-content p {
    color: #718096;
    margin-bottom: 2rem;
}

.error-actions {
    margin-bottom: 2rem;
}

.error-help {
    background: #f7fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
}

.error-help h3 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.error-help ul {
    list-style: none;
    padding-left: 0;
}

.error-help li {
    padding: 0.25rem 0;
}

.error-help a {
    color: #667eea;
    text-decoration: none;
}

.error-help a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .client-cards {
        grid-template-columns: 1fr;
    }
    
    .demo-widgets {
        grid-template-columns: 1fr;
    }
    
    .top-nav {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .config-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }

    .welcome-card {
        padding: 1.5rem;
    }

    .welcome-card h2 {
        font-size: 1.5rem;
    }
}

/* Enhanced Client Page Styles */
.hero-section {
    margin-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.hero-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-preview {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    width: 200px;
    height: 120px;
    backdrop-filter: blur(10px);
}

.preview-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.preview-dot.red { background: #ef4444; }
.preview-dot.yellow { background: #f59e0b; }
.preview-dot.green { background: #10b981; }

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-line {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.preview-line.short {
    width: 60%;
}

/* Quick Access Section */
.quick-access {
    margin-bottom: 3rem;
}

.quick-access h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.access-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.access-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.access-card h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.access-card p {
    color: #718096;
    font-size: 0.9rem;
}

/* Enhanced Demo Sections */
.demo-sections {
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #718096;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
}

.feature-header h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin: 0;
}

.feature-card p {
    color: #718096;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-status {
    display: flex;
    justify-content: flex-end;
}

/* Configuration Section */
.config-section {
    margin-bottom: 3rem;
}

.config-section h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.config-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.config-card h4 {
    font-size: 1.2rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
}

.support-content h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.support-content p {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.support-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.support-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.support-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.support-btn.secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.support-btn.secondary:hover {
    background: #f7fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced Footer */
.footer-left {
    flex: 1;
}

.footer-subtitle {
    color: #718096;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-right {
    display: flex;
    align-items: center;
}

/* Status Badge Enhancements */
.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
}

.env-badge.demo {
    background: #8b5cf6;
    color: white;
}

/* Responsive Design for New Components */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .access-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .support-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .access-card {
        padding: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .config-card {
        padding: 1.5rem;
    }

    .support-section {
        padding: 2rem 1.5rem;
    }
}

/* Dashboard Page Styles */
.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.stat-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dashboard-content {
    margin-bottom: 2rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-widget {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard-widget.full-width {
    grid-column: 1 / -1;
}

.dashboard-widget h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 1.5rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
}

.activity-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.activity-content h4 {
    font-size: 1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.activity-content p {
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #a0aec0;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.action-btn:hover {
    background: #edf2f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.action-icon {
    font-size: 1.5rem;
}

.chart-container {
    background: #f7fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.chart-placeholder {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.5rem;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-line {
    width: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.chart-labels {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #718096;
}

/* Reports Page Styles */
.reports-header {
    margin-bottom: 2rem;
}

.reports-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.date-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-picker label {
    font-weight: 500;
    color: #2d3748;
}

.date-picker select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
}

.export-actions {
    display: flex;
    gap: 0.5rem;
}

.export-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #f7fafc;
    transform: translateY(-1px);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.report-card.full-width {
    grid-column: 1 / -1;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.report-header h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin: 0;
}

.report-badge {
    background: #667eea;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.report-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 8px;
}

.metric-label {
    color: #4a5568;
    font-weight: 500;
}

.metric-value {
    font-weight: 700;
    color: #2d3748;
}

.metric-change {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.metric-change.positive {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.metric-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.detailed-chart {
    margin-top: 1rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-header h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin: 0;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.revenue {
    background: #667eea;
}

.legend-color.expenses {
    background: #f59e0b;
}

.chart-bars {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-bar {
    width: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    min-height: 20px;
}

.report-actions {
    text-align: center;
    margin-top: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Settings Page Styles */
.settings-nav {
    margin-bottom: 2rem;
}

.settings-tabs {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: #718096;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #f7fafc;
    color: #2d3748;
}

.settings-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 2rem;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #2d3748;
}

.form-group input,
.form-group select {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.save-btn,
.reset-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.save-btn {
    background: #667eea;
    color: white;
}

.save-btn:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

.reset-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.reset-btn:hover {
    background: #cbd5e0;
}

.security-item,
.notification-item,
.integration-item,
.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
}

.security-info,
.notification-info,
.integration-info,
.billing-info h4 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.security-info p,
.notification-info p,
.integration-info p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e0;
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #667eea;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.timeout-select,
.password-strength {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #2d3748;
}

.connect-btn,
.upgrade-btn,
.update-btn,
.change-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-btn:hover,
.upgrade-btn:hover,
.update-btn:hover,
.change-btn:hover {
    background: #667eea;
    color: white;
}

.billing-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .reports-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-grid {
        grid-template-columns: 1fr;
    }

    .settings-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
    }

    .security-item,
    .notification-item,
    .integration-item,
    .billing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1.5rem;
    }

    .dashboard-widget {
        padding: 1.5rem;
    }

    .report-card {
        padding: 1.5rem;
    }

    .settings-content {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }
} 