﻿/* === General Reset === */
body,
html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    height: 100%;
    overflow: hidden;
    background-color: #F5F5F5;
    /* Light Grayish-White */
}

/* === Login Page === */
.login-bg {
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.75), rgba(250, 204, 21, 0.75));
    /* Bright Yellow to Lighter Yellow with increased transparency */
    padding: 3rem 2.5rem;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
    width: 370px;
    animation: fadeInZoom 0.5s ease;
}

@keyframes fadeInZoom {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-container .logo {
    width: 150px;
    margin-bottom: 1.5rem;
}

.login-container input {
    width: 77%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 2px solid #FBBF24;
    /* Bright Yellow */
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    background-color: rgba(255, 255, 255, 0.9);
    /* White with opacity */
    color: #003A6C;
    /* Ateneo Blue */
}

.login-container button {
    width: 86%;
    padding: 1rem;
    background: #003A6C;
    /* Ateneo Blue */
    color: #FFFFFF;
    /* White text */
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    /* Bold text */
    cursor: pointer;
    transition: background 0.3s;
}

.login-container button:hover {
    background: #0066CC;
    /* Lighter Ateneo Blue for hover */
}

.login-container a {
    color: #0066CC;
    /* Lighter Ateneo Blue */
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

/* === Sidebar === */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.sidebar-profile-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #0066CC;
    /* Lighter Ateneo Blue */
}

.sidebar-username,
.sidebar-email {
    color: #F5F5F5;
    /* Light Grayish-White */
    font-size: 0.9rem;
    margin: 0.2rem 0;
    text-align: center;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -240px;
    width: 220px;
    height: 100%;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overflow-x: hidden;
}

/* === Sidebar Scrollbar Styling === */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.35));
}

/* Firefox scrollbar styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.4) rgba(0, 0, 0, 0.2);
}

.sidebar.active {
    left: 0;
}

.sidebar-logo {
    width: 100px;
    margin-bottom: 2rem;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    /* White with opacity */
    cursor: pointer;
    text-align: left;
    transition: background 0.3s;
    padding-left: 2rem;
}

.sidebar ul li:hover {
    background: rgba(255, 255, 255, 0.1);
    /* White with opacity */
}

/* === Toggle Button === */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    z-index: 1100;
}

/* === Content === */
.dashboard {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.content {
    flex: 1;
    margin-left: 0;
    padding: 2rem;
    transition: margin-left 0.3s ease;
    overflow-y: auto;
    width: 100%;
    background: #F3F4F6;
    /* Light Gray */
}

/* === Tabs === */
.tab {
    display: none;
}

.tab.active {
    display: block;
    height: 100%;
    /* Ensure tab takes full height */
}

/* === Live Map Specific === */
.live-map-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.map-container {
    flex: 1;
    display: flex;
    gap: 20px;
    min-height: 0;
    /* Critical for flex child scrolling */
}

/* === Unified Header Styling for All Tabs === */
.tab header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-left: 40px;
}

.tab header .title-container {
    display: flex;
    align-items: center;
}

.tab header i {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.tab header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.tab header p {
    margin: 0.5rem 0 0 0;
    font-size: 1rem;
    color: #003A6C;
    /* Ateneo Blue */
}

/* === Cards and Tables === */
.balance-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin: 1.5rem 0;
    padding: 0 1rem;
}

.balance-card {
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    padding: 1.5rem;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    width: 100%;
    /* Ensure it respects the max-width */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Clip any overflow */
    display: flex;
    flex-direction: column;
}

.balance-card .label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.balance-card h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.chart-card {
    background: #F3F4F6;
    /* Light Gray */
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    flex: 2;
    min-width: 300px;
    width: 100%;
    max-height: none;
}

.notifications-card {
    background: #F3F4F6;
    /* Light Gray */
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    max-height: none;
}

.chart-card canvas {
    width: 100% !important;
    height: 25vw !important;
    max-height: 400px;
    min-height: 200px;
}

.chart-card h4,
.notifications-card h4 {
    margin: 0 0 1rem;
    color: #003A6C;
    /* Ateneo Blue */
}

/* === Recent Activity Subtitle === */
.activity-subtitle {
    font-size: 0.8rem;
    color: #666;
    /* Medium gray for subtitle text */
    margin-top: 0.25rem;
    font-style: italic;
    /* Optional: makes subtitle distinct */
}

/* === Notification Items === */
.notification-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #D1D5DB;
    /* Medium Gray */
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    color: #003A6C;
    /* Ateneo Blue */
}

/* === Table Header === */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-left: 40px;
}

.table-title-section h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.table-title-section p {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.table-actions select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #003A6C;
    /* Ateneo Blue */
    font-size: 0.9rem;
    background: #F3F4F6;
    /* Light Gray */
    color: #003A6C;
    /* Ateneo Blue */
}

/* === Add Button === */
.add-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s;
}

.add-btn:hover {
    opacity: 0.9;
}

.add-btn i {
    font-size: 0.9rem;
}

/* === Bulk Upload Button === */
.bulk-btn {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
    /* Orange for bulk */
}

.bulk-btn:hover {
    opacity: 0.9;
}

/* === Table === */
table {
    width: 100%;
    border-collapse: collapse;
    background: #F3F4F6;
    /* Light Gray */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    table-layout: fixed;
}

thead {
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
}

td,
th {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #D1D5DB;
    /* Medium Gray */
    white-space: normal;
    word-wrap: break-word;
}

tbody tr:hover {
    background: rgba(0, 58, 108, 0.1);
    /* Ateneo Blue with opacity */
}

/* === Modal === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background: #F3F4F6;
    /* Light Gray */
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 320px;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    font-weight: bold;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #003A6C;
}

.modal-content input {
    width: 90%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #003A6C;
    /* Ateneo Blue */
    border-radius: 8px;
    background-color: #fff;
    color: #003A6C;
    /* Ateneo Blue */
}

.modal-content button {
    padding: 0.6rem 1.2rem;
    margin: 0.3rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
}

.modal-content button:last-child {
    background: linear-gradient(135deg, #D1D5DB, #D1D5DB);
    /* Medium Gray */
    color: black;
}

/* === Bulk Upload Modal === */
.bulk-upload-modal {
    width: 400px;
    text-align: center;
}

#bulk-file {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #003A6C;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

/* === Add Form Modal === */
.add-form-modal {
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #003A6C;
}

.modal-header h3 {
    margin: 0;
    color: #003A6C;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: #003A6C;
    font-weight: bold;
    line-height: 1;
}

.close-modal:hover {
    color: #0066CC;
}

/* === Form Sections === */
.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    margin: 0 0 1.5rem 0;
    color: #003A6C;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #D1D5DB;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h4 {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.add-student-btn,
.add-driver-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-student-btn:hover,
.add-driver-btn:hover {
    opacity: 0.9;
}

/* === Form Rows and Groups === */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    color: #003A6C;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #003A6C;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: #003A6C;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #0066CC;
    box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}

/* === Student/Driver Forms === */
.student-form,
.driver-form {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #D1D5DB;
}

.student-header,
.driver-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #D1D5DB;
}

.student-header h5,
.driver-header h5 {
    margin: 0;
    color: #003A6C;
    font-size: 1.1rem;
}

.remove-student-btn,
.remove-driver-btn {
    padding: 6px 10px;
    background: #d9534f;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.remove-student-btn:hover,
.remove-driver-btn:hover {
    background: #c9302c;
}

/* === Modal Actions === */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #D1D5DB;
}

.cancel-btn {
    padding: 0.75rem 1.5rem;
    background: #D1D5DB;
    color: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.cancel-btn:hover {
    background: #c3c9d0;
}

.submit-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    color: #F5F5F5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover {
    opacity: 0.9;
}

.submit-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    opacity: 0.7;
}

/* === Modal Confirm === */
.modal-confirm {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.modal-confirm-content {
    background: #F3F4F6;
    /* Light Gray */
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 400px;
}

.modal-confirm-content h3 {
    margin: 0 0 1rem 0;
    color: #003A6C;
}

.modal-confirm-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.modal-confirm-content button {
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.confirm-action {
    background: #d9534f;
    color: white;
}

.cancel-action {
    background: #D1D5DB;
    color: #333;
}

/* === Password Toggle === */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.toggle-password:hover {
    color: #0066CC;
    /* Lighter Ateneo Blue */
}

.form-group .password-wrapper .toggle-password {
    top: 65%;
    transform: translateY(-50%);
}

.login-container .password-wrapper .toggle-password {
    right: 45px;
    /* Adjusted to align within login input field */
    top: 35%;
    /* Adjusted to vertically center in login input */
}

/* === Profile Tab === */
#profile header h2 {
    font-size: 1.5rem;
    color: #003A6C;
    /* Ateneo Blue */
    margin-left: 40px;
    margin-top: 2px;
    margin-bottom: 1.5rem;
}

.profile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-card {
    background: #F3F4F6;
    /* Light Gray */
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.profile-card h3 {
    margin: 0 0 1rem;
    color: #003A6C;
    /* Ateneo Blue */
    font-size: 1.2rem;
}

.profile-card .info-row p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #003A6C;
    /* Ateneo Blue */
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-form label {
    font-size: 0.9rem;
    color: #003A6C;
    /* Ateneo Blue */
    font-weight: 500;
}

.profile-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #003A6C;
    /* Ateneo Blue */
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    box-sizing: border-box;
    color: #003A6C;
    /* Ateneo Blue */
}

.profile-form .password-wrapper .toggle-password {
    right: 10px;
    top: 65%;
    transform: translateY(-50%);
}

.profile-button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.profile-button:hover {
    opacity: 0.9;
}

.profile-button:disabled {
    background: linear-gradient(135deg, #D1D5DB, #D1D5DB);
    /* Medium Gray */
    cursor: not-allowed;
    opacity: 0.7;
}

/* === Profile Picture === */
.profile-picture-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-picture-upload {
    margin-top: 0.5rem;
}

.profile-picture-upload button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

#profile-picture-error {
    text-align: center;
    color: #d9534f;
    /* Unchanged: Error text */
}

/* === Search Bar & Table Actions === */
.search-container {
    position: relative;
    width: 320px;
    max-width: 100%;
    margin-bottom: 1rem;
}

.search-container input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    font-size: 15px;
    border: 1px solid #003A6C;
    /* Ateneo Blue */
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    /* Ateneo Blue */
}

.users-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 10px;
}

.add-user-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue to Lighter Blue */
    color: #F5F5F5;
    /* Light Grayish-White */
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.add-user-btn:hover {
    opacity: 0.9;
}

/* === Status Badges === */
.status-badge {
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

.badge-pending {
    background: #f0ad4e;
}

.badge-released {
    background: #5cb85c;
}

.badge-denied {
    background: #d9534f;
}

.badge-liquidated {
    background: #5cb85c;
}

.badge-active {
    background: #5cb85c;
}

.badge-inactive {
    background: #d9534f;
}

.badge-maintenance {
    background: #f0ad4e;
}

/* === Toast Notification === */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Background is set by JS */
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Display/Animation handled by JS classes */
    z-index: 3000;
    font-size: 1rem;
    opacity: 0;
    /* Starte hidden for fade in */
}

.toast.fadeInOut {
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* === Delete Icon Button === */
.delete-icon-btn {
    background: none;
    border: none;
    padding: 5px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.delete-icon-btn i.fas.fa-trash-alt {
    color: #d9534f;
    /* Unchanged: Red */
    font-size: 14px;
}

.delete-icon-btn:hover i.fas.fa-trash-alt {
    color: #003A6C;
    /* Ateneo Blue */
}

/* === Action Buttons === */
.action-btn {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
}

.track-btn {
    background: linear-gradient(135deg, #337ab7, #286090);
}

/* === Ellipsis Dropdown === */
.actions-dropdown {
    position: relative;
    display: inline-block;
}

.ellipsis-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    font-size: 1rem;
}

.ellipsis-btn:hover {
    color: #003A6C;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    min-width: 120px;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: #333;
    font-size: 0.9rem;
}

.dropdown-item i {
    margin-right: 8px;
    width: 12px;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

.dropdown-item.delete {
    color: #d9534f;
    border-top: 1px solid #eee;
}

.dropdown-item.delete:hover {
    background: #f8d7da;
}

/* === Shuttles Tab Specific Styles === */
#shuttles .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#shuttles .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
    /* Further extended width for better visibility */
}

#shuttles .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Registration Tab Specific Styles === */
#registration .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#registration .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
}

#registration .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Students Tab Specific Styles === */
#students .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#students .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
    /* Extended width for better visibility */
}

#students .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Students Tab Contact Column Icons === */
#students td i.fa-phone,
#students td i.fa-envelope {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

#students td small {
    color: #666;
    font-size: 0.85rem;
}

/* === Students Table Column Widths === */
#students table th:nth-child(1),
#students table td:nth-child(1) {
    /* Student */
    width: 20%;
    max-width: 200px;
}

#students table th:nth-child(2),
#students table td:nth-child(2) {
    /* Parent/Guardian */
    width: 15%;
    max-width: 150px;
}

#students table th:nth-child(3),
#students table td:nth-child(3) {
    /* Contact */
    width: 25%;
    max-width: 250px;
}

#students table th:nth-child(4),
#students table td:nth-child(4) {
    /* Assigned Shuttle */
    width: 15%;
    max-width: 150px;
}

#students table th:nth-child(5),
#students table td:nth-child(5) {
    /* Status */
    width: 10%;
    max-width: 100px;
}

#students table th:nth-child(6),
#students table td:nth-child(6) {
    /* Check-in Time */
    width: 10%;
    max-width: 100px;
}

#students table th:nth-child(7),
#students table td:nth-child(7) {
    /* Current Location */
    width: 15%;
    max-width: 150px;
}

#students table th:nth-child(8),
#students table td:nth-child(8) {
    /* Actions */
    width: 10%;
    max-width: 100px;
}

/* === Status Badges for Students Tab === */
.badge-checked-in {
    background: #5cb85c;
    /* Green for Checked in */
}

.badge-checked-out {
    background: #f0ad4e;
    /* Orange for Checked out */
}

.badge-not-boarded {
    background: #d9534f;
    /* Red for Not boarded */
}

/* === Notifications Tab Specific Styles === */
#notifications .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#notifications .table-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #003A6C;
}

#notifications .table-header .table-actions {
    display: flex;
    gap: 10px;
}

#notifications .table-header .action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

#notifications .table-header .action-btn:nth-child(2) {
    background: linear-gradient(135deg, #d9534f, #c9302c);
}

/* === Check-In Tab Specific Styles === */
#checkin .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#checkin .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
}

#checkin .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Notifications Tab Specific Styles === */
#notifications .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#notifications .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
}

#notifications .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

#notifications table th:nth-child(1),
#notifications table td:nth-child(1) {
    /* Notification Message */
    width: 60%;
    max-width: 600px;
}

#notifications table th:nth-child(2),
#notifications table td:nth-child(2) {
    /* Timestamp */
    width: 30%;
    max-width: 300px;
}

#notifications table th:nth-child(3),
#notifications table td:nth-child(3) {
    /* Status */
    width: 10%;
    max-width: 100px;
}

/* === Status Badges for Notifications Tab === */
.badge-unread {
    background: #d9534f;
    /* Red for Unread */
}

.badge-read {
    background: #5cb85c;
    /* Green for Read */
}

/* === Live Map Tracking Tab Specific Styles === */
#live-map .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#live-map .table-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #003A6C;
}

#live-map .table-header .table-actions {
    display: flex;
    gap: 10px;
}

#live-map .table-header .action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
}

#live-map .table-header .action-btn:nth-child(2) {
    background: linear-gradient(135deg, #337ab7, #286090);
    /* Layers */
}

#live-map .table-header .action-btn:nth-child(3) {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
    /* Zoom In */
}

#live-map .table-header .action-btn:nth-child(4) {
    background: linear-gradient(135deg, #f0ad4e, #ec971f);
    /* Zoom Out */
}

#live-map .table-header .action-btn:nth-child(5) {
    background: linear-gradient(135deg, #d9534f, #c9302c);
    /* Full Screen */
}

#live-map .map-container {
    padding-left: 40px;
    padding-right: 40px;
}

/* Flex wrapper for live-map tab to fill viewport */
.live-map-wrapper {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 4rem);
}

#live-map .active-shuttles h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #003A6C;
}

#live-map .active-shuttles p {
    margin: 0.5rem 0 1rem 0;
    font-size: 0.9rem;
    color: #003A6C;
}

#live-map .shuttle-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

#live-map .shuttle-item p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

#live-map .shuttle-item .action-btn {
    padding: 6px 10px;
    background: linear-gradient(135deg, #5cb85c, #4cae4c);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
}

/* === Simulation Card Styling === */
.simulation-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    border-left: 5px solid #003A6C;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.simulation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.simulation-card h4 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #003A6C;
}

.simulation-card p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px !important;
}

.simulation-card.hardware {
    border-left-color: #1890ff;
    background-color: #f0f7ff;
}

.simulation-card.student {
    border-left-color: #52c41a;
    background-color: #f6ffed;
}

.simulation-card.driver {
    border-left-color: #ff4d4f;
    background-color: #fff1f0;
}

.simulation-card .input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.simulation-card input:not([type="checkbox"]) {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.simulation-card input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.simulation-card .coord-row {
    display: flex;
    gap: 10px;
}

.pm-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    background: rgba(156, 39, 176, 0.05);
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(156, 39, 176, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.pm-toggle:hover {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.2);
}

.pm-toggle input[type="checkbox"] {
    accent-color: #9C27B0;
    width: 18px;
    height: 18px;
    margin: 0;
}

.pm-toggle label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #9C27B0;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.simulation-card .coord-row input {
    flex: 1;
}

.simulation-card .btn-row {
    display: flex;
    gap: 10px;
}

.simulation-card button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: opacity 0.2s;
}

.simulation-card.hardware button {
    background: #1890ff;
    color: white;
}

.simulation-card.student button {
    background: #52c41a;
    color: white;
}

.simulation-card.driver button.start-btn {
    background: #52c41a;
    color: white;
}

.simulation-card.driver button.dest-btn {
    background: #1890ff;
    color: white;
}

.simulation-card.driver button.end-btn {
    background: #ff4d4f;
    color: white;
}

.simulation-card button:hover {
    opacity: 0.9;
}

/* === Recent Activity List === */
#recent-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === Drivers Tab Specific Styles === */
#drivers .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#drivers .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
    /* Extended width for better visibility */
}

#drivers .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Drivers Table Column Widths === */
#drivers table th:nth-child(1),
#drivers table td:nth-child(1) {
    /* Driver */
    width: 15%;
    max-width: 150px;
}

#drivers table th:nth-child(2),
#drivers table td:nth-child(2) {
    /* Operator */
    width: 20%;
    max-width: 200px;
}

#drivers table th:nth-child(3),
#drivers table td:nth-child(3) {
    /* Contact */
    width: 20%;
    max-width: 200px;
}

#drivers table th:nth-child(4),
#drivers table td:nth-child(4) {
    /* License Number */
    width: 15%;
    max-width: 150px;
}

#drivers table th:nth-child(5),
#drivers table td:nth-child(5) {
    /* Emergency Contact */
    width: 15%;
    max-width: 150px;
}

#drivers table th:nth-child(6),
#drivers table td:nth-child(6) {
    /* Status */
    width: 10%;
    max-width: 100px;
}

#drivers table th:nth-child(7),
#drivers table td:nth-child(7) {
    /* Actions */
    width: 10%;
    max-width: 100px;
}

/* === Drivers Tab Contact and Operator Column Icons === */
#drivers td i.fa-phone,
#drivers td i.fa-envelope {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

#drivers td small {
    color: #666;
    font-size: 0.85rem;
}

#recent-activity-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #D1D5DB;
    /* Medium Gray */
    color: #003A6C;
    /* Ateneo Blue for main text */
}

#recent-activity-list li:last-child {
    border-bottom: none;
}

/* === Error Text === */
.error-text {
    color: #d9534f;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .balance-section {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
    }

    .balance-card,
    .chart-card,
    .notifications-card {
        flex: none;
        width: 100%;
        max-width: none;
    }

    .chart-card canvas {
        height: 50vw !important;
        max-height: 300px;
    }

    .modal-content,
    .popup-card {
        width: 90%;
    }

    .profile-section {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .add-form-modal {
        width: 95%;
        padding: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dropdown-menu {
        right: -50px;
        min-width: 140px;
    }

    .sidebar {
        left: -100%;
    }

    .content.content-shift {
        margin-left: 0;
    }
}

/* === Custom Action Buttons === */
/* Base Action Button (Edit, Track, etc) - Default Blue to match theme */
.action-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #003A6C, #0066CC);
    /* Ateneo Blue */
    color: #F5F5F5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s, background 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Delete Button - Red */
.action-btn.delete-btn {
    background: #dc3545;
    /* Bootstrap Red */
}

.action-btn.delete-btn:hover {
    background: #c82333;
    /* Darker Red */
}

/* Track Button - Distinct Green or Teal if needed, but keeping Blue for now as requested 'edit not green' */
.action-btn.track-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    /* Info Teal to distinguish from Edit */
}

/* ETA Details Button */
.action-btn.eta-details-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    /* Green */
}

.action-btn.eta-details-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

/* === ETA Details Modal === */
.eta-modal-content {
    width: 400px;
    max-width: 90%;
    text-align: left;
    margin: auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.eta-modal-content h2 {
    margin: 0;
    color: #003A6C;
}

/* ETA Modal Close Button */
.eta-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    font-weight: bold;
    color: #666;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s;
}

.eta-close-btn:hover {
    color: #dc3545;
}

.eta-modal-content h3 {
    margin: 0 0 1rem 0;
    color: #003A6C;
    font-size: 1.1rem;
}

.student-eta-list {
    max-height: 300px;
    overflow-y: auto;
}

.student-eta-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.student-eta-item strong {
    color: #003A6C;
    font-size: 1rem;
}

.student-eta-item span {
    color: #666;
    font-size: 0.9rem;
}

.eta-value {
    color: #28a745 !important;
    font-weight: bold;
    font-size: 1rem !important;
}

.eta-updated {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #888;
    text-align: right;
}

.error {
    color: #dc3545;
    font-weight: bold;
}

/* === Messaging UI === */
.messaging-container {
    display: flex;
    height: calc(100vh - 200px);
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1rem;
}

.contacts-sidebar {
    width: 300px;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    background: #fcfcfc;
}

.contacts-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.contacts-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #003A6C;
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
}

.contact-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-item:hover {
    background: #f0f7ff;
}

.contact-item.active {
    background: #e6f0ff;
    border-left: 4px solid #0066CC;
}

.contact-avatar {
    width: 40px;
    height: 40px;
    background: #003A6C;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    object-fit: cover;
    border: 2px solid #f5f5f5;
}

.contact-info {
    flex: 1;
    overflow: hidden;
}

.contact-name {
    font-weight: 600;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-role {
    font-size: 0.75rem;
    color: #777;
    text-transform: uppercase;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.chat-history {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-wrapper {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.message-wrapper.sent {
    justify-content: flex-end;
}

.message-wrapper.received {
    justify-content: flex-start;
}

.message-bubble-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.message-bubble-wrapper.sent {
    justify-content: flex-end;
}

.message-bubble-wrapper.received {
    justify-content: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #ddd;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
}

.message-bubble.sent {
    align-self: flex-end;
    background-color: #003A6C;
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble.received {
    align-self: flex-start;
    background-color: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: #fff;
}

.chat-input-area input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
}

.chat-input-area input:focus {
    border-color: #003A6C;
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #003A6C;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.chat-input-area button:hover {
    background: #0066CC;
}

.chat-input-area .icon-btn {
    background: transparent;
    color: #003A6C;
}

.chat-input-area .icon-btn:hover {
    background: #f0f7ff;
    color: #0066CC;
}

.message-image {
    margin-bottom: 5px;
    border-radius: 12px;
    overflow: hidden;
}

.message-image img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-image img:hover {
    transform: scale(1.02);
}

/* === Payment Tab Styles === */
.bill-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid #eee;
    animation: paymentFadeIn 0.5s ease-out;
}

.bill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bill-card.paid {
    border-left: 5px solid #28a745;
}

.bill-card.pending {
    border-left: 5px solid #ffc107;
}

.bill-card.overdue {
    border-left: 5px solid #dc3545;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.pending {
    background: #fdf6ec;
    color: #e6a23c;
}

.status-badge.overdue {
    background: #fef0f0;
    color: #f56c6c;
}

.status-badge.paid {
    background: #f0f9eb;
    color: #67c23a;
}

.pay-now-btn {
    width: 100%;
    padding: 12px;
    background: #003A6C;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
}

.pay-now-btn:hover {
    background: #0066cc;
}

@keyframes paymentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* === Payment Role View Toggling === */
.payment-view {
    display: none;
    animation: fadeIn 0.3s;
}

.payment-view.active {
    display: block;
}

/* === Payment Tab Specific Styles === */
#payment .search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 40px;
    margin-bottom: 1rem;
}

#payment .search-container input {
    flex: 1;
    width: 100%;
    min-width: 300px;
    max-width: 1200px;
}

#payment .search-container select {
    padding: 10px;
    border: 1px solid #003A6C;
    border-radius: 6px;
    background: #fff;
    color: #003A6C;
    font-size: 0.9rem;
}

/* === Payment Table Column Widths === */
#payment-admin-view table th:nth-child(1),
#payment-admin-view table td:nth-child(1) {
    /* Student */
    width: 15%;
}

#payment-admin-view table th:nth-child(2),
#payment-admin-view table td:nth-child(2) {
    /* Operator */
    width: 15%;
}

#payment-admin-view table th:nth-child(3),
#payment-admin-view table td:nth-child(3) {
    /* Amount */
    width: 10%;
}

#payment-admin-view table th:nth-child(4),
#payment-admin-view table td:nth-child(4) {
    /* Month */
    width: 10%;
}

#payment-admin-view table th:nth-child(5),
#payment-admin-view table td:nth-child(5) {
    /* Plan */
    width: 10%;
}

#payment-admin-view table th:nth-child(6),
#payment-admin-view table td:nth-child(6) {
    /* Due Date */
    width: 10%;
}

#payment-admin-view table th:nth-child(7),
#payment-admin-view table td:nth-child(7) {
    /* Status */
    width: 10%;
}

#payment-admin-view table th:nth-child(8),
#payment-admin-view table td:nth-child(8) {
    /* Method */
    width: 8%;
}

#payment-admin-view table th:nth-child(9),
#payment-admin-view table td:nth-child(9) {
    /* Paid Date */
    width: 12%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
}