/* Dashboard Specific Styles */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

/* Empty State */
.empty-state {
    text-align: center;
    color: var(--secondary);
    padding: 2rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-group select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: white;
}

/* Chart Placeholder */
.chart-placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 0.5rem;
    color: var(--secondary);
}

/* Settings Form */
.settings-form {
    max-width: 500px;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.settings-form .form-group {
    margin-bottom: 1.5rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.settings-form input[type="text"],
.settings-form input[type="tel"],
.settings-form input[type="color"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.settings-form input[type="color"] {
    height: 50px;
    cursor: pointer;
}

/* Order List Item */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

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

.order-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.order-info p {
    font-size: 0.8rem;
    color: var(--secondary);
}

.order-total {
    font-weight: 600;
    color: var(--primary);
}

/* Product List Item */
.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

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

.product-thumb {
    width: 50px;
    height: 50px;
    background: var(--light);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-details {
    flex: 1;
}

.product-details h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.product-details p {
    font-size: 0.8rem;
    color: var(--secondary);
}

.product-sales {
    text-align: right;
}

.product-sales .number {
    font-weight: 600;
    color: var(--dark);
}

.product-sales .label {
    font-size: 0.75rem;
    color: var(--secondary);
}

/* Action Buttons */
.action-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.action-btn.edit {
    background: #dbeafe;
    color: #1e40af;
}

.action-btn.delete {
    background: #fee2e2;
    color: #991b1b;
}

.action-btn.view {
    background: #d1fae5;
    color: #065f46;
}

.action-btn:hover {
    opacity: 0.8;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

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