/* --- FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@700;800&display=swap');

:root {
    --gold: #caa74c;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- THEME COLORS --- */
body:not(.dark) { 
    --overlay: rgba(255, 255, 255, 0.85);
    --card: #ffffff; 
    --text: #1c2430; 
    --text-muted: #64748b; 
    --border: rgba(0,0,0,0.1);
}
body.dark { 
    --overlay: rgba(15, 23, 42, 0.9);
    --card: #1e293b; 
    --text: #f1f5f9; 
    --text-muted: #94a3b8; 
    --border: rgba(202, 167, 76, 0.3);
}

/* --- CORE LAYOUT --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: url('background.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex; justify-content: center; align-items: center;
}

.container {
    width: 95vw; max-width: 1100px; height: 90vh;
    background: var(--overlay);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--gold); border-radius: 12px;
    padding: 40px; display: flex; flex-direction: column;
    position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

/* --- NAVIGATION & ICONS --- */
.nav-icons { position: absolute; top: 25px; right: 25px; display: flex; gap: 20px; color: var(--gold); font-size: 1.3rem; z-index: 100; }
.nav-icons i { cursor: pointer; transition: 0.2s; }
.nav-icons i:hover { transform: scale(1.2); color: var(--text); }

/* --- PUBLIC MENU STYLES (INDEX) --- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; overflow-y: auto; padding: 10px; }

.item-wrap { 
    transition: var(--transition); 
    padding: 10px; 
    border-radius: 8px; 
    border: 1px solid transparent;
}
/* Mouse-over fluidity effect */
.item-wrap:hover {
    background: rgba(202, 167, 76, 0.05);
    border-color: rgba(202, 167, 76, 0.2);
    transform: translateX(8px);
}

.cat-title { color: var(--gold); font-family: var(--font-heading); text-transform: uppercase; border-bottom: 2px solid var(--gold); margin-bottom: 20px; padding-bottom: 5px; font-size: 1.2rem; }
.item-row { display: flex; align-items: baseline; font-weight: 700; margin-bottom: 4px; }
.dots { flex-grow: 1; border-bottom: 1px dotted var(--gold); margin: 0 10px; opacity: 0.4; }
.desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; font-style: italic; }

/* --- ADMIN ARCHITECT LAYOUT --- */
.admin-layout { display: flex; gap: 30px; height: 100%; overflow: hidden; }
.menu-editor { flex: 3; overflow-y: auto; padding-right: 15px; }

/* --- STAFF MANAGEMENT SIDEBAR --- */
.user-manager { 
    flex: 1; 
    background: rgba(0,0,0,0.1); 
    padding: 20px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    overflow-y: auto; 
    max-height: 100%;
}
.user-card { 
    background: var(--card); 
    padding: 12px; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    font-size: 0.8rem; 
    border-left: 3px solid var(--gold);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.role-tag { 
    font-size: 0.6rem; 
    padding: 2px 6px; 
    border-radius: 4px; 
    background: var(--gold); 
    color: white; 
    text-transform: uppercase; 
    margin-left: 5px; 
    font-weight: 800;
}

/* --- ADMIN ITEM & SECTION BLOCKS --- */
.admin-section { background: rgba(0,0,0,0.05); padding: 20px; border-radius: 10px; margin-bottom: 25px; border: 1px solid var(--border); }
.admin-item-box { 
    background: var(--card); 
    padding: 12px; 
    border-radius: 8px; 
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    border-left: 5px solid var(--gold); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
    cursor: grab; 
}

/* --- INPUTS & BUTTONS --- */
.admin-input { background: transparent; border: none; color: inherit; padding: 5px; outline: none; width: 100%; font-family: var(--font-body); }
.admin-input:focus { border-bottom: 1px solid var(--gold); }

.btn { 
    cursor: pointer; 
    background: var(--gold); 
    color: white; 
    border: none; 
    padding: 12px 24px; 
    border-radius: 6px; 
    font-weight: 800; 
    text-transform: uppercase; 
    transition: 0.3s; 
}
.btn:hover { background: #b08d3a; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(202, 167, 76, 0.3); }

/* --- DRAGGABLE VISUAL CUES --- */
.sortable-ghost { 
    opacity: 0.2; 
    border: 2px dashed var(--gold) !important; 
    background: rgba(202, 167, 76, 0.1) !important; 
}

/* --- LOGIN MODAL --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: none; justify-content: center; align-items: center; z-index: 1000; }
.modal-box { background: var(--card); padding: 40px; border-radius: 15px; border: 2px solid var(--gold); width: 320px; text-align: center; }

/* --- BRANDING & FOOTER --- */
.photo-credit {
    position: fixed; bottom: 15px; right: 15px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(0, 0, 0, 0.4); padding: 5px 12px;
    border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; font-size: 0.7rem; backdrop-filter: blur(5px);
    z-index: 50; text-decoration: none; transition: 0.3s;
}
.photo-credit:hover { background: rgba(0, 0, 0, 0.6); transform: scale(1.05); }
.mc-head { width: 20px; height: 20px; border-radius: 2px; }

/* --- SCROLLBAR CUSTOMIZATION --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }