/* 
 * Feelter.io Dashboard - Main Stylesheet
 * 
 * Contains global styles for the dashboard application
 */

/* Base Styles & Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #4a90e2;
    --accent-color: #ff9900;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-color: #6c757d;
    
    --border-radius: 4px;
    --transition-speed: 0.3s;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.content {
    flex: 1 0 auto;
    padding: 2rem 0;
}

.footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1050;
    width: 350px;
}

.alert {
    box-shadow: var(--box-shadow);
}

/* Login & Authentication */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.login-container .card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    border: none;
}

.login-container h1 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 300;
    font-size: 2rem;
}

.verification-sent {
    text-align: center;
    padding: 3rem 1rem;
}

.verification-sent .icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-container {
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.dashboard-header h1 {
    margin: 0;
    font-weight: 300;
    color: var(--primary-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.report-card h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.report-card .meta {
    display: flex;
    justify-content: space-between;
    margin: 1rem 0;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.locale {
    background-color: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: bold;
}

.no-reports {
    padding: 3rem;
    text-align: center;
}

/* Reports & Premium Content */
.report-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.report-sidebar {
    width: 300px;
    background-color: #fff;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.report-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-sidebar-header h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.report-sidebar-nav {
    padding: 1.5rem;
    flex: 1;
}

.report-sidebar-nav h3 {
    font-size: 1rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.report-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.report-sidebar-nav li {
    margin-bottom: 0.5rem;
}

.report-sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    color: #333;
    transition: background-color var(--transition-speed);
}

.report-sidebar-nav a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.report-sidebar-nav li.active a {
    background-color: #e6f2ff;
    color: var(--primary-color);
    font-weight: 500;
}

.premium-link {
    color: var(--gray-color) !important;
}

.premium-badge {
    background-color: var(--accent-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: bold;
}

.report-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.report-topnav {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
}

.report-topnav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0.5rem;
}

.report-topnav li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    color: #333;
    transition: background-color var(--transition-speed);
}

.report-topnav li a:hover {
    background-color: #f5f5f5;
    text-decoration: none;
}

.report-topnav li.active a {
    background-color: #e6f2ff;
    color: var(--primary-color);
    font-weight: 500;
}

.category-emoji {
    font-size: 1.25rem;
}

.report-document {
    flex: 1;
    padding: 2rem;
    background-color: #fff;
    overflow-y: auto;
}

.report-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

.report-metadata {
    line-height: 1.6;
}

/* Premium Content Purchase */
.premium-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.premium-content-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    text-align: center;
}

.premium-lock-icon {
    margin-bottom: 1rem;
}

.premium-subtitle {
    opacity: 0.8;
}

.premium-content-details {
    display: flex;
    padding: 2rem;
}

.premium-info {
    flex: 2;
    padding-right: 2rem;
}

.premium-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.premium-info ul {
    margin-bottom: 1.5rem;
}

.premium-info li {
    margin-bottom: 0.5rem;
}

.premium-purchase {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e9ecef;
    padding-left: 2rem;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 1.5rem;
    margin-left: 0.25rem;
}

.secure-payment {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--gray-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .report-container {
        flex-direction: column;
        height: auto;
    }
    
    .report-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .premium-content-details {
        flex-direction: column;
    }
    
    .premium-info {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .premium-purchase {
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .report-topnav ul {
        flex-wrap: wrap;
    }
}

/* Dark Mode (Can be toggled with JS) */
body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .card,
body.dark-mode .report-card,
body.dark-mode .report-sidebar,
body.dark-mode .report-topnav,
body.dark-mode .report-document,
body.dark-mode .premium-content-wrapper {
    background-color: #2a2a2a;
    color: #e0e0e0;
}

body.dark-mode .report-sidebar-nav a,
body.dark-mode .report-topnav li a {
    color: #e0e0e0;
}

body.dark-mode .report-sidebar-nav a:hover,
body.dark-mode .report-topnav li a:hover {
    background-color: #3a3a3a;
}

body.dark-mode .report-sidebar-nav li.active a,
body.dark-mode .report-topnav li.active a {
    background-color: #004080;
    color: white;
}

body.dark-mode .footer,
body.dark-mode .report-footer {
    background-color: #2a2a2a;
    border-color: #444;
    color: #999;
}

body.dark-mode .report-sidebar,
body.dark-mode .report-topnav {
    border-color: #444;
}