/* Dashboard Specific Styles */

/* Navigation Sections */
.admin-nav-section {
    margin-top: 24px;
}

.admin-nav-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    padding: 0 24px 8px;
    letter-spacing: 0.5px;
}

/* Sidebar Footer */
.admin-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.admin-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--admin-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.admin-user-details {
    flex: 1;
}

.admin-user-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.admin-user-role {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Header Enhancements */
.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-left h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-header-btn {
    position: relative;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--admin-text);
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-header-btn:hover {
    background: var(--admin-bg-light);
    color: var(--admin-primary);
}

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: var(--admin-danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0 0 8px 0;
}

.welcome-section p {
    font-size: 16px;
    color: var(--admin-text-light);
    margin: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--admin-text-light);
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--admin-text);
    margin: 0 0 8px 0;
}

.stat-change {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-change.positive {
    color: var(--admin-success);
}

.stat-change.negative {
    color: var(--admin-danger);
}

.text-muted {
    color: var(--admin-text-light);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--admin-text);
    margin: 0;
}

.btn-link {
    color: var(--admin-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--admin-primary-dark);
    text-decoration: underline;
}

.card-body {
    padding: 24px;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--admin-text-light);
}

.loading-spinner i {
    font-size: 32px;
    margin-bottom: 16px;
}

.loading-spinner p {
    margin: 0;
    font-size: 14px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--admin-bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--admin-text);
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-btn:hover {
    background: var(--admin-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.3);
}

.quick-action-btn i {
    font-size: 32px;
}

.quick-action-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* Recent Orders */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--admin-border);
}

.order-item:last-child {
    border-bottom: none;
}

.order-info {
    flex: 1;
}

.order-number {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.order-customer {
    font-size: 14px;
    color: var(--admin-text-light);
}

.order-meta {
    text-align: right;
}

.order-amount {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 4px;
}

.order-status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: inline-block;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.1);
    color: var(--admin-warning);
}

.order-status.completed {
    background: rgba(40, 167, 69, 0.1);
    color: var(--admin-success);
}

.order-status.processing {
    background: rgba(23, 162, 184, 0.1);
    color: var(--admin-info);
}

/* Low Stock Items */
.stock-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--admin-border);
}

.stock-item:last-child {
    border-bottom: none;
}

.stock-item-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--admin-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stock-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.stock-item-info {
    flex: 1;
}

.stock-item-name {
    font-weight: 500;
    color: var(--admin-text);
    margin-bottom: 4px;
    font-size: 14px;
}

.stock-item-sku {
    font-size: 12px;
    color: var(--admin-text-light);
}

.stock-item-quantity {
    text-align: right;
}

.stock-quantity {
    font-weight: 600;
    font-size: 16px;
    color: var(--admin-danger);
}

.stock-label {
    font-size: 12px;
    color: var(--admin-text-light);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--admin-text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin: 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .admin-sidebar-footer {
        position: static;
        margin-top: auto;
    }
}