/* Dashboard Styles */
.dashboard-content {
    background-color: #f8f9fa;
    padding: 20px;
}

/* Sidebar Styles */
.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header .logo-icon {
    width: 35px;
    height: 35px;
}

.sidebar-nav .nav-link {
    color: #495057;
    padding: 12px 20px;
    margin: 4px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.sidebar-nav .nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.sidebar-nav .nav-link.active {
    background-color: #007bff;
    color: white;
}

.sidebar-nav .nav-link i {
    margin-right: 10px;
    width: 18px;
}

.dropdown-menu-custom {
    display: none;
    list-style: none;
    padding: 0;
    margin: 8px 0 8px 30px;
}

.dropdown-menu-custom.show {
    display: block;
}

.dropdown-item-custom {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 6px;
    margin: 2px 0;
    transition: all 0.3s ease;
}

.dropdown-item-custom:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.dropdown-item-custom.active {
    background-color: #007bff;
    color: white;
}

.dropdown-item-custom i {
    margin-right: 8px;
    width: 16px;
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

/* Header Styles */
.topbar {
    border-radius: 12px;
    border: none;
}

.search-container {
    width: 300px;
}

.search-input {
    border-radius: 25px;
    padding: 8px 40px 8px 16px;
    border: 1px solid #e9ecef;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.notification-btn {
    color: #6c757d;
    border: none;
    background: none;
    position: relative;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    padding: 2px 6px;
    min-width: 16px;
    text-align: center;
}

.user-profile-btn {
    border: none;
    background: none;
    color: inherit;
    text-decoration: none;
}

.user-avatar {
    width: 35px;
    height: 35px;
    font-size: 14px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

.user-role {
    font-size: 11px;
    color: #6c757d;
    line-height: 1.2;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-info {
    flex: 1;
}

.stat-title {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.stat-value {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-change {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #28a745;
}

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

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

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-left: 16px;
}

/* Icon Colors */
.revenue-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.orders-icon {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.customers-icon {
    background: linear-gradient(135deg, #17a2b8, #007bff);
}

.inventory-icon {
    background: linear-gradient(135deg, #dc3545, #e83e8c);
}

.invoices-icon {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.staff-icon {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.suppliers-icon {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.stock-icon {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

/* Chart Card */
.chart-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.chart-card .card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

.chart-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.chart-tabs .btn {
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 8px;
}

.chart-placeholder {
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.chart-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Activity Card */
.activity-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.activity-card .card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

.activity-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.activity-list {
    max-height: 350px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f8f9fa;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    margin-right: 12px;
    flex-shrink: 0;
}

.activity-icon.order-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.activity-icon.payment-icon {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.activity-icon.warning-icon {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.activity-icon.staff-icon {
    background: linear-gradient(135deg, #e83e8c, #d91a72);
}

.activity-icon.invoice-icon {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #495057;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Quick Actions Card */
.quick-actions-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quick-actions-card .card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
}

.quick-actions-card .card-title {
    color: #2c3e50;
    font-weight: 600;
}

.quick-action-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 16px;
    border-radius: 8px;
}

.quick-action-item:hover {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6c757d, #495057);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin: 0 auto 12px;
}

.quick-action-text {
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* Card common styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 24px;
}

.card-body {
    padding: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }

    .stat-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .card-header {
        padding: 16px 20px;
    }

    .card-body {
        padding: 20px;
    }

    .chart-placeholder {
        height: 200px;
    }

    .chart-icon {
        font-size: 36px;
    }

    .quick-action-icon {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .chart-tabs .btn {
        font-size: 12px;
        padding: 5px 12px;
    }

    .activity-item {
        padding: 12px 0;
    }

    .activity-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .activity-text {
        font-size: 13px;
    }
}

/* Scrollbar Styling */
.activity-list::-webkit-scrollbar {
    width: 4px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 2px;
}

.activity-list::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}


.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.card {
    border-radius: 12px;
}

.card-header {
    border-bottom: 1px solid rgba(0,0,0,.125);
    background-color: rgba(248,249,250,.8);
    border-radius: 12px 12px 0 0 !important;
}

.table-responsive {
    border-radius: 8px;
}

.btn {
    border-radius: 8px;
}

.badge {
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
}
