/* Dashboard-specific styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f6f9;
}

/* Header */
.header {
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Metric Cards */
.metric-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
}

    .metric-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    }

    .metric-card h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1f2937;
    }

    .metric-card p {
        font-size: 1.8rem;
        font-weight: bold;
        color: #111827;
    }

/* Tables */
.table-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

    .table-container table {
        width: 100%;
        border-collapse: collapse;
    }

    .table-container th,
    .table-container td {
        padding: 0.75rem;
        text-align: left;
        font-size: 0.9rem;
    }

    .table-container th {
        background: #e5e7eb;
        font-weight: 600;
        color: #374151;
    }

    .table-container tr {
        transition: background 0.2s ease;
    }

        .table-container tr:hover {
            background: #f9fafb;
        }

.status-open {
    color: #eab308;
}

.status-kot-printed {
    color: #3b82f6;
}

.status-billed {
    color: #f97316;
}

.status-paid {
    color: #22c55e;
}

.status-cancelled {
    color: #ef4444;
}

.status-new {
    color: #dc2626;
}

.status-prepared {
    color: #10b981;
}

.status-served {
    color: #4b5563;
}

/* Buttons */
.btn {
    transition: background 0.3s ease, transform 0.2s ease;
}

    .btn:hover {
        transform: scale(1.05);
    }

.btn-primary {
    background: #2563eb;
    color: white;
}

    .btn-primary:hover {
        background: #1e40af;
    }

/* Charts */
canvas {
    max-height: 200px;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Alerts */
.alert {
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .metric-card {
        padding: 0.75rem;
    }

        .metric-card p {
            font-size: 1.5rem;
        }

    .table-container th,
    .table-container td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}
/* dashboard.css */

/* Smooth card hover */
.metric-card,
.table-container,
.alert {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .metric-card:hover,
    .table-container:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    }

    /* Scrollbar Styling */
    .table-container::-webkit-scrollbar {
        width: 6px;
    }

    .table-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    .table-container::-webkit-scrollbar-track {
        background: transparent;
    }

/* Table basics */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

    table th,
    table td {
        padding: 0.5rem 0.75rem;
        text-align: left;
    }

    table thead {
        background-color: #f9fafb;
        font-weight: 600;
        color: #374151;
    }

    table tbody tr:hover {
        background-color: #f3f4f6;
    }

/* Status Badges */
.status-open,
.status-new {
    background: #fef3c7;
    color: #b45309;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-paid {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-billed {
    background: #e0e7ff;
    color: #3730a3;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Alert Box */
.alert {
    border-radius: 0.75rem;
    font-size: 0.9rem;
}
