html, body {
    font-family: 'Quicksand', sans-serif;
    background-color: #28322A;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

/* Admin nav bar - visually distinct from the mobile green */
.admin-navbar {
    background-color: #1F2A22 !important;
    color: #FFFFFF !important;
    border-bottom: 1px solid #BDB76B;
}

/* Drawer / sidebar */
.mud-drawer {
    background-color: #2E473B !important;
}

.mud-drawer-header {
    background-color: #2E473B !important;
    border-bottom: 1px solid rgba(189, 183, 107, 0.3);
}

/* Main content area */
.admin-main {
    background-color: #28322A;
    min-height: 100vh;
}

/* MudPaper default override for dark bg */
.mud-paper {
    background-color: #2E473B !important;
}

/* --- Login Page --- */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #28322A;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background-color: #2E473B;
    border-radius: 8px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(189, 183, 107, 0.2);
}

.login-logo-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.login-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    color: #FFFFFF;
    margin-bottom: 6px;
    font-size: 0.875rem;
    font-family: 'Quicksand', sans-serif;
}

.login-form .form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: #28322A;
    border: 1px solid #BDB76B;
    border-radius: 4px;
    color: #FFFFFF;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #F0E27A;
    box-shadow: 0 0 0 2px rgba(189, 183, 107, 0.25);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #BDB76B;
    color: #28322A;
    border: none;
    border-radius: 4px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background-color: #C89F45;
}

.btn-login:active {
    background-color: #A08030;
}

.error-summary {
    color: #FF8080;
    margin-bottom: 16px;
    font-size: 0.875rem;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 10px 12px;
    border-radius: 4px;
    border-left: 3px solid #FF6B6B;
}

.field-error {
    color: #FF8080;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* --- Image thumbnail + lightbox --- */
.admin-thumb {
    position: relative;
    cursor: pointer;
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
}

.admin-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.admin-thumb:hover .admin-thumb-overlay {
    background: rgba(0,0,0,0.45);
}

.admin-thumb-overlay .mud-icon-root {
    opacity: 0;
    transition: opacity 0.2s;
}

.admin-thumb:hover .admin-thumb-overlay .mud-icon-root {
    opacity: 1;
}

.admin-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
}

.admin-lightbox-inner {
    position: relative;
    cursor: default;
}

/* --- Quill HTML editor dark theme --- */
.quill-wrapper {
    border: 1px solid rgba(189, 183, 107, 0.4);
    border-radius: 4px;
    overflow: hidden;
}

.quill-wrapper .ql-toolbar.ql-snow {
    background-color: #1F2A22;
    border: none;
    border-bottom: 1px solid rgba(189, 183, 107, 0.3);
}

.quill-wrapper .ql-toolbar .ql-stroke {
    stroke: #FFFFFF;
}

.quill-wrapper .ql-toolbar .ql-fill {
    fill: #FFFFFF;
}

.quill-wrapper .ql-toolbar .ql-picker-label,
.quill-wrapper .ql-toolbar .ql-picker-item {
    color: #FFFFFF;
}

.quill-wrapper .ql-toolbar .ql-picker-options {
    background-color: #2E473B;
    border-color: rgba(189, 183, 107, 0.3);
}

.quill-wrapper .ql-toolbar button:hover .ql-stroke,
.quill-wrapper .ql-toolbar button.ql-active .ql-stroke {
    stroke: #BDB76B;
}

.quill-wrapper .ql-toolbar button:hover .ql-fill,
.quill-wrapper .ql-toolbar button.ql-active .ql-fill {
    fill: #BDB76B;
}

.quill-wrapper .ql-container.ql-snow {
    background-color: #1a2a1f;
    border: none;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
}

.quill-wrapper .ql-editor {
    color: #FFFFFF;
    min-height: 300px;
    max-height: 600px;
    overflow-y: auto;
}

.quill-wrapper .ql-editor.ql-blank::before {
    color: #888;
    font-style: italic;
}
