/* =====================================================
   GLOBAL
===================================================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #1A2D8C;
}
[class^="btn-"] {
    text-decoration: none;
}
/* =====================================================
   HEADER
===================================================== */
.admin-header {
    background: #1A2D8C;
    color: #FFED00;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid #FFED00;
}

.admin-title {
    font-size: 20px;
    font-weight: bold;
}

.admin-header a {
    color: #FFED00;
    text-decoration: none;
    font-weight: bold;
}

/* =====================================================
   CONTAINER
===================================================== */
.admin-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

/* =====================================================
   CARD
===================================================== */
.admin-card {
    background: #fffdf0;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */
.admin-card label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 14px;
}

.admin-card input,
.admin-card textarea,
.admin-card select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 2px solid #e5e5e5;
    background: #f7f7f7;
    font-size: 14px;
    box-sizing: border-box;
    transition: 0.2s ease;
}

.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
    outline: none;
    border-color: #1A2D8C;
    background: #ffffff;
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary {
    background: #1A2D8C;
    color: #FFED00;
    padding: 12px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

.btn-primary:hover {
    background: #162473;
}

.btn-secondary {
    background: #eee;
    color: #1A2D8C;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
}

.btn-danger {
    background: #b3261e;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
}

/* =====================================================
   TABLE
===================================================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    background: #fff9cf;
    padding: 12px;
    text-align: left;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* ===============================
   ADMIN HEADER
============================== */

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 30px;
    background: #1A2D8C;
    color: white;
}

.admin-brand a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
}

/* ===============================
   NAVIGATION
============================== */

.admin-nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.admin-nav a:hover {
    background: rgba(255,255,255,0.2);
}

.admin-nav a.active {
    background: #ffffff;
    color: #1A2D8C;
    font-weight: 600;
}
.btn-primary,
.btn-secondary,
.btn-danger {
    display: inline-block;
}
/* Remove underline from all button-style links */
a.btn-primary,
a.btn-secondary,
a.btn-danger {
    text-decoration: none;
}

a.btn-primary:hover,
a.btn-secondary:hover,
a.btn-danger:hover {
    text-decoration: none;
}
/* ===============================
   CHECKBOX FIX
============================== */

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;         /* override global width */
    margin: 0;
}

.checkbox-row label {
    margin: 0;
    font-weight: 500;
}

/* Optional: add spacing above Save button */
.form-section {
    margin-bottom: 20px;
}
.inactive-row {
    background: #f8d7da;
    opacity: 0.85;
}
/* ===============================
   ICON BUTTONS
============================== */

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s ease;
}

.icon-btn:hover {
    background: #eee;
}

.icon-btn.danger:hover {
    background: #f8d7da;
}
/* ===============================
   ADMIN HEADER
============================== */

.admin-header {
    background: #26348c;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
}

/* ===============================
   BRAND
============================== */

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    height: 42px;          /* FIXED HEIGHT */
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.brand-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

/* ===============================
   NAV LINKS
============================== */

.admin-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.admin-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s ease;
}

.admin-nav a:hover {
    opacity: 0.7;
}

/* Ensure logout button matches the rest of the navigation */
.logout-btn {
    background-color: #26348c;  /* Change to your brand's color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;  /* Align with other nav buttons */
    margin-left: 10px;  /* Add some spacing between buttons */
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.2);  /* Slightly darker shade for hover effect */
}

/* Modal Styling */
#logoutWarningModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: none;  /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;  /* Ensure it appears above other content */
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
}
#toast-container {
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 320px;
    pointer-events: none;
}

.toast {
    min-width: 250px;
    padding: 14px 18px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success { background: #4CAF50; }
.toast.error   { background: #f44336; }
.toast.info    { background: #2196F3; }
