body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container {
    max-width: 1200px;
}

.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: none;
    margin-bottom: 20px;
}

h1 {
    color: #343a40;
    font-weight: 600;
}

h4 {
    color: #495057;
    font-weight: 500;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

label {
    font-weight: 500;
    margin-top: 8px;
    color: #495057;
}

.btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 15px;
    font-weight: 500;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
}

.btn-danger:hover {
    background-color: #c82333;
}

#promil-display {
    font-size: 3rem;
    font-weight: bold;
    color: #fff;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Animation for new drink added */
.pop-effect {
    animation: pop 0.3s ease-in-out;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Change promil display color based on value */
.safe {
    background-color: #28a745;
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.danger {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

canvas {
    margin-top: 20px;
}

/* Table styling */
.table {
    margin-bottom: 0;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 123, 255, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.no-drinks-row td {
    padding: 20px;
    font-style: italic;
    color: #6c757d;
}

.drink-row td {
    vertical-align: middle;
}

.remove-drink {
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .container {
        padding: 10px;
    }
    
    #promil-display {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .table-responsive {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* Threshold indicator on chart */
.threshold-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.threshold-label {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    transform: translateY(-50%);
    z-index: 2;
}