/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

:root {
    --primary-color: #000000;
    --primary-light: #666666;
    --accent-color: #333333;
    --text-color: #000000;
    --text-light: #555555;
    --background-color: #ffffff;
    --sidebar-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: #cccccc;
    --sidebar-width: 260px;
    --header-height: 64px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 16px;
}

/* Dashboard layout */
.dashboard {
    display: flex;
    min-height: 100vh;
}

/* Sidebar styles */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 0;
}

.sidebar-nav ul {
    list-style-type: none;
}

.sidebar-nav ul li {
    margin-bottom: 4px;
}

.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    padding: 12px 24px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-nav ul li a i {
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-nav ul li.active a {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-nav ul li:hover a {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.2s ease;
    font-weight: 500;
}

.sidebar-footer a i {
    margin-right: 12px;
}

.sidebar-footer a:hover {
    color: var(--primary-color);
}

/* Main content area */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    overflow-y: auto;
}

/* Top bar styles */
.top-bar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 5;
    box-shadow: var(--shadow-sm);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--background-color);
    border-radius: 24px;
    padding: 8px 16px;
    width: 300px;
}

.search-bar i {
    color: var(--text-light);
    margin-right: 8px;
}

.search-bar input {
    border: none;
    background-color: transparent;
    outline: none;
    width: 100%;
    color: var(--text-color);
}

.user-profile {
    display: flex;
    align-items: center;
}

.notifications {
    position: relative;
    margin-right: 24px;
}

.notifications i {
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user {
    display: flex;
    align-items: center;
}

.user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.user span {
    font-weight: 500;
}

/* Content area */
.content {
    padding: 24px;
}

.content h1 {
    margin-bottom: 24px;
    font-weight: 700;
    font-size: 24px;
}

/* Stats cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.card-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.card-info h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.card-info p {
    font-size: 24px;
    font-weight: 700;
}

/* Charts container */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.chart-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.chart-placeholder {
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 8px;
}

.chart-placeholder .bar {
    width: 40px;
    background: linear-gradient(to top, var(--primary-light), var(--primary-color));
    border-radius: 4px 4px 0 0;
    flex: 1;
    margin: 0 8px;
    transition: height 0.3s ease;
}

.chart-placeholder.circular {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-segment {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        #000000 0% 45%, 
        #666666 45% 65%, 
        #333333 65% 85%, 
        #999999 85% 100%
    );
    box-shadow: var(--shadow-sm);
}

/* Recent activity */
.recent-activity {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-md);
}

.recent-activity h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius);
    background-color: rgba(0, 0, 0, 0.03);
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background-color: rgba(0, 0, 0, 0.07);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.activity-icon i {
    color: var(--primary-color);
    font-size: 18px;
}

.activity-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-details p {
    color: var(--text-light);
    margin-bottom: 8px;
}

.activity-time {
    font-size: 12px;
    color: var(--text-light);
}

/* Responsive design */
@media (max-width: 1024px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .stats-cards {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

/* Mobile menu button (to be used with JavaScript) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --secondary-color: #f5f5f5;
    --text-color: #000000;
    --text-light: #555555;
    --background-color: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

.logo a {
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 0.7;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.sign-in {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
}

.unlock-access {
    text-decoration: none;
    color: white;
    font-weight: 500;
    background-color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 100px;
    transition: var(--transition);
}

.unlock-access:hover {
    opacity: 0.9;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 80px 0 40px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 80px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    transition: var(--transition);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    background-color: white;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

/* Templates showcase */
.templates-showcase {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.template-card {
    width: 300px;
    height: 400px;
    position: relative;
}

.template-preview {
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
}

.preview-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.template-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.template-preview h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.template-preview p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* App dock */
.app-dock {
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dock-icon {
    width: 40px;
    height: 40px;
    background-color: #f0f0f0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    .template-card {
        transform: none;
    }
}
