﻿
/* === Global App Navbar === */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: linear-gradient(90deg, #0d6efd, #0a58ca);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .app-navbar .brand {
        font-weight: 700;
        letter-spacing: 0.3px;
    }

    .app-navbar nav a {
        color: #fff;
        text-decoration: none;
        margin-left: 14px;
        padding: 6px 10px;
        border-radius: 6px;
        font-weight: 600;
        opacity: 0.95;
    }

        .app-navbar nav a:hover {
            background: rgba(255,255,255,0.18);
        }

        .app-navbar nav a.active {
            background: rgba(255,255,255,0.26);
        }


body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f9;
    margin: 20px;
}

h2 {
    text-align: center;
    color: #333;
}

form {
    max-width: 700px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

    .form-field label {
        margin-bottom: 5px;
        font-weight: bold;
    }

    .form-field input,
    .form-field select {
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
    }

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    float: right;
}

    button:hover {
        background-color: #0056b3;
    }

label.error {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}

table {
    width: 90%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #007BFF;
    color: white;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

caption {
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    margin: 10px;
}


body {
    scroll-margin-top: 72px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

    .modal-content h3 {
        margin-top: 0;
    }

    .modal-content input {
        width: 100%;
        margin-bottom: 12px;
        padding: 8px;
        font-size: 14px;
    }

.modal-buttons {
    text-align: right;
}

.close {
    float: right;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
        color: red;
    }

.add-icon {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    font-size: 20px;
    color: #007BFF;
    cursor: pointer;
}
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
}

    button:hover {
        background-color: #0056b3;
    }
