/* ==============================
   2025 트렌드 컬러 팔레트
   ============================== */
:root {
    /* Primary Colors */
    --moss-green: #8A9A5B;
    --electric-blue: #00ADEF;
    --cherry-red: #B02B2B;
    --butter-yellow: #FFE156;
    --alpine-oat: #E6D3A3;
    
    /* Secondary Colors */
    --royal-purple: #6200EE;
    --mint-green: #D1FFD8;
    --lavender: #E6E6FA;
    --jet-black: #121212;
    
    /* UI Colors */
    --bg-primary: #FAFAFA;
    --bg-secondary: #FFFFFF;
    --text-primary: #121212;
    --text-secondary: #666666;
    --border-color: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Status Colors */
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: var(--electric-blue);
}

/* ==============================
   Reset & Base Styles
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==============================
   Layout
   ============================== */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active,
.screen:not(.hidden) {
    display: block;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    padding-bottom: 80px; /* Footer 공간 */
}

/* ==============================
   Loading Overlay
   ============================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--alpine-oat);
    border-top: 4px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==============================
   Login Screen
   ============================== */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--moss-green) 0%, var(--electric-blue) 100%);
}

.login-container {
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 60px;
    color: var(--moss-green);
    margin-bottom: 10px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.creator {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ==============================
   Header
   ============================== */
.app-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--moss-green) 0%, var(--electric-blue) 100%);
    color: white;
    padding: 16px 20px;
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content h2 {
    font-size: 20px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.icon-btn:active {
    transform: scale(0.95);
}

/* ==============================
   Tab Navigation
   ============================== */
.tab-nav {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 72px;
    z-index: 99;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-bottom: 3px solid transparent;
}

.tab-btn i {
    font-size: 20px;
}

.tab-btn.active {
    color: var(--electric-blue);
    border-bottom-color: var(--electric-blue);
    font-weight: 600;
}

.tab-btn.hidden {
    display: none;
}

/* ==============================
   Tab Content
   ============================== */
.tab-content {
    display: none;
    animation: fadeIn 0.3s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==============================
   Cards
   ============================== */
.card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px var(--shadow);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* ==============================
   Week Progress Card
   ============================== */
.week-progress-card {
    text-align: center;
    background: linear-gradient(135deg, var(--lavender) 0%, var(--mint-green) 100%);
}

.progress-ring {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 8;
}

.progress-ring-fill {
    fill: none;
    stroke: var(--electric-blue);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.5s ease;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.progress-text span {
    font-size: 32px;
}

.week-range {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 14px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-value.warning {
    color: var(--cherry-red);
}

/* ==============================
   Member List
   ============================== */
.member-list {
    display: grid;
    gap: 12px;
}

.member-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--alpine-oat);
    border-radius: 12px;
    transition: transform 0.2s;
}

.member-card:hover {
    transform: translateY(-2px);
}

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 48px;
    height: 48px;
    background: var(--moss-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.member-details h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.member-details p {
    font-size: 12px;
    color: var(--text-secondary);
}

.member-progress {
    text-align: right;
}

.member-progress .progress-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--electric-blue);
}

.member-progress .progress-total {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==============================
   Feed
   ============================== */
.feed {
    display: grid;
    gap: 16px;
}

.feed-item {
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border-left: 4px solid var(--electric-blue);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.feed-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feed-avatar {
    width: 36px;
    height: 36px;
    background: var(--moss-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.feed-user-info h5 {
    font-size: 14px;
    margin-bottom: 2px;
}

.feed-user-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.feed-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.feed-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.feed-photo {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--alpine-oat);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-photo i {
    font-size: 32px;
    color: var(--text-secondary);
}

/* ==============================
   Checkin Tab
   ============================== */
.today-date {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--moss-green);
    margin-bottom: 20px;
}

.today-status {
    text-align: center;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
}

.status-badge.unchecked {
    background: var(--alpine-oat);
    color: var(--text-secondary);
}

.status-badge.checked {
    background: var(--success);
    color: white;
}

.status-badge.failed {
    background: var(--danger);
    color: white;
}

.upload-area {
    text-align: center;
    padding: 32px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
}

.btn-upload {
    background: var(--electric-blue);
    color: white;
    font-size: 16px;
    margin-bottom: 12px;
}

.btn-upload i {
    margin-right: 8px;
}

.upload-info {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-area {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.preview-area.hidden {
    display: none;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--alpine-oat);
}

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

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==============================
   Photo Grid
   ============================== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--alpine-oat);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.photo-item:hover .photo-delete {
    opacity: 1;
}

/* ==============================
   Comments
   ============================== */
.comments-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.comment-item {
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--moss-green);
}

.comment-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.comment-content {
    font-size: 14px;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    gap: 8px;
}

.comment-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

.comment-form .btn {
    padding: 12px 20px;
}

/* ==============================
   Profile
   ============================== */
.profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--alpine-oat);
    border-radius: 12px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: var(--moss-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
}

.profile-details h4 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-details p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ==============================
   Settings
   ============================== */
.settings-section {
    margin-top: 24px;
}

.setting-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.setting-item select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background: var(--bg-primary);
}

.toggle {
    width: 50px;
    height: 26px;
    position: relative;
    appearance: none;
    background: var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle:checked {
    background: var(--electric-blue);
}

.toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.toggle:checked::before {
    transform: translateX(24px);
}

/* ==============================
   Monthly Stats
   ============================== */
.monthly-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-box {
    padding: 16px;
    background: var(--alpine-oat);
    border-radius: 12px;
    text-align: center;
}

.stat-box .stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-box .stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ==============================
   Calendar
   ============================== */
.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

.calendar-day.header {
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
}

.calendar-day.success {
    background: var(--success);
    color: white;
    font-weight: 600;
}

.calendar-day.failed {
    background: var(--alpine-oat);
    color: var(--text-secondary);
}

.calendar-day.today {
    border: 2px solid var(--electric-blue);
    font-weight: 600;
}

/* ==============================
   Settlement Tables
   ============================== */
.period-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px;
    background: var(--alpine-oat);
    border-radius: 8px;
}

.period-selector span {
    font-size: 18px;
    font-weight: 600;
}

.settlement-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 13px;
}

.settlement-table th,
.settlement-table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.settlement-table th {
    background: var(--alpine-oat);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.settlement-table td {
    background: var(--bg-secondary);
}

.settlement-table tr:hover td {
    background: var(--bg-primary);
}

.export-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.export-buttons .btn {
    flex: 1;
    min-width: 100px;
}

/* ==============================
   Admin Member List
   ============================== */
.admin-member-list {
    margin-top: 16px;
}

.admin-member-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--alpine-oat);
    border-radius: 12px;
    margin-bottom: 12px;
}

.admin-member-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.admin-member-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.admin-member-actions {
    display: flex;
    gap: 8px;
}

.admin-member-actions .btn {
    padding: 8px 12px;
    font-size: 12px;
}

/* ==============================
   Forms
   ============================== */
.form {
    display: grid;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group select {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-secondary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--electric-blue);
}

.info-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==============================
   Buttons
   ============================== */
.btn {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--electric-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 173, 239, 0.3);
}

.btn-primary:hover {
    background: #0094d0;
}

.btn-secondary {
    background: var(--moss-green);
    color: white;
}

.btn-secondary:hover {
    background: #788a4f;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-small {
    padding: 8px 16px;
    font-size: 13px;
}

.btn.hidden {
    display: none;
}

/* ==============================
   Modals
   ============================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px var(--shadow);
    animation: slideUp 0.3s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* input, textarea, select는 선택 가능하도록 */
.modal-content input,
.modal-content textarea,
.modal-content select {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--electric-blue);
}

.modal-content .form {
    padding: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.modal-actions .btn {
    min-width: 100px;
}

/* ==============================
   Guidelines
   ============================== */
.guideline-section {
    margin-bottom: 32px;
}

.guideline-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--moss-green);
}

.guideline-section p {
    margin-bottom: 12px;
    line-height: 1.8;
}

.guideline-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.guideline-section li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ==============================
   Footer
   ============================== */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 12px 20px;
    text-align: center;
    z-index: 98;
}

.link-btn {
    background: none;
    border: none;
    color: var(--electric-blue);
    font-size: 13px;
    cursor: pointer;
    margin: 0 8px;
    text-decoration: underline;
}

.link-btn:hover {
    color: var(--moss-green);
}

.creator-footer {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ==============================
   Auth Tabs
   ============================== */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab.active {
    background: var(--electric-blue);
    color: white;
    border-color: var(--electric-blue);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--text-primary);
}

/* ==============================
   Rooms List
   ============================== */
.rooms-list {
    display: grid;
    gap: 16px;
}

.room-card {
    background: var(--alpine-oat);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.room-card:hover {
    border-color: var(--electric-blue);
    transform: translateY(-2px);
}

.room-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.room-card-header h4 {
    font-size: 18px;
    margin: 0;
}

.room-card-actions {
    display: flex;
    gap: 8px;
}

.room-card-body {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.room-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.room-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.room-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.room-card-footer {
    display: flex;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.room-card-footer .btn {
    flex: 1;
}

/* ==============================
   Utilities
   ============================== */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ==============================
   Responsive
   ============================== */
@media (max-width: 360px) {
    .container {
        padding: 12px;
    }
    
    .card {
        padding: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .stats {
        flex-direction: column;
        gap: 12px;
    }
}

/* ==============================
   Scrollbar (Webkit)
   ============================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
