* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; height: 100vh; overflow: hidden; }
.app { display: flex; flex-direction: column; height: 100vh; }

/* ===== Header ===== */
.header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.header h1 { font-size: 22px; cursor: pointer; user-select: none; }
.header h1:hover { opacity: 0.8; }
.header .header-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.header .header-btn { background: rgba(255,255,255,0.2); border: none; color: white; padding: 8px 20px; border-radius: 20px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.header .header-btn:hover { background: rgba(255,255,255,0.35); }
.header .header-btn.add { background: rgba(46, 204, 113, 0.6); }
.header .header-btn.add:hover { background: rgba(46, 204, 113, 0.8); }

/* ===== Main ===== */
.main { display: flex; flex: 1; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar { width: 300px; min-width: 300px; background: white; border-right: 1px solid #e8ecf1; overflow-y: auto; padding: 12px; }
.sidebar .country { font-weight: 600; color: #2c3e50; padding: 6px 8px; cursor: pointer; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.sidebar .country:hover { background: #f0f2f5; }
.sidebar .country .arrow { font-size: 12px; transition: transform 0.2s; }
.sidebar .country .arrow.open { transform: rotate(90deg); }
.sidebar .hotel-item { padding: 4px 8px 4px 24px; cursor: pointer; border-radius: 4px; font-size: 14px; color: #555; }
.sidebar .hotel-item:hover { background: #f0f2f5; }
.sidebar .hotel-item.active { background: #667eea; color: white; }
.sidebar .hotel-item .stars { color: #f39c12; font-size: 12px; }
.sidebar .hotel-item.active .stars { color: #f1c40f; }

/* ===== Content ===== */
.content { flex: 1; padding: 24px; overflow-y: auto; background: #f8f9fa; }

/* ===== Card ===== */
.card { background: white; border-radius: 12px; padding: 30px; max-width: 900px; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card .hotel-name { font-size: 28px; font-weight: 700; color: #2c3e50; }
.card .hotel-stars { color: #f39c12; font-size: 22px; }
.card .hotel-location { color: #666; font-size: 16px; margin: 4px 0 16px; }
.card .field { margin-bottom: 12px; }
.card .field-label { font-weight: 600; color: #555; font-size: 14px; display: block; margin-bottom: 2px; }
.card .field-value { color: #333; font-size: 15px; line-height: 1.6; padding: 8px 12px; background: #f8f9fa; border-radius: 6px; white-space: pre-wrap; }
.card .field-value .video-link { display: block; color: #667eea; text-decoration: none; }
.card .field-value .video-link:hover { text-decoration: underline; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.card .tag { background: #667eea; color: white; padding: 4px 12px; border-radius: 16px; font-size: 13px; }
.card .empty-state { text-align: center; color: #999; padding: 60px 0; }
.card .empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.card input, .card textarea, .card select { width: 100%; padding: 8px 12px; border: 2px solid #e1e5eb; border-radius: 6px; font-size: 14px; font-family: inherit; }
.card input:focus, .card textarea:focus, .card select:focus { outline: none; border-color: #667eea; }
.card textarea { resize: vertical; min-height: 60px; }

/* ===== Buttons ===== */
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn { padding: 8px 20px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.btn-primary { background: #667eea; color: white; }
.btn-primary:hover { background: #5a6fd6; }
.btn-success { background: #27ae60; color: white; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }
.btn-warning { background: #f39c12; color: white; }
.btn-warning:hover { background: #d68910; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-secondary:hover { background: #7f8c8d; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Add Page ===== */
.add-page { background: white; border-radius: 12px; padding: 30px; max-width: 1000px; margin: 0 auto; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.add-page h2 { font-size: 24px; color: #2c3e50; margin-bottom: 24px; }
.add-page .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.add-page .form-grid .full-width { grid-column: span 2; }
.add-page .form-group { margin-bottom: 4px; }
.add-page .form-group label { display: block; font-weight: 600; font-size: 14px; color: #555; margin-bottom: 4px; }
.add-page .form-group input, .add-page .form-group select, .add-page .form-group textarea { width: 100%; padding: 10px 14px; border: 2px solid #e1e5eb; border-radius: 8px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; }
.add-page .form-group input:focus, .add-page .form-group select:focus, .add-page .form-group textarea:focus { outline: none; border-color: #667eea; }
.add-page .form-group textarea { resize: vertical; min-height: 60px; }
.add-page .form-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ===== Modal ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.modal-overlay.active { display: flex; }
.modal { background: white; border-radius: 12px; padding: 30px; max-width: 500px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal h2 { margin-bottom: 20px; color: #2c3e50; }
.modal .form-group { margin-bottom: 14px; }
.modal .form-group label { display: block; font-weight: 600; font-size: 14px; color: #555; margin-bottom: 4px; }
.modal .form-group input, .modal .form-group select { width: 100%; padding: 8px 12px; border: 2px solid #e1e5eb; border-radius: 6px; font-size: 14px; }
.modal .form-group input:focus, .modal .form-group select:focus { outline: none; border-color: #667eea; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

.modal-confirm { background: white; border-radius: 12px; padding: 30px; max-width: 400px; width: 90%; text-align: center; }
.modal-confirm h3 { font-size: 18px; color: #2c3e50; margin-bottom: 12px; }
.modal-confirm p { color: #666; margin-bottom: 20px; }
.modal-confirm .btn-group { display: flex; gap: 10px; justify-content: center; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .sidebar { width: 200px; min-width: 200px; }
    .card, .add-page { padding: 16px; }
    .header h1 { font-size: 18px; }
    .add-page .form-grid { grid-template-columns: 1fr; }
    .add-page .form-grid .full-width { grid-column: span 1; }
}

/* ===== Print ===== */
@media print {
    .header, .sidebar, .actions, .no-print { display: none !important; }
    .content { padding: 0 !important; background: white !important; }
    .card { box-shadow: none !important; border: none !important; max-width: 100% !important; }
}
