/* Reset some basic elements to remove default browser styles */
html { font-size: 16px; background-color: #F6F6F3; }
a, blockquote, body, button, code, dd, dl, dt, h1, h2, h3, h4, h5, html, input, li, ol, p, pre, textarea, ul { margin: 0; padding: 0; font-family: Hiragino Sans GB, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif; }
a { color: #4657c3; text-decoration: none; }
a:active, a:hover { color: #000; }

body { color: #333; line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 4rem auto 6rem; }

/* Header styling */
header { background-color: #000; color: white; }
#admin-menu { padding: 0 1rem; }
#admin-menu a { color: white; text-decoration: none; display: inline-block; margin: 0; height: 40px; line-height: 40px; padding: 0 1.3rem; border-right: 1px solid #555; }
.menu-index, .menu-logout { border-left: 1px solid #555; }
#admin-menu .menu-site, #admin-menu .menu-logout { float: right; }
#menu-toggle,.hamburger{display:none;}

h2 { border: none; margin-bottom: 3rem; font-weight: bold; font-size: 2rem; }
h3 { border: none; margin: 2.5rem 0; font-weight: bold; font-size: 1.4rem; }

ul { list-style-type: none; padding: 0; margin: 1rem 0 2.5rem; }
ul li { background: #f9f9f9; padding: 15px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); display: flex; justify-content: space-between; align-items: center; transition: background 0.3s ease, box-shadow 0.3s ease; }
ul li:hover { background: #f1f1f1; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); }
ul li img{border-radius: 25%;}

button { display: inline-block; margin: 1.5rem 0.5rem 0 0; background-color: #444; color: white; border: none; border-radius: 3px; cursor: pointer; font-size: 1rem; transition: background 0.3s ease; }
button:hover { background-color: #555; }
button:disabled { background-color: #ccc; cursor: not-allowed; }

/* Form styling */
form { margin-top: 3rem; }
label { color: #888; }
form input[type="text"], form input[type="password"], form input[type="file"], form select { display: block; width: 40%; padding: 0.5rem 0.8rem; margin: 10px 0; border: 1px solid #ddd; transition: border-color 0.3s ease; background: #fff; font-size: 1rem; border-radius: 3px; box-sizing: border-box; }
form input[type="text"]:focus, form input[type="password"]:focus, form input[type="file"]:focus, form select:focus, form input[type="checkbox"]:focus { border-color: #333; outline: none; }

.icon { padding: 0.4rem 0; margin: 10px 0; }

/* Styled form buttons */
form button { width: auto; padding: 0.5rem 1.2rem; font-size: 1rem; }

/* Notifications styling */
.notification { display: none; font-size: 0.9rem; position: fixed; top: 3.5rem; left: 0; right: 0; margin: 0 auto; width: fit-content; padding: 0.5rem 1rem; background-color: #28a745; color: white; border-radius: 2px; z-index: 1000; transition: opacity 0.5s ease; }
.notification.success { background-color: #28a745; }
.notification.error { background-color: #dc3545; }
.notification.info { background-color: #d4670d; }

.right { float: right; }
.red { color: #dc3545 !important; }
.green { color: #28a745 !important; }

.check-list { font-size: 0.9rem; }

.list-action a { margin-left: 1.5rem; }

/* Media queries for responsive design */
@media screen and (max-width: 700px) {
    html { font-size: 14px; }
    
    form input[type="text"], form input[type="password"], form input[type="file"], form select {
        width: 100%;
        box-sizing: border-box;
    }
    
    #admin-menu a { padding: 0 1rem; }

    /* Hide the menu by default on smaller screens */
    #admin-menu {
        display: none;
        flex-direction: column;
    }

    .hamburger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 1.5rem;
        color: white;
        padding: 1rem;
    }

    /* Hide the checkbox */
    .menu-toggle {
        display: none;
    }

    /* When checkbox is checked, display the menu */
    .menu-toggle:checked + .hamburger + #admin-menu {
        display: flex;
    }
    .menu-index, .menu-logout,#admin-menu a { border: none; border-top:1px solid #222;}
}