:root {
    --safe-color: #4CAF50;
    --warning-color: #FFC107;
    --danger-color: #dc3545;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.add-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 120px;
    font-weight: 500;
}

input[type="text"],
input[type="number"] {
    padding: 8px 12px;
    width: 250px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

button[type="submit"] {
    background: #007bff;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #0056b3;
}

.medicine-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.medicine-table th,
.medicine-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.medicine-table th {
    background: #2c3e50;
    color: white;
}

.progress-bar {
    width: 200px;
    height: 20px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.delete-btn {
    background: var(--danger-color);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.delete-btn:hover {
    opacity: 0.8;
}

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.low-stock {
    background: #fff3cd;
}

.critical-stock {
    background: #ea5455;
}