/* CSS Variables for consistent theming */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --accent: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1f2937;
    --darker: #111827;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --light: #f9fafb;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f9ff 0%, #fef2f2 100%);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success), var(--secondary), var(--accent));
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.header h1 i {
    margin-right: 15px;
}

.header p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}
/* Add to common.css after the header styles */
.header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.currency-selector {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.currency-selector i {
    margin-right: 8px;
    color: white;
}

.currency-selector select {
    background: transparent;
    border: none;
    color: white;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.currency-selector select option {
    color: var(--dark);
    background: white;
}

/* Container and Layout */
.container {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.logo-container {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-light);
    margin-bottom: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    margin-right: 10px;
    font-size: 1.8rem;
    color: var(--secondary);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

.sidebar-nav a i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: var(--gray);
}

.sidebar-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: translateX(5px);
}

.sidebar-nav a:hover i {
    color: var(--primary);
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.sidebar-nav a.active i {
    color: white;
}

.sidebar-nav a.active::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid white;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-light);
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
}

.sidebar-footer .disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--gray);
}

/* Content Area */
.content {
    flex: 1;
    padding: 2.5rem;
    background: transparent;
    overflow-y: auto;
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--darker);
    margin-bottom: 0.5rem;
}

.content-header p {
    color: var(--gray);
    font-size: 1.05rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 1rem 0;
    }
    
    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0 1rem;
    }
    
    .sidebar-nav a {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem;
        margin-right: 0.5rem;
        margin-bottom: 0;
        min-width: 100px;
    }
    
    .sidebar-nav a i {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 1.4rem;
    }
    
    .sidebar-nav a span {
        font-size: 0.85rem;
    }
    
    .sidebar-nav a.active::after {
        display: none;
    }
    
    .content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 0.95rem;
    }
    
    .content-header h2 {
        font-size: 1.5rem;
    }
}
