﻿/* ============================================
   HAYANI KOST - PURPLE THEME
   ============================================ */
:root {
    --purple: #6a1b9a;
    --purple-light: #8e24aa;
    --purple-dark: #4a0072;
    --navy: #0a2540;
    --white: #ffffff;
    --off-white: #faf9f8;
    --gray-light: #eef2f5;
    --gray-dark: #5a6e7c;
    --text-dark: #1e2a3a;
    --success: #2e8b57;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--off-white); color: var(--text-dark); font-weight: 400; }

.sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100vh; background: var(--navy); z-index: 1000; overflow-y: auto; transition: transform 0.3s ease; }
.logo { text-align: center; padding: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.logo-icon { font-size: 1rem; letter-spacing: 4px; font-weight: 600; color: var(--white); }
.logo-sub { font-size: 0.55rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

.nav-menu { list-style: none; padding: 0.75rem; }
.nav-item { margin-bottom: 0.25rem; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(255,255,255,0.7); border-radius: 8px; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.nav-link:hover { background: rgba(255,255,255,0.1); color: white; }
.nav-link.active { background: var(--purple); color: white; }

.user-profile { display: flex; align-items: center; gap: 12px; padding: 1rem; margin: 0.75rem; background: rgba(255,255,255,0.08); border-radius: 12px; }
.user-name { font-size: 0.75rem; font-weight: 600; color: white; }
.user-role { font-size: 0.55rem; color: rgba(255,255,255,0.5); }
.logout-btn { background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7); padding: 6px 10px; border-radius: 8px; cursor: pointer; }

.main-content { margin-left: 280px; padding: 1.5rem; min-height: 100vh; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--gray-light); }
.page-title { font-size: 0.9rem; font-weight: 600; letter-spacing: 2px; color: var(--purple-dark); }
.page-subtitle { font-size: 0.7rem; color: var(--gray-dark); margin-top: 0.25rem; }

.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; padding: 1rem; text-align: center; }
.stat-number { font-size: 1.5rem; font-weight: 600; color: var(--purple); }
.stat-label { font-size: 0.6rem; color: var(--gray-dark); margin-top: 0.25rem; }

.section { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden; }
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-light); }
.section-title { font-size: 0.7rem; font-weight: 600; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; padding: 1rem; }
.room-card { background: var(--white); border: 1px solid var(--gray-light); border-radius: 12px; padding: 1rem; text-align: center; }
.room-number { font-size: 1rem; font-weight: 600; color: var(--navy); }
.room-type { font-size: 0.6rem; color: var(--gray-dark); margin-top: 4px; }
.room-price { font-size: 0.7rem; font-weight: 600; color: var(--purple); margin-top: 0.5rem; }
.room-status { font-size: 0.6rem; padding: 2px 8px; border-radius: 20px; display: inline-block; margin-top: 0.5rem; }
.status-occupied { background: rgba(106,27,154,0.1); color: var(--purple-dark); }
.status-empty { background: rgba(46,139,86,0.1); color: var(--success); }

.timeline-list { max-height: 500px; overflow-y: auto; }
.timeline-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-light); }
.timeline-time { min-width: 80px; font-size: 0.65rem; color: var(--gray-dark); }
.timeline-content { flex: 1; }
.timeline-title { font-size: 0.75rem; font-weight: 600; }
.timeline-subtitle { font-size: 0.65rem; color: var(--gray-dark); margin-top: 2px; }

.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }

.btn-primary { background: var(--purple); color: white; border: none; padding: 8px 16px; font-size: 0.7rem; border-radius: 8px; cursor: pointer; }
.btn-icon { background: transparent; border: none; color: var(--gray-dark); padding: 4px 8px; cursor: pointer; }

.loading { text-align: center; padding: 2rem; color: var(--gray-dark); }
.empty-state { text-align: center; padding: 2rem; color: var(--gray-dark); font-size: 0.7rem; }

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 60px 12px 20px 12px; }
    .stats-row { grid-template-columns: repeat(2,1fr); }
    .two-columns { grid-template-columns: 1fr; }
    .menu-toggle { display: block; position: fixed; top: 12px; left: 12px; z-index: 1001; background: var(--purple); color: white; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
}
.menu-toggle { display: none; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
