:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --purple: #a855f7;
    --background: #f9fafb;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px; 
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.5rem;
   
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info h3 {
    font-size: 1rem;
    font-weight: 500;
}

.user-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.menu-item:hover {
    background: var(--background);
}

.menu-item.active {
    background: var(--primary);
    color: white;
}

.main-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}


.search-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    width: 300px;
}

.search-bar input {
    border: none;
    outline: none;
    background: none;
    font-size: 0.875rem;
    width: 100%;
}

 .top-bar-actions {
    display: flex;
    gap: 0.5rem;
}

.icon-button {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-button:hover {
    background: var(--background);
} 

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.date-picker-container {
    position: relative;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.date-selector:hover {
    background: var(--background);
}

.date-picker-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 0.5rem;
    display: none;
    z-index: 1000;
}

.date-picker-dropdown.active {
    display: block;
}

.date-picker-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.date-range-inputs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-input-group {
    flex: 1;
}

.date-input-group label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.date-input-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.date-picker-presets {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--background);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.date-picker-footer {
    padding: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    border-top: 1px solid var(--border);
}

.cancel-btn, .apply-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.cancel-btn {
    background: var(--background);
    border: 1px solid var(--border);
}

.cancel-btn:hover {
    background: var(--border);
}

.apply-btn {
    background: var(--primary);
    color: white;
    border: none;
}

.apply-btn:hover {
    background: var(--primary-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    padding: 1rem;
    border-radius: 0.5rem;
    color: white;
}

.stat-icon.green {
    background: var(--success);
}

.stat-icon.orange {
    background: var(--warning);
}

.stat-icon.purple {
    background: var(--purple);
}

.stat-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--danger);
}

.stat-change.neutral {
    color: var(--text-secondary);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.world-map-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.world-map-card h2 {
    margin-bottom: 1rem;
}

.world-map {
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 400px;
    background-color: #f8fafc;
}

.world-map svg {
    width: 100%;
    height: 100%;
}

.country-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.country-item:hover,
.country-item.highlighted {
    background-color: var(--background);
    transform: translateX(4px);
}

.country-item img {
    width: 24px;
    height: 16px;
    object-fit: cover;
}

.country-item .amount {
    margin-left: auto;
    font-weight: 500;
    color: var(--primary);
}

.achievement-card {
    background: var(--surface);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.trophy {
    font-size: 12rem;
    color: var(--warning);
    margin-bottom: 1rem;
}

.achievement-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin: 1rem 0;
}

.timestamp {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
}

.chart-card {
    background: var(--surface);
    border-radius: 0.1rem;
    padding: 1.0rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chart-card h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.chart-value {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.chart-placeholder {
    height: 50px;
    background: linear-gradient(45deg, var(--border) 25%, transparent 25%, transparent 75%, var(--border) 75%, var(--border)),
                linear-gradient(45deg, var(--border) 25%, transparent 25%, transparent 75%, var(--border) 75%, var(--border));
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
    border-radius: 0.5rem;
    opacity: 0.1;
    display: inline;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .date-picker-dropdown {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 1rem;
    }

    .user-info, .menu-item span:not(.material-icons) {
        display: none;
    }

    .logo {
        justify-content: center;
    }

    .menu-item {
        justify-content: center;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
    }
    
    .date-picker-dropdown {
        right: -1rem;
        width: calc(100vw - 2rem);
    }
    
    .date-range-inputs {
        flex-direction: column;
    }
}

img , svg{
    max-width: 100%;
    height: auto;
}
