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

:root {
    --primary-color: #002f34;
    --secondary-color: #23e5db;
    --accent-color: #ffce32;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --error-color: #dc3545;
    --success-color: #28a745;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

#stats-summary {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    font-size: 14px;
}

#stats-summary span {
    padding: 5px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

main {
    padding: 30px 0;
}

.section {
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), #004d4d);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: normal;
    opacity: 0.9;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-card .subtext {
    font-size: 12px;
    opacity: 0.7;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.listing-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: white;
}

.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.listing-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.listing-card .price {
    font-size: 20px;
    font-weight: bold;
    color: var(--success-color);
    margin-bottom: 10px;
}

.listing-card .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card .meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status.active {
    background-color: #d4edda;
    color: #155724;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.status.completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
}

.orders-table th,
.orders-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.orders-table th {
    background-color: var(--bg-color);
    font-weight: 600;
    color: var(--primary-color);
}

.orders-table tr:hover {
    background-color: rgba(35, 229, 219, 0.05);
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.error h3 {
    margin-bottom: 5px;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    opacity: 0.3;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 40px;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

#last-updated {
    opacity: 0.7;
}

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

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .orders-table {
        font-size: 14px;
    }

    .orders-table th,
    .orders-table td {
        padding: 8px;
    }
}