@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #5e17eb; /* Purple accent for Miaou's City */
    --primary-light: #7e42f5;
    --gold: #D4AF37;
    --gold-light: #f1d592;
    --black: #000000;
    --white: #ffffff;
    --pure-white: #ffffff;
    --pure-black: #000000;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: 25px;
    --card-radius: 28px;
    --bg-color: #000;
    --text-color: #ffffff;
    --feature-bg: rgba(255, 255, 255, 0.03);
    --feature-border: rgba(255, 255, 255, 0.05);
}

body.light-mode {
    --black: #ffffff;
    --white: #1d1d1f;
    --primary: #5e17eb;
    --primary-light: #7e42f5;
    --gold: #aa8a2e;
    --gold-light: #c5a044;
    --glass-bg: rgba(255, 255, 255, 0.5);
    --glass-border: rgba(0, 0, 0, 0.1);
    --bg-color: #fbfbfd;
    --text-color: #1d1d1f;
    --feature-bg: rgba(0, 0, 0, 0.03);
    --feature-border: rgba(0, 0, 0, 0.08);
}

html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    width: 100%;
}

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

a {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

a:hover {
    opacity: 0.8;
    filter: brightness(1.2);
}

body {
    background: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(94, 23, 235, 0.4) 0, transparent 50%), 
        radial-gradient(at 50% 0%, rgba(212, 175, 55, 0.15) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(94, 23, 235, 0.4) 0, transparent 50%),
        radial-gradient(at 50% 100%, rgba(94, 23, 235, 0.3) 0, transparent 50%);
    background-size: 200% 200%;
    animation: liquidBackground 15s ease infinite;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s;
}

body.light-mode {
    background-image: 
        radial-gradient(at 0% 0%, rgba(94, 23, 235, 0.22) 0, transparent 55%), 
        radial-gradient(at 50% 0%, rgba(212, 175, 55, 0.18) 0, transparent 50%), 
        radial-gradient(at 100% 0%, rgba(94, 23, 235, 0.22) 0, transparent 55%),
        radial-gradient(at 50% 100%, rgba(94, 23, 235, 0.15) 0, transparent 50%);
}

@keyframes liquidBackground {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

header {
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container img {
    height: 60px;
}

.logo-container span {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

nav a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

nav a:hover::after {
    width: 100%;
}

main {
    flex: 1;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.hero {
    text-align: center;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 5px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.glass-card {
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(200%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(200%);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 3.5rem;
    width: 100%;
    max-width: 1050px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 20px rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.01);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(212, 175, 55, 0.3);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
}

.feature-item {
    padding: 2rem;
    background: var(--feature-bg);
    border-radius: 15px;
    border: 1px solid var(--feature-border);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-item:hover {
    background: rgba(94, 23, 235, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--primary);
    margin-top: 1rem;
    cursor: pointer;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    box-shadow: 0 10px 25px rgba(94, 23, 235, 0.4);
    transform: translateY(-3px) scale(1.05);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--pure-white);
}

.btn-gold:hover {
    background: transparent;
    color: var(--gold);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

footer {
    padding: 3rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--glass-border);
    color: var(--text-color);
    opacity: 0.6;
}

footer a {
    color: #888;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

footer a:hover {
    color: var(--gold);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gold);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Admin Styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.status-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending { background: rgba(212, 175, 55, 0.2); color: var(--gold); }
.status-approved { background: rgba(0, 255, 0, 0.1); color: #00ff00; }
.status-rejected { background: rgba(255, 0, 0, 0.1); color: #ff0000; }

.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    font-size: 1.5rem;
    transition: all 0.5s ease;
}

/* Admin Layout (Sidebar) */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.sidebar-brand img {
    height: 40px;
}

.sidebar-brand span {
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
    font-size: 1.2rem;
}

.sidebar-nav {
    list-style: none;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--white);
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    transform: translateX(5px);
}

.admin-content {
    flex: 1;
    padding: 2rem 3rem;
    background: transparent;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.admin-header h1 {
    font-size: 2.2rem;
    color: var(--gold);
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .admin-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; }
    .sidebar-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
}

/* --- GLOBAL PREMIUM STYLING --- */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

select option {
    background: #1a1a1a;
    color: var(--white);
}

/* Custom Table Styling */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 1rem;
}

.admin-table th {
    text-align: left;
    padding: 12px 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    color: var(--gold);
}

.admin-table td {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.admin-table tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px 0 0 15px;
}

.admin-table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 15px 15px 0;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(212, 175, 55, 0.3);
}

/* --- CUSTOM BUTTONS --- */
.btn-premium {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135, var(--gold), #b38f00);
    color: var(--black);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    filter: brightness(1.1);
}

.btn-premium.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(5px);
}

.btn-premium.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--gold);
}

.btn-premium.danger {
    background: linear-gradient(135, #ff4d4d, #b30000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.3);
}

.btn-premium.danger:hover {
    box-shadow: 0 6px 20px rgba(255, 77, 77, 0.4);
}

/* --- TOAST NOTIFICATIONS --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 5px solid var(--gold);
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: #4dff88; }
.toast.error { border-left-color: #ff4d4d; }
.toast.info { border-left-color: #4db8ff; }

.toast-icon {
    font-size: 1.2rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 0.9rem;
    display: block;
}

.toast-message {
    font-size: 0.8rem;
    opacity: 0.8;
}
