* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* Full page login background */
body.login-page {
    background: url('../img/hero-bg.jpeg') no-repeat center center fixed;
    background-size: cover;
}

/* Add a slight overlay to darken the background for readability */
body.login-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5); /* semi-transparent overlay */
    z-index: 0;
}

/* Container positioning over overlay */
.admin-container {
    position: relative;
    z-index: 1;
}

/* Logo styling */
.admin-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 150px;
}


.admin-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-box {
    background: #fff;
    padding: 30px;
    width: 360px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-box h2 {
    text-align: center;
    margin-bottom: 25px;
}

.admin-box input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.admin-box button {
    width: 100%;
    padding: 10px;
    background: #223060;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.admin-box button:hover {
    background: #333;
}

.admin-error {
    color: #d63031;
    text-align: center;
    margin-bottom: 10px;
}

.admin-success {
    color: #27ae60;
    text-align: center;
    margin-bottom: 10px;
}

.admin-topbar {
    background: #223060;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 15px;
}

.gallery-admin {
    padding: 30px;
}

.gallery-admin img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.delete-btn {
    display: inline-block;
    margin-top: 5px;
    color: #d63031;
    text-decoration: none;
    font-size: 14px;
}

.cancel-btn {
    display: inline-block;
    text-align: center;
    padding: 10px;
    background: #ccc;
    color: #111;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.cancel-btn:hover {
    background: #aaa;
}

.admin-msg {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
}

.admin-msg.success {
    color: #27ae60;
}

.admin-msg.error {
    color: #d63031;
}

/* Keep existing styles, then overwrite: */

/* Fixed logo at top-left (override previous centered logo styles) */
.admin-logo {
    position: fixed;      /* fixed position */
    top: 20px;            /* distance from top */
    left: 20px;           /* distance from left */
    max-width: 150px;
    margin: 0;            /* remove auto margin */
    z-index: 1001;        /* above overlay and content */
}

/* Centered container for login form */
.admin-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;  /* keep this for overlay stacking */
    z-index: 1;
}

/* Slightly transparent white background for login box */
.admin-box {
    background: rgba(255, 255, 255, 0.9); /* white with 90% opacity */
    padding: 30px;
    width: 360px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Keep other styles unchanged */
