/* 
   Rotale - Premium Hytale Theme 
   Inspired by Hytale's dark fantasy/adventure UI 
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors - Void & Stone */
    --c-bg-darkest: #07090e;
    --c-bg-page: #0b0f19;
    --c-bg-panel: #151a25;
    --c-bg-panel-light: #1e2535;

    /* Colors - Accents */
    --c-gold: #cea568;
    --c-gold-shine: #ffd700;
    --c-blue-magic: #00b0d4;
    --c-blue-glow: #38f4ff;
    --c-danger: #e74c3c;
    --c-success: #2ecc71;

    /* Text */
    --c-text-main: #f0f4f8;
    --c-text-muted: #94a3b8;

    /* Effects */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --glow-gold: 0 0 10px rgba(206, 165, 104, 0.3);
    --glow-blue: 0 0 15px rgba(0, 176, 212, 0.3);

    --border-panel: 1px solid rgba(255, 255, 255, 0.08);
    --border-gold: 1px solid var(--c-gold);
}

/* Global Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--c-text-main);
    background-color: var(--c-bg-page);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(0, 176, 212, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(206, 165, 104, 0.03), transparent 25%);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #fff;
    margin-top: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

a {
    color: var(--c-gold);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--c-blue-magic);
    text-shadow: var(--glow-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* --- Components: Navbar --- */
.main-header {
    background: rgba(7, 9, 14, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-flex {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo img {
    height: 50px;
    filter: drop-shadow(0 0 5px rgba(0, 176, 212, 0.5));
    transition: transform 0.3s;
}

.brand-logo:hover img {
    transform: scale(1.05) rotate(-2deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--c-gold);
    transition: 0.3s;
    box-shadow: var(--glow-gold);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Components: Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 2px;
    /* Slight rounding but keep blocky feel */
    position: relative;
    overflow: hidden;
}

/* Hytale Button Style (Clip path alternative with borders) */
.btn-primary {
    background: linear-gradient(135deg, var(--c-gold) 0%, #b88a4d 100%);
    color: #0d1117;
    border: 1px solid #ffeebb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(206, 165, 104, 0.6);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-gold);
    color: var(--c-gold);
}

.btn-outline:hover {
    background: rgba(206, 165, 104, 0.1);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(206, 165, 104, 0.2);
}

.btn-danger {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    color: white;
    border: 1px solid #ff7b7b;
}

.btn-success {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    color: white;
    border: 1px solid #85eeba;
}

/* --- Components: Cards --- */
.card {
    background: var(--c-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

/* Fancy top border for cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--c-blue-magic), transparent);
    opacity: 0.5;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--glow-blue);
    border-color: rgba(0, 176, 212, 0.3);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--c-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #0d1117;
    border: 1px solid #2a3b55;
    color: white;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--c-gold);
    box-shadow: 0 0 0 3px rgba(206, 165, 104, 0.15);
}

/* --- Admin Layout --- */
.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 81px);
    /* Header offset */
}

.admin-sidebar {
    background: #0d1117;
    border-right: 1px solid #1e2535;
    padding: 2rem 1rem;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--c-text-muted);
    border-radius: 6px;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--c-bg-panel-light);
    color: var(--c-gold);
}

.admin-content {
    padding: 2rem;
    background: #0b0f19;
}

/* --- Data Tables --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-bg-panel);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.data-table th {
    background: #0f131c;
    color: var(--c-text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #1e2535;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #1e2535;
    color: var(--c-text-main);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-pending {
    background: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-admin {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-user {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-approved {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* --- Footer --- */
.main-footer {
    margin-top: auto;
    /* Push to bottom */
    background: #050608;
    padding: 3rem 0;
    border-top: 1px solid #1e2535;
    text-align: center;
    color: #4b5563;
}