/* Reset and base styles */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f2f2f2; /* Soft grey background */
    color: #333;
}

/* Typography enhancements */
h1, h2, h3, p {
    margin: 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #007bff; /* Primary color for headings */
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

/* Responsive container */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

/* Card styles */
.card {
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
    transition: transform 0.3s ease; /* Animation for card hover */
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

/* Navbar styling */
.navbar {
    background-color: #007bff;
}

.navbar-brand {
    font-weight: bold;
}

/* Alert styling */
.alert {
    border-radius: 5px;
    background-color: #ff6f61;
    color: #fff;
    padding: 15px;
    animation: bounceIn 0.5s ease forwards;
}

/* Form and button styling */
.form-group {
    margin-bottom: 15px;
}

input[type="text"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s; /* Smooth transition for focus */
}

input::placeholder {
    color: #aaa;
}

input:focus, select:focus, textarea:focus {
    border-color: #007bff; /* Highlight on focus */
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    outline: none;
}

.btn {
    border-radius: 4px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.btn:hover {
    opacity: 0.9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px); /* Slight lift effect */
    animation: pulse 0.5s; /* Pulse effect on hover */
}

/* Footer styling */
.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 20px 0;
    background-color: #007bff; /* Match the navbar color */
    color: #ffffff; /* Light text color */
}

/* List group styling */
.list-group-item {
    border: none; /* Remove border for cleaner look */
}

.list-group-item a {
    color: #007bff; /* Match link color with primary color */
    text-decoration: none; /* Remove underline from links */
    transition: color 0.3s ease; /* Smooth transition for links */
}

.list-group-item a:hover {
    text-decoration: underline; /* Underline on hover for better UX */
}

/* Custom styles for better mobile responsiveness */
.table-responsive {
    overflow-x: auto;
}

.table th, .table td {
    white-space: nowrap; /* Prevent table cell content from wrapping */
}

.overtime-row {
    background-color: #ffdddd; /* Light red for overtime shifts */
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* Adjust heading size for smaller screens */
    }

    .container {
        padding: 10px; /* Reduce padding for smaller devices */
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.75rem; /* Further adjust heading size for very small screens */
    }

    .container {
        padding: 5px; /* Reduce padding for extra-small devices */
    }
}

@media (max-width: 2048px) {
    .navbar .navbar-brand {
        font-size: 1.25rem;
    }

    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    .table th, .table td {
        font-size: 0.875rem;
    }

    .table thead {
        display: none; /* Hide table headers on mobile */
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
    }

    .table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem;
        border: none;
        font-size: 0.875rem;
    }

    .table tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
        flex-shrink: 0;
    }

    .table tbody td a.btn {
        margin-top: 0.5rem;
    }
}

/* Bounce effect for alerts */
@keyframes bounceIn {
    0% {
        transform: scale(0.95);
        opacity: 0;
    }
    80% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Pulse effect for buttons on hover */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth transition effects for links */
a {
    color: #0056b3;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    text-shadow: 1px 1px 5px rgba(0, 86, 179, 0.3); /* Add a subtle shadow effect on hover */
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Shift details row styling excluding overtime rows */
.table tbody tr:not(.overtime-row) {
    background-color: #ffffff; /* White background for non-overtime shift details rows */
}
        /* Add the following CSS to styles.css or within the <style> tag here */
        html, body {
            height: 100%; /* Full height for body */
            margin: 0; /* Remove default margin */
        }

        body {
            display: flex; /* Enable flexbox */
            flex-direction: column; /* Stack children vertically */
        }

        .container {
            flex: 1; /* Allow the container to grow and take available space */
            display: flex; /* Enable flexbox within container */
            flex-direction: column; /* Stack content vertically */
            justify-content: center; /* Center content vertically */
        }

        .footer {
            margin-top: auto; /* Push footer to the bottom */
        }
/* Loading Spinner Styles */
.loader {
    display: none; /* Hidden by default */
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999; /* Ensure it appears above other elements */
}

.loader .spinner {
    width: 50px;
    height: 50px;
    border: 8px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: #007bff; /* Primary color for the spinner */
    animation: spin 1s linear infinite;
}

/* Spinner Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.incident-card-c1 {
    border: 5px solid purple; /* AMPDS color for category 1 */
    background-color: #d1a3e7; /* Lighter purple */
    color: black; /* Ensure black text */
}

.incident-card-c2 {
    border: 5px solid red; /* AMPDS color for category 2 */
    background-color: #f28e8e; /* Lighter red */
    color: black; /* Ensure black text */
}

.incident-card-c3 {
    border: 5px solid #FFBF00; /* Amber color for category 3 */
    background-color: #ffd966; /* Lighter amber */
    color: black; /* Ensure black text */
}

.incident-card-c4 {
    border: 5px solid green; /* AMPDS color for category 4 */
    background-color: #a8d08d; /* Lighter green */
    color: black; /* Ensure black text */
}

.incident-card-c5 {
    border: 5px solid darkgreen; /* Dark green for category 5 */
    background-color: #6aa84f; /* Darker green for background */
    color: black; /* Ensure black text */
}

.incident-card-hcp {
    border: 5px solid lightblue; /* Light blue for HCP */
    background-color: #a4c2f4; /* Lighter blue */
    color: black; /* Ensure black text */
}

.incident-card-running-call {
    border: 5px solid red; /* AMPDS color for running call */
    background-color: #f28e8e; /* Lighter red */
    color: black; /* Ensure black text */
}

/* Smooth transitions for adding/removing incidents */
.incident-item {
    transition: all 0.3s ease-in-out;
}

.remove-incident:hover {
    background-color: #dc3545;
    color: white;
    cursor: pointer;
}

#add-incident:hover {
    background-color: #28a745;
    color: white;
    cursor: pointer;
}