/* Base styles for a futuristic look */
body {
    font-size: 16px;
    padding: 20px;
    background-color: #1b1f24; /* Dark background */
    color: #e0e6ed; /* Light text color */
    font-family: 'Roboto', sans-serif; /* Futuristic font */
}

/* Gradient backgrounds */
.container {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons with purple, blue, and green accents */
.btn-primary {
    background-color: #7b5dfa;
    border-color: #7b5dfa;
    color: #fff;
}

.btn-success {
    background-color: #28c76f;
    border-color: #28c76f;
    color: #fff;
}

.btn-danger {
    background-color: #ea5455;
    border-color: #ea5455;
    color: #fff;
}

.btn-warning {
    background-color: #fbbc05;
    border-color: #fbbc05;
    color: #fff;
}

/* Hover effect for buttons */
.btn-primary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover {
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Table styling */
.table {
    background-color: #2c3e50;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #4ca1af;
}

.table tbody tr {
    background-color: #1b1f24;
}

/* Form inputs */
.form-control {
    background-color: #3a3f47;
    color: #e0e6ed;
    border: 1px solid #4ca1af;
}

.form-control::placeholder {
    color: #b0b7c3;
}

/* Form section spacing */
.form-section {
    margin-bottom: 20px;
}

/* Update flash messages */
.alert {
    background-color: #3a3f47;
    border-color: #7b5dfa;
    color: #e0e6ed;
}

/* Improve readability of list items */
.list-group-item {
    background-color: #2c3e50; /* Dark background */
    color: #e0e6ed; /* Light text */
    border: 1px solid #4ca1af; /* Light border */
    transition: background-color 0.3s ease;
}

/* Hover effect for list group items */
.list-group-item:hover {
    background-color: #34495e; /* Slightly lighter for hover */
    cursor: pointer;
}

/* Add a subtle glow effect to headings */
h1, h2, h3 {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Input fields and buttons on focus */
.form-control:focus {
    border-color: #7b5dfa;
    box-shadow: 0 0 10px rgba(123, 93, 250, 0.5);
}

.btn:focus {
    box-shadow: 0 0 10px rgba(123, 93, 250, 0.5);
}

/* List group buttons for better contrast */
.btn {
    color: #fff; /* White text for better contrast */
}

/* Larger font size and better spacing for mobile screens */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    .form-control, .btn {
        width: 100%; /* Make form inputs and buttons take full width on small screens */
        margin-bottom: 10px; /* Add spacing between form elements */
    }
}

/* Dark background for the overall calendar */
.fc {
    background-color: #2c2c2c; /* Dark background color */
    color: #f0f0f0; /* Light text color for contrast */
    border-radius: 8px;
    border: 1px solid #444;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Dark background for time slots */
.fc-timegrid-col-frame {
    background-color: #333; /* Slightly lighter dark color for the grid */
}

/* Darker header toolbar */
.fc-toolbar {
    background-color: #444;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
}

/* Adjust the style of buttons in the toolbar */
.fc-button {
    background-color: #555;
    color: white;
    border-radius: 5px;
    border: none;
    font-size: 0.9em;
}

.fc-button:hover {
    background-color: #666;
}

/* Style the calendar events for better visibility */
.fc-event {
    background-color: #ffcc00;
    border: 1px solid #d4a017;
    color: black;
    border-radius: 4px;
    padding: 2px;
}

/* Customize the time slots to have a slightly visible border */
.fc-timegrid-slot {
    border-top: 1px solid #555;
}

.fc-timegrid-slot-label {
    font-size: 0.8em;
    color: #ddd;
}

/* Adjust the calendar title for better visibility */
.fc-toolbar-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
}

.text-warning {
    color: #f0ad4e;
}
.text-success {
    color: #5cb85c;
}
.text-muted {
    color: #6c757d;
}

/* Override Bootstrap styles for log entry rows */
.table-success, .table-success td, .table-success .text-success {
    color: #333333 !important; /* Make green text black */
}
.table-warning, .table-warning td, .table-warning .text-warning {
    color: #333333 !important; /* Make yellow text black */
}
.table-secondary, .table-secondary td, .text-muted {
    color: #333333 !important; /* Make white/gray text black */
}

/* Smaller font and padding adjustments for small screens */
/* @media (max-width: 576px) {
    .table td, .table th {
        padding: 0.5rem;
        font-size: 0.875rem; /* Slightly smaller text */
    }
    .table-container {
        margin: 0 auto; /* Center table container */
    }
} */

/* Timeline styles with Bootstrap-like appearance */
.timeline-container {
    overflow-x: hidden;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    position: relative;
    width: 100%;
}

.timeline-row {
    display: flex;
    align-items: center;
    margin: 15px 0;
    padding: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
    width: 100%;
}

.medicine-label {
    width: 200px;
    min-width: 200px;
    padding: 5px 15px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.timeline {
    position: relative;
    height: 40px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
}

.timeline-bar {
    position: absolute;
    height: 30px;
    top: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.timeline-waiting {
    background-color: #ffc107;
    color: #212529;
}

.timeline-active {
    background-color: #28a745;
    color: #fff;
}

.timeline-axis {
    position: relative;
    height: 30px;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 20px;
    margin-left: 200px;
}

.timeline-tick {
    position: absolute;
    bottom: 0;
    height: 10px;
    border-left: 1px solid #dee2e6;
}

.timeline-tick-label {
    position: absolute;
    bottom: -25px;
    transform: translateX(-50%);
    font-size: 12px;
    color: #6c757d;
}

.now-indicator {
    position: absolute;
    top: -10px;
    bottom: -25px;
    width: 2px;
    background-color: #dc3545;
    z-index: 1000;
}

.now-indicator::after {
    content: 'Now';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

/* Make timeline container responsive */
@media (max-width: 768px) {
    .medicine-label {
        width: 120px;
        font-size: 12px;
    }
    
    .timeline-axis {
        margin-left: 120px;
    }
}
