/* ================= BASE ================= */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 60px;     /* navbar */
    padding-bottom: 70px;  /* footer */
    background-color: #49c5b6;
}

/* ================= BACKGROUNDS ================= */
/* Logged-in pages */
.app-bg {
    background-image: url("../static/pngwing.png"); /* image2 */
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    min-height: 100vh;
}

/* Login page */
.login-bg {
    background-image: url("../static/background.png"); /* image1 */
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    min-height: 100vh;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: #1b3a4b;
    z-index: 1000;
}

.navbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar button {
    background: white;
    color: #1b3a4b;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* ================= CONTENT ================= */
.content {
    background: rgba(255,255,255,0.85);
    padding: 30px;
    border-radius: 10px;
}

/* ================= TABLES ================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

th {
    background: white;
}

/* ================= BUTTONS ================= */
.link-btn {
    background: #1b3a4b;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
}
.submit-btn {
    background: #1b3a4b;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
}

.danger {
    background: #D32F2F;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    padding: 6px 12px;
}

.danger:hover {
    background: #B71C1C;
}

/* ================= FOOTER ================= */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #17252A;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 12px;
}

/* ================= STATUS BADGES ================= */
.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.badge-success {
    background: #4CAF50;
    color: white;
}

.badge-warning {
    background: #FFC107;
    color: #333;
}

.badge-danger {
    background: #F44336;
    color: white;
}

.badge-info {
    background: #2196F3;
    color: white;
}

.warning {
    background-color: #f0ad4e;
    color: #fff;
}

/* ================= BUTTON SPACING ADMIN SECTION ================= */
.table-actions a,
.table-actions form {
    margin-right: 8px;
}

.table-actions form {
    display: inline-block;
}

/* ================= EYE ON PWD RESET ADMIN SECTION ================= */

.password-field {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin-bottom: 12px;
}

.password-field input {
    width: 100%;
    height: 40px;
    padding: 8px 42px 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    padding: 0;
}

.toggle-password:hover {
    opacity: 1;
}




@media (max-width: 600px) {
    table, thead, tbody, tr, th, td {
        display: block;
    }

    th {
        display: none;
    }

    tr {
        margin-bottom: 12px;
        background: #fff;
        border-radius: 8px;
        padding: 10px;
        border: 1px solid #ddd;
    }

    td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
    }

    td::before {
        font-weight: bold;
        content: attr(data-label);
    }
}
