/* Common Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-bg: #1f2937;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-radius: 10px;
    --transition-speed: 0.3s;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    background: white;
    transition: all var(--transition-speed) ease;
}

.navbar.scroll-down {
    transform: translateY(-100%);
}

.navbar.scroll-up {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Common Components */
.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Landing Page Specific */
.hero-section {
    background: linear-gradient(135deg, var(--light-bg), #fff);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm63 31c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM34 90c1.657 0 3-1.343 3-3s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    height: 100%;
}

.feature-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Dashboard Specific */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    padding-top: 76px;
}

.dashboard-sidebar {
    width: 240px;
    background: white;
    padding: 20px;
    border-right: 1px solid #e9ecef;
    position: fixed;
    height: calc(100vh - 76px);
}

.dashboard-main {
    flex: 1;
    padding: 20px;
    margin-left: 240px;
    background: var(--light-bg);
}

.dashboard-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

/* Reports Page Specific */
.report-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.report-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.stat-card {
    padding: 1.5rem;
    text-align: center;
    background: white;
    border-radius: var(--border-radius);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Common Components */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--light-bg);
}

.progress-bar {
    background-color: var(--primary-color);
}

.badge {
    padding: 0.5em 1em;
    border-radius: 20px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
}

.table th {
    font-weight: 600;
    color: var(--text-secondary);
}

.table td {
    vertical-align: middle;
}

/* Charts */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 4rem 0 2rem;
}

.footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .dashboard-sidebar {
        width: 60px;
    }
    
    .dashboard-main {
        margin-left: 60px;
    }
    
    .hero-section {
        padding: 4rem 0;
    }
}

@media (max-width: 767.98px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    
    .dashboard-main {
        margin-left: 0;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Utility Classes */
.shadow-sm { box-shadow: 0 2px 4px rgba(0,0,0,.05) !important; }
.shadow-md { box-shadow: 0 4px 6px rgba(0,0,0,.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px rgba(0,0,0,.1) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: calc(var(--border-radius) * 1.5) !important; }
.rounded-circle { border-radius: 50% !important; }
