:root {
    --thm-red: #E60032;
    --thm-red-dark: #b30027;
    --thm-dark: #2B2525;
    
    --dark-gray: #212529;
    --gray: #343A40;
    
    --background: #F8F9FA;
    --surface: #FFFFFF;
    
    --text-primary: #212529;
    --text-secondary: #6C757D;
    
    --border: #EAEAEA;
    --input-bg: #FFFFFF;
    --input-border: #D1D5DB;
    --danger: #DC3545;
    --warning: #F59E0B;
    --success: #10B981;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    min-height: 100vh;
}

/* Split Login Page */
.split-page {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.split-left {
    flex: 1;
    background-color: var(--thm-dark);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.split-left::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, rgba(230,0,50,0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(230,0,50,0.05), transparent 40%);
    pointer-events: none;
}

.branding .logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 120px;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background-color: var(--thm-red);
    border-radius: 4px;
    margin-right: 12px;
    display: inline-block;
    position: relative;
}
.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 4px; left: 6px; right: 6px; height: 10px;
    border: 2px solid white;
    border-bottom: none;
    border-radius: 2px 2px 0 0;
}

.logo-icon-small {
    width: 16px; height: 16px; background-color: var(--thm-red); border-radius: 3px; display: inline-block; margin-right: 8px; vertical-align: middle; position: relative;
}
.logo-icon-small::after {
    content:''; position:absolute; bottom:3px; left:4px; right:4px; height:6px; border:1px solid white; border-bottom:none; border-radius:1px 1px 0 0;
}

.branding .badge {
    background-color: rgba(230,0,50,0.2);
    color: #ff6b8b;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.branding h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 600;
}

.branding p {
    color: #A09E9E;
    font-size: 16px;
    max-width: 400px;
    line-height: 1.5;
}

.stats-row {
    display: flex;
    gap: 16px;
}

.stat-box {
    background: rgba(255,255,255,0.05);
    padding: 16px 24px;
    border-radius: 8px;
    flex: 1;
}

.stat-box h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-box span {
    color: #A09E9E;
    font-size: 12px;
}

.split-right {
    flex: 1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.password-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.password-label-row label { margin-bottom: 0; }
.forgot-link {
    color: var(--thm-red);
    font-size: 13px;
    text-decoration: none;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--thm-red);
    box-shadow: 0 0 0 3px rgba(230,0,50,0.1);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--thm-red);
    color: white;
}

.btn-primary:hover {
    background-color: var(--thm-red-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background-color: #f1f1f1;
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 8px 16px;
}
.btn-outline.active {
    border-color: var(--thm-red);
    color: var(--thm-red);
}

.register-link-container {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-secondary);
}
.register-link-container a {
    color: var(--thm-red);
    text-decoration: none;
    font-weight: 500;
}

.terms-text {
    text-align: center;
    margin-top: 60px;
    font-size: 12px;
    color: #adb5bd;
}

/* Dashboard */
.navbar {
    background-color: white;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.navbar-center {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
}

.nav-link.active {
    color: var(--text-primary);
    border-bottom-color: var(--thm-red);
}

.navbar-end {
    display: flex;
    align-items: center;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}
#userNameDisplay {
    font-weight: 600;
    font-size: 14px;
}
.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--thm-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.date-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dashboard-header h1 {
    font-size: 28px;
    margin-bottom: 4px;
}

.dashboard-header .subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

.stat-icon {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(230,0,50,0.1); margin-bottom: 16px;
}
.icon-building { background: rgba(230,0,50,0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23E60032" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2" width="16" height="20" rx="2" ry="2"></rect><path d="M9 22v-4h6v4"></path><path d="M8 6h.01"></path><path d="M16 6h.01"></path><path d="M12 6h.01"></path><path d="M12 10h.01"></path><path d="M12 14h.01"></path><path d="M16 10h.01"></path><path d="M16 14h.01"></path><path d="M8 10h.01"></path><path d="M8 14h.01"></path></svg>') no-repeat center; }
.icon-check { background: rgba(230,0,50,0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23E60032" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>') no-repeat center; }
.icon-calendar { background: rgba(230,0,50,0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23E60032" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center; }
.icon-chart { background: rgba(230,0,50,0.1) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23E60032" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="20" x2="18" y2="10"></line><line x1="12" y1="20" x2="12" y2="4"></line><line x1="6" y1="20" x2="6" y2="14"></line></svg>') no-repeat center; }

.stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.stat-label {
    font-size: 13px;
    font-weight: 600;
}
.stat-sublabel {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 16px;
}
.view-all {
    color: var(--thm-red);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

.reservation-cards-list {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.res-card-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.res-card-item:last-child {
    border-bottom: none;
}
.res-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
}
.res-month { font-size: 10px; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; }
.res-day { font-size: 18px; font-weight: 700; }
.res-details {
    flex: 1;
}
.res-room { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.res-time { font-size: 12px; color: var(--text-secondary); }

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge.CONFIRMED { background-color: rgba(16,185,129,0.1); color: #10B981; }
.status-badge.PENDING { background-color: rgba(245,158,11,0.1); color: #F59E0B; }
.status-badge.REJECTED { background-color: rgba(220,53,69,0.1); color: #DC3545; }
.status-badge.CANCELLED { background-color: #f1f3f5; color: #6c757d; }

.building-occupancy {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}
.live-badge {
    background: rgba(230,0,50,0.1); color: var(--thm-red); font-size: 10px; padding: 2px 6px; border-radius: 4px; font-weight: 600;
}
.occupancy-item { margin-bottom: 16px; }
.occupancy-item:last-child { margin-bottom: 0; }
.occ-header { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.progress-bar { width: 100%; height: 6px; background: #f1f3f5; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.progress-fill { height: 100%; background: var(--thm-red); border-radius: 3px; }
.progress-fill.warning { background: var(--warning); }
.progress-fill.success { background: var(--success); }
.progress-fill.danger { background: var(--danger); }
.occ-footer { font-size: 11px; color: var(--text-secondary); }

.quick-actions {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.quick-actions h2 { font-size: 16px; margin-bottom: 16px; }
.action-buttons { display: flex; gap: 8px; }

/* Table Styles */
.table-wrapper { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; background: #fafafa; }
.table tbody tr:last-child td { border-bottom: none; }

.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }

.error-text { margin-top: 5px; font-size: 13px; font-weight: 500; }
