* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    min-height: 100vh;
    color: #333;
    padding: 10px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #5a67d8, #667eea);
    color: white;
    text-align: center;
    padding: 20px;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.main-content {
    padding: 20px;
}

.section {
    margin-bottom: 25px;
}

.section h2 {
    color: #5a67d8;
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.form-table td {
    padding: 8px;
    vertical-align: middle;
}

.form-table td:first-child {
    font-weight: 600;
    color: #4a5568;
    width: 140px;
    text-align: right;
    padding-right: 15px;
}

.form-table input,
.form-table select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
}

.form-table input:focus,
.form-table select:focus {
    outline: none;
    border-color: #5a67d8;
    box-shadow: 0 0 0 2px rgba(90, 103, 216, 0.1);
}

.gender-options {
    display: flex;
    gap: 15px;
}

.gender-option input[type="radio"] {
    margin-right: 5px;
}

.time-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.time-inputs input {
    width: 60px;
}

.drinks-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.drinks-table th {
    background: #f7fafc;
    padding: 8px;
    text-align: center;
    font-weight: 600;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    font-size: 14px;
}

.drinks-table td {
    padding: 6px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.drinks-table input {
    width: 60px;
    text-align: center;
}

.drinks-table select {
    width: 100%;
    font-size: 12px;
}

.drink-type-cell {
    background: #f7fafc;
    font-weight: 600;
    color: #5a67d8;
    text-align: left !important;
    padding-left: 10px;
}

.calculate-btn {
    background: #5a67d8;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin: 20px auto;
    transition: background-color 0.3s ease;
}

.calculate-btn:hover {
    background: #4c51bf;
}

.results {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
}

.bac-display {
    margin-bottom: 20px;
}

.bac-value {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.bac-status {
    font-size: 1.2rem;
    font-weight: 600;
}

.status-safe {
    color: #38a169;
}

.status-caution {
    color: #d69e2e;
}

.status-danger {
    color: #e53e3e;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.result-item {
    background: white;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #5a67d8;
}

.result-item h4 {
    color: #5a67d8;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.result-item .value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2d3748;
}

.disclaimer {
    background: #fed7e2;
    border: 1px solid #f56565;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.85rem;
}

.disclaimer h3 {
    color: #e53e3e;
    margin-bottom: 10px;
    font-size: 1rem;
}

.disclaimer ul {
    list-style-position: inside;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .form-table td:first-child {
        width: 100px;
        font-size: 12px;
    }

    .drinks-table th,
    .drinks-table td {
        padding: 4px;
        font-size: 11px;
    }

    .drinks-table input {
        width: 45px;
    }

    .bac-value {
        font-size: 2.5rem;
    }
}