body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

#backgroundImage {
    position: fixed;
    top: 0; width: 100%; height: 100%;
    background-image: url("Background.jpg");
    background-size: cover; z-index: -2;
}

.overlay {
    background: rgba(0,0,0,0.55);
    position: fixed; top: 0; width: 100%; height: 100%; z-index: -1;
}

/* Main Container */
.box {
    background-color: #ffffff;
    width: 90%;
    max-width: 600px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-radius: 6px;
}

#title {
    color: #000000;
    background-color: #04ffff;
    text-align: center;
    padding: 15px;
    margin: -40px -40px 25px -40px;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 6px 6px 0 0;
}

.line {
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.f-row { position: relative; width: 100%; }

.err-ico {
    position: absolute;
    right: 5px; top: 7px;
    width: 20px; height: 20px;
    background-image: url("error.png");
    background-size: contain; background-repeat: no-repeat;
    display: none;
}

.in {
    width: 100%; height: 35px; border: none;
    border-bottom: 1px solid #666666; margin-bottom: 20px;
    font-size: 1rem; padding-right: 30px; box-sizing: border-box;
}
.in:focus { outline: none; border-bottom: 2px solid #04ffff; }
.bad-in { border-bottom: 2px solid #e81123 !important; background-color: #fdecea; }

/* Buttons */
.btn {
    min-width: 100px; height: 40px; border: none; font-weight: bold; cursor: pointer;
    background-color: #04ffff; color: #000000; float: right; border-radius: 6px;
}
.btn:hover { background-color: #0AC4E0; }

.btn-gray { background-color: #f0f0f0; color: #333333; }
.btn-gray:hover { background-color: #0AC4E0; color: #000000; }

.btn-del { background-color: #e81123; color: #ffffff; }
.btn-del:hover { background-color: #a80000; }

.gold-link { color: #000000; font-weight: bold; text-decoration: underline; transition: color 0.2s; }
.gold-link:hover { color: #0AC4E0; }

.msg {
    padding: 10px; margin-bottom: 15px; font-weight: bold; display: none;
    text-align: center; border-radius: 6px;
}
.error { background-color: #fdecea; border: 1px solid #e81123; color: #e81123; }
.success { background-color: #e8f5e9; border: 1px solid #2e7d32; color: #2e7d32; }

.copy {
    text-align: center; color: #888888; font-size: 0.95rem; margin-top: 70px;
    border-top: 1px solid #eeeeee; padding-top: 20px; clear: both;
}

.row {
    padding: 15px; border-left: 4px solid #04ffff; background: #f9f9f9;
    margin-bottom: 10px; border-bottom: 1px solid #eeeeee;
    display: flex; justify-content: space-between; align-items: center;
}

/* FIX: Remove float for buttons inside the list so they follow Edit -> Delete order */
.row .btn {
    float: none;
}

/* Modal Styling */
.modal {
    display: none; position: fixed; z-index: 10; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: #ffffff; margin: 10% auto; padding: 30px;
    width: 90%; max-width: 400px; border-radius: 6px; position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
