:root {
    --primary: #007bff;
    --secondary: #6c757d;
    --success: #28a745;
    --dark: #1a1a1a;
    --light: #f8f9fa;
    --glass: rgba(255, 255, 255, 0.9);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: #eef2f7;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
}

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

/* Header & Stats */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

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

.stat-card {
    background: var(--glass);
    padding: 20px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--secondary);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

/* Input Form */
.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    font-size: 0.9rem;
}

input, select {
    padding: 12px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn-add:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-add:active {
    transform: translateY(0);
}

/* Table */
.table-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #fcfcfc;
    text-align: left;
    padding: 15px 20px;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 2px solid #f1f1f1;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f1f1;
}

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

.type-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e7f3ff;
    color: var(--primary);
}

.price-text {
    font-weight: 700;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}
