/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f0f2f5; /* light modern background */
    color: #333;
    min-height: 100vh;
}

/* ===== Top Bar ===== */
.top-bar {
    width: 100%;
    background-color: #fff; /* modern white top bar */
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .logo img {
    height: 40px;
}

.top-bar .logo span {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: bold;
    font-size: 16px;
}

.logout-btn {
    background-color: #007bff;
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.logout-btn:hover {
    background-color: #0056b3;
}

/* ===== Container ===== */
.container {
    max-width: 400px;       /* fixed width */
    min-width: 300px;       /* cannot shrink too small */
    margin: 80px auto;
    padding: 30px;
    background-color: #fff; /* white box */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
}

.container p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* ===== Login Form Inputs ===== */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="email"],
input[type="password"] {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    color: #333;
    font-size: 16px;
    width: 100%;
}

input::placeholder {
    color: #999;
}

button[type="submit"] {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #28a745;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #218838;
}

.error-message {
    background-color: #dc3545;
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* ===== Popup ===== */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#popup-content {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;       /* fixed width */
    min-width: 300px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

#popup-content h3 {
    font-size: 22px;
    color: #333;
}

#popup-content p {
    font-size: 16px;
    color: #555;
}

#popup-content button {
    padding: 12px 20px;
    width: 80%;
    max-width: 200px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

#enableBtn {
    background-color: #007bff;
    color: #fff;
}

#enableBtn:hover {
    background-color: #0056b3;
}

#declineBtn {
    background-color: #ccc;
    color: #333;
}

#declineBtn:hover {
    background-color: #999;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .container {
        margin: 40px 20px;
        padding: 25px;
    }

    .container h2 {
        font-size: 22px;
    }

    .container p {
        font-size: 14px;
    }

    input[type="email"],
    input[type="password"],
    #popup-content button {
        width: 100%;
    }

    #popup-content h3 {
        font-size: 20px;
    }

    #popup-content p {
        font-size: 14px;
    }
}

@media screen and (min-width: 1200px) {
    .container {
        margin: 80px auto;
        padding: 40px;
    }

    .container h2 {
        font-size: 32px;
    }

    .container p {
        font-size: 18px;
    }
}
