/* Minimal Clean Theme - Light Mode */

/* Base Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #374151;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}

/* Sidebar Styling */
.sidebar-minimal {
    background-color: #ffffff;
    border-right: 1px solid #e5e7eb;
    width: 240px;
}

.sidebar-minimal .logo-container {
    height: 60px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.sidebar-minimal .logo-container img {
    height: 32px;
    width: auto;
}

.sidebar-minimal nav {
    padding: 16px 12px;
}

.sidebar-minimal .nav-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 2px;
    transition: all 0.15s ease;
}

.sidebar-minimal .nav-link:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sidebar-minimal .nav-link.active {
    background-color: #f3f4f6;
    color: #111827;
    font-weight: 600;
}

.sidebar-minimal .nav-link svg {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

/* Main Content Area */
.main-content {
    background-color: #f8fafc;
    min-height: 100vh;
}

.content-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.content-header h1 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.content-header .welcome-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 20px;
    margin-bottom: 0;
}

.stat-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.15s ease;
}

.stat-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

.stat-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}

.stat-icon.revenue {
    background-color: #10b981;
}

.stat-icon.customers {
    background-color: #3b82f6;
}

.stat-icon.orders {
    background-color: #8b5cf6;
}

.stat-icon.unpaid {
    background-color: #ef4444;
}

.stat-content h3 {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-content .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.stat-content .stat-change {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

.stat-change.neutral {
    color: #6b7280;
}

/* Chart Containers */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    padding: 0 20px 20px 20px;
}

.chart-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 4px;
}

.chart-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    background-color: transparent;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chart-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.chart-btn.active {
    background-color: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Activity Lists */
.activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px 20px;
}

.activity-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.activity-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.activity-link {
    font-size: 11px;
    font-weight: 500;
    color: #3b82f6;
    text-decoration: none;
}

.activity-link:hover {
    color: #1d4ed8;
}

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

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-main {
    flex: 1;
}

.activity-title-link {
    font-size: 13px;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    margin-bottom: 2px;
}

.activity-title-link:hover {
    color: #3b82f6;
}

.activity-meta {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

.activity-meta a {
    color: #6b7280;
    text-decoration: none;
}

.activity-meta a:hover {
    color: #3b82f6;
}

.activity-value {
    text-align: right;
    flex-shrink: 0;
}

.activity-amount {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 2px 0;
}

.activity-badge {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-cash {
    background-color: #dcfce7;
    color: #166534;
}

.badge-credit {
    background-color: #fef2f2;
    color: #991b1b;
}

.badge-bank {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Quantity Changes */
.quantity-change {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.quantity-change.positive {
    color: #10b981;
}

.quantity-change.negative {
    color: #ef4444;
}

.change-type {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 32px 16px;
    color: #9ca3af;
    font-size: 13px;
}

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

    .activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 12px;
    }

    .charts-grid,
    .activity-grid {
        padding: 0 16px 16px 16px;
    }

    .content-header {
        padding: 12px 16px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}