* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #4a3f3a;
    font-family: 'Arial', sans-serif;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    background: linear-gradient(135deg, #b8a39f 0%, #9d8f8a 100%);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #6b5b51;
}

.owner-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.owner-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #d4c4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b5b51;
}

.owner-details h3 {
    color: #2d2620;
    font-size: 16px;
}

.owner-details p {
    color: #6b5b51;
    font-size: 12px;
}

/* Grid Layout */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.card {
    background: #b8a39f;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    background: #b8a39f;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #6b5b51;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: normal;
}

.stat-card .value {
    color: #2d2620;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .change {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #4CAF50;
    font-size: 12px;
}

.arrow {
    color: #4CAF50;
    font-weight: bold;
}

/* Revenue Card */
.revenue-card {
    background: #b8a39f;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    grid-column: 1;
}

.revenue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.revenue-title h2 {
    color: #2d2620;
    font-size: 20px;
    margin-bottom: 5px;
}

.revenue-amount {
    color: #2d2620;
    font-size: 28px;
    font-weight: bold;
}

.revenue-stats {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
    color: #2d2620;
}

.revenue-stats p {
    margin: 5px 0;
}

.chart-container {
    position: relative;
    height: 250px;
    margin-top: 20px;
}

/* Payment Method Card */
.payment-card {
    grid-column: 2;
}

.payment-card h3 {
    color: #2d2620;
    font-size: 18px;
    margin-bottom: 15px;
}

.chart-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

/* Top Products */
.products-card {
    grid-column: 2;
}

.products-card h3 {
    color: #2d2620;
    font-size: 18px;
    margin-bottom: 15px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    background: rgba(0, 0, 0, 0.1);
    color: #2d2620;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Quantity in Stock */
.stock-card {
    grid-column: 1 / -1;
}

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

.stock-header h3 {
    color: #2d2620;
    font-size: 18px;
}

.controls {
    display: flex;
    gap: 10px;
}

.btn {
    background: #8b7570;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
}

.status-critical {
    color: #ff6b6b;
    font-weight: bold;
}

.status-low {
    color: #ffd93d;
    font-weight: bold;
}

.status-watch {
    color: #95e1d3;
    font-weight: bold;
}

.legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 12px;
    color: #6b5b51;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

@media (max-width: 1200px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .revenue-card,
    .payment-card,
    .products-card,
    .stock-card {
        grid-column: 1 !important;
    }

    .card-row {
        grid-template-columns: 1fr;
    }
}
