:root {
    --primary: #f59e0b; /* Energetic Amber */
    --secondary: #10b981; /* Success Green */
    --danger: #ef4444;
    --dark: #0f172a;
    --darker: #020617;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: radial-gradient(circle at top right, #1e293b, var(--darker));
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.6s ease-out;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Form Elements */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

input, select {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: white;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    border-color: var(--primary);
    outline: none;
    background: rgba(0, 0, 0, 0.4);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: var(--darker);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.5);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

/* Specific Components */
.profile-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary);
    margin: 0 auto 1.5rem;
}

.profile-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
}

.code-display {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: var(--primary);
    text-align: center;
    padding: 2rem;
    border: 2px dashed var(--primary);
    border-radius: 20px;
    margin: 1.5rem 0;
    animation: pulse 2s infinite;
}
.badge { padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; }
.badge-active { background: rgba(16, 185, 129, 0.1); color: var(--secondary); border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-pending { background: rgba(245, 158, 11, 0.1); color: var(--primary); border: 1px solid rgba(245, 158, 11, 0.2); }
.badge-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

/* Responsive Tables as Cards */
@media (max-width: 992px) {
    .user-table thead { display: none; }
    .user-table, .user-table tbody, .user-table tr, .user-table td { display: block; width: 100%; border: none; }
    .user-table tr { 
        margin-bottom: 2rem; 
        background: rgba(255,255,255,0.03); 
        border: 1px solid var(--glass-border); 
        border-radius: 24px; 
        padding: 1.5rem; 
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
        animation: fadeInUp 0.5s ease;
    }
    .user-table td { 
        text-align: right; 
        padding: 1rem 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        min-height: 50px;
    }
    .user-table td:last-child { border-bottom: none; margin-top: 10px; }
    .user-table td::before { 
        content: attr(data-label); 
        font-weight: 800; 
        color: var(--primary); 
        text-transform: uppercase; 
        font-size: 0.75rem; 
        letter-spacing: 1px;
    }
    .user-table td div { text-align: right; }
    .thumbnail { width: 60px; height: 60px; }
}

@keyframes pulse-red { 
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.overdue-pulse { color: var(--danger); animation: pulse-red 1.5s infinite; }
