body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative; /* For FAB positioning relative to container if needed */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

#status-bar span {
    margin-left: 20px;
    font-size: 1.2em;
    font-weight: bold;
}

#chart-container {
    background-color: #2c2c2c;
    border-radius: 8px;
    height: 400px; /* SVG will fill this */
    margin-bottom: 20px;
    position: relative;
    overflow: hidden; /* For zoom/pan if implemented */
}

/* D3 Styles */
.line {
    fill: none;
    stroke-width: 2px;
}

.dose-marker {
    cursor: grab;
    fill: #fff;
    stroke: #000;
    stroke-width: 1px;
}

.dose-marker:active {
    cursor: grabbing;
}

.grid line {
    stroke: #444;
    stroke-opacity: 0.7;
    shape-rendering: crispEdges;
}

.grid path {
    stroke-width: 0;
}

/* Modal Styles */
dialog {
    background-color: #252525;
    color: #fff;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
}

#close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
}

#add-dose-form {
    display: flex;
    flex-direction: column; /* Stack vertically in modal */
    gap: 15px;
}

/* FAB Styles */
#fab-add {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0055ff;
    color: white;
    font-size: 2em;
    border: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#fab-add:hover {
    background-color: #0044cc;
    transform: scale(1.1);
}


input, select, button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: #333;
    color: #fff;
    font-size: 1em;
}

button[type="submit"] {
    background-color: #0055ff;
    cursor: pointer;
    transition: background-color 0.2s;
    border: none;
    width: 100%; /* Full width in modal */
}

button[type="submit"]:hover {
    background-color: #0044cc;
}

/* List Styles */
#active-doses ul {
    list-style: none;
    padding: 0;
}

#active-doses li {
    background-color: #2a2a2a;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#active-doses li button {
    background-color: #e2001a; /* Delete color */
    padding: 5px 10px;
    font-size: 0.8em;
}

/* Responsive */
@media (max-width: 768px) {
    /* Adjustments if needed */
}
