@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");

/* --- RESET & BASE --- */
*, *::after, *::before { margin: 0; padding: 0; box-sizing: inherit; }
html { height: 100%; font-size: 62.5%; box-sizing: border-box; font-family: 'Montserrat', sans-serif; }
body { height: 100%; background: #e9ebee; color: #1d2129; display: flex; align-items: center; justify-content: center; perspective: 1500px; overflow-x: hidden; }

/* UTILITIES */
.hidden { display: none !important; }
.small-text { font-size: 1.2rem; margin-bottom: 15px; color: #666; }

/* --- LOGIN UI --- */
h1 { font-weight: 700; font-size: 3.5em; text-align: center; margin-bottom: 0.5em; }
form input[type="email"], form input[type="password"], form input[type="text"] { background: #eee; border: none; padding: 12px 15px; margin: 8px 0; width: 100%; font-size: 1.4em; border-radius: 5px; }

/* Checkboxes */
.checkbox-container { display: flex; align-items: center; margin: 15px 0; font-size: 1.4em; color: #333; font-weight: 100; cursor: pointer; float: left; }
.checkbox-container input { width: auto; margin-right: 8px; cursor: pointer; transform: scale(1.2); }

span.forget { float: right; margin: 15px 0; font-size: 1.4em; color: #333; font-weight: 100;}
span.clearfix { clear: both; display: table; }
span.loginwith { display: block; width: 100%; margin-top: 1em; display: flex; justify-content: center; align-items: center; font-size: 1.4em; }
span.loginwith::before, span.loginwith::after { content: ""; display: inline-block; width: 30%; height: 1px; background: #aaa; margin: 0 10px; }

button { display: block; margin: 1em auto; border-radius: 40px; border: 1px solid #ff4b2b; background: #ff4b2b; color: #fff; font-size: 1.2em; font-weight: bold; padding: 0.8em 2em; letter-spacing: 1px; text-transform: uppercase; transition: transform 80ms ease-in, background 0.3s; cursor: pointer; }
button:active { transform: scale(0.95); }
button:focus { outline: none; }
button.guest-btn { background: transparent; color: #555; border: 1px solid #aaa; margin-top: 5px; }
button.guest-btn:hover { background: #eee; }

#container { width: 95%; max-width: 800px; height: 500px; position: relative; border-radius: 20px; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.1); transform-style: preserve-3d; background: #fff; }
#container > div { position: absolute; width: 50%; min-width: 350px; height: 100%; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.content { width: 100%; padding: 2em 4em; text-align: center; }
.login { left: 0; background: #FAFAFA; border-radius: 20px 0 0 20px; }
.register { right: 0; z-index: 1; border-radius: 0 20px 20px 0; background: #FAFAFA; }
.page { right: 0; color: #fff; border-radius: 0 20px 20px 0; transform-origin: left center; transition: all 1s linear; }
.page button { border-color: #fff; background: transparent; }
.front { background: linear-gradient(-45deg, #FFCF00 0%, #FC4F4F 100%); z-index: 3; }
.back { background: linear-gradient(135deg, #FC4F4F 0%, #FFCF00 100%); z-index: 2; }
.back .content { transform: rotateY(180deg); }

.active .front { animation: rot-front 0.6s ease-in-out normal forwards; }
.active .back { animation: rot-back 0.6s ease-in-out normal forwards; }
.close .front { animation: close-rot-front 0.6s ease-in-out normal forwards; }
.close .back { animation: close-rot-back 0.6s ease-in-out normal forwards; }
@keyframes rot-front { from { transform: translateZ(2px) rotateY(0deg); } to { transform: translateZ(1px) rotateY(-180deg); } }
@keyframes close-rot-front { from { transform: translateZ(1px) rotateY(-180deg); } to { transform: translateZ(2px) rotateY(0deg); } }
@keyframes rot-back { from { transform: translateZ(1px) rotateY(0deg); } to { transform: translateZ(2px) rotateY(-180deg); } }
@keyframes close-rot-back { from { transform: translateZ(2px) rotateY(-180deg); } to { transform: translateZ(1px) rotateY(0deg); } }
.active .register .content { animation: show 0.7s ease-in-out normal forwards; }
.close .register .content { animation: hide 0.7s ease-in-out normal forwards; }
.active .login .content { animation: hide 0.7s ease-in-out normal forwards; }
.close .login .content { animation: hide 0.7s ease-in-out normal forwards; }
@keyframes show { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
@keyframes hide { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.8); } }

/* --- DASHBOARD STYLES --- */
#dashboard-app { width: 100vw; height: 100vh; background: #f0f2f5; display: flex; flex-direction: column; overflow: hidden; }

.top-nav { background: #fff; height: 60px; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.nav-brand { font-size: 1.8em; font-weight: 700; color: #FC4F4F; }
.nav-user { display: flex; align-items: center; gap: 20px; font-size: 1.4em; }

.nav-tabs { display: flex; gap: 10px; }
.tab-btn { background: transparent; border: none; color: #555; padding: 10px 20px; font-size: 1.4em; border-radius: 20px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.tab-btn:hover { background: #f0f0f0; }
.tab-btn.active { background: #FC4F4F; color: white; border: 1px solid #FC4F4F; }
.badge { background: #dc3545; color: white; font-size: 0.8em; padding: 2px 6px; border-radius: 10px; vertical-align: top; margin-left: 5px; }

.main-content { flex: 1; padding: 30px; overflow-y: auto; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.table-container { background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; font-size: 1.3em; }
th { background: #f8f9fa; font-weight: 700; color: #444; position: sticky; top: 0; }
td input { background: transparent; border: 1px solid transparent; width: 100%; padding: 5px; font-family: inherit; font-size: inherit; }
td input:focus { border: 1px solid #FC4F4F; background: #fff; outline: none; }

.action-btn { border-radius: 5px; margin: 0; font-size: 1em; padding: 0.6em 1.2em; display: inline-block; color: white; border: none; }
.action-btn.add { background: #28a745; }
.action-btn.save { background: #007bff; }
.btn-delete { background: #dc3545; color: white; width: 30px; height: 30px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.btn-approve { background: #28a745; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; margin-right: 5px; font-size: 1.2rem; }
.btn-reject { background: #dc3545; color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 1.2rem; }

.status-pending { color: #856404; background-color: #fff3cd; padding: 4px 8px; border-radius: 4px; font-size: 1.2rem; font-weight: bold; }
.status-approved { color: #155724; background-color: #d4edda; padding: 4px 8px; border-radius: 4px; font-size: 1.2rem; font-weight: bold; }

.guest-card { background: #fff; padding: 50px; border-radius: 10px; text-align: center; max-width: 600px; margin: 50px auto; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.guest-card h1 { color: #FC4F4F; margin-bottom: 20px; }
.guest-card p { font-size: 1.6em; color: #666; }

#notification-area { position: fixed; top: 20px; right: 20px; z-index: 100; }
.toast { background: #333; color: #fff; padding: 15px 25px; border-radius: 5px; margin-bottom: 10px; font-size: 1.4rem; animation: slideIn 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
