/* General body styling */
body {
    font-family: 'Inter', Arial, sans-serif; /* Using Inter font for modern look */
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6; /* Light background */
    color: #333;
    line-height: 1.6;
    
}

/* Headings */
h1 {
    text-align: center;
    color: #2c3e50; /* Darker blue-grey */
    margin-bottom: 30px;
    font-size: 2.5em;
    font-weight: 600;
}

h2 {
    color: #34495e; /* Slightly lighter blue-grey */
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-bottom: 2px solid #bdc3c7; /* Subtle underline */
    padding-bottom: 5px;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: separate; /* Use separate to allow border-radius on cells */
    border-spacing: 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
    border-radius: 10px; /* Rounded corners for the table */
    overflow: hidden; /* Ensures content respects border-radius */
}

/* Table header cells */
th {
    background-color: #3498db; /* Blue header background */
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #2980b9; /* Darker blue border */
}

/* Table data cells */
td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1; /* Light grey bottom border */
    border-right: 1px solid #ecf0f1; /* Light grey right border */
}

/* Remove right border from last column */
td:last-child, th:last-child {
    border-right: none;
}

/* Zebra striping for rows */
tbody tr:nth-child(even) {
    background-color: #f8fbfd; /* Very light blue for even rows */
}

/* Hover effect on rows */
tbody tr:hover {
    background-color: #e8f4f8; /* Lighter blue on hover */
    transition: background-color 0.3s ease;
}

/* Border radius for first and last cells in header and body */
table thead tr th:first-child {
    border-top-left-radius: 10px;
}

table thead tr th:last-child {
    border-top-right-radius: 10px;
}

table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

/* Link styling */
a {
    display: block; 
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #2ecc71; /* Green button */
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
    text-align: center; 
    color: #3498db; 
}

a:hover {
    background-color: #27ae60; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    text-decoration: underline;
}

a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.5em;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 10px;
        overflow: hidden;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
    /* Label the data cells with their header */
    td:nth-of-type(1):before { content: "Departure:"; }
    td:nth-of-type(2):before { content: "Arrival:"; }
}
/* Styles for the main modal container */
#confirmModal {
    display: none; /* Hidden by default, shown with JavaScript */
    position: fixed; /* Stays in place relative to the viewport */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1000; /* Ensures it's on top of other content */
    justify-content: center; /* Centers content horizontally (requires display: flex) */
    align-items: center; /* Centers content vertically (requires display: flex) */
}

/* Styles for the modal content box */
#confirmModal > div { /* Targets the direct child div of #confirmModal */
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Adds a shadow for depth */
}

 }
.delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #dc3545; /* Red color for the icon */
    font-size: 1.2em; /* Make emoji/text larger */
    transition: color 0.2s ease;
}
.delete-btn:hover {
    color: #c82333; /* Darker red on hover */
}
.filter-container {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e9ecef; /* Light grey background */
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between label and input */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.filter-container label {
    font-weight: bold;
    color: #343a40;
}

.filter-container input[type="text"] {
    flex-grow: 1; /* Allows input to take available space */
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1em;
    max-width: 300px; /* Limit max width for input */
}

.filter-container input[type="text"]::placeholder {
    color: #6c757d;
}

/* Styles for the "Yes, Delete" button */
#confirmYes {
    background-color: #dc3545; /* Red color for delete action */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer; /* Indicates it's clickable */
}

/* Styles for the "Cancel" button */
#confirmNo {
    background-color: #6c757d; /* Grey color for cancel action */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
}
select {
    padding: 0.5rem;
    margin: 0.5rem;
    font-size: 1rem;
}
form { display: flex; flex-direction: column; gap: 15px; }
button { background-color: #3498db; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; font-size: 1.1em; transition: background-color 0.3s ease; }
button:hover { background-color: #2980b9; }
.status-message { margin-top: 25px; padding: 15px; border-radius: 8px; font-weight: bold; text-align: center; }
.status-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.status-warning { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }label { font-weight: bold; color: #34495e; }
