/* ── RESET ──────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body, html { height: 100%; overflow: hidden; background-color: #f0f2f5; }

/* ── LOGIN ──────────────────────────────────────────────────────────────── */
.login-overlay { position: fixed; inset: 0; background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.login-box { background: white; padding: 45px 40px; border-radius: 12px; width: 360px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.login-logo { font-size: 3rem; margin-bottom: 10px; }
.login-box h2 { font-size: 1.6rem; color: #2c3e50; margin-bottom: 4px; }
.login-subtitle { color: #7f8c8d; font-size: 13px; margin-bottom: 25px; }
.login-box input { width: 100%; padding: 12px 14px; margin-bottom: 12px; border: 1.5px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color .2s; }
.login-box input:focus { outline: none; border-color: #27ae60; }
.btn-login { width: 100%; padding: 13px; background: #27ae60; color: white; border: none; border-radius: 6px; font-weight: bold; font-size: 15px; cursor: pointer; transition: background .2s; margin-top: 5px; }
.btn-login:hover { background: #219a52; }
.text-eroare { color: #e74c3c; margin-bottom: 10px; font-size: 13px; font-weight: bold; min-height: 18px; }

/* ── STRUCTURĂ APLICAȚIE ────────────────────────────────────────────────── */
.app-container { display: flex; flex-direction: column; height: 100vh; }
.app-header { background: white; padding: 12px 28px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #e0e0e0; box-shadow: 0 2px 4px rgba(0,0,0,.06); }
.logo { font-size: 18px; font-weight: 800; color: #2c3e50; letter-spacing: .5px; }
.user-info-box { display: flex; gap: 12px; align-items: center; font-size: 14px; color: #555; }
.btn-logout { background: #e74c3c; color: white; border: none; padding: 7px 14px; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: bold; transition: background .2s; }
.btn-logout:hover { background: #c0392b; }

/* ── TAB-URI ────────────────────────────────────────────────────────────── */
.tab-nav { display: flex; background: #2c3e50; }
.tab-btn { flex: 1; padding: 18px 10px; background: transparent; border: none; color: rgba(255,255,255,.75); font-size: 13px; font-weight: bold; cursor: pointer; border-bottom: 3px solid transparent; transition: all .2s; }
.tab-btn:hover { background: rgba(255,255,255,.08); color: white; }
.tab-btn.active { background: #34495e; border-bottom: 3px solid #27ae60; color: white; }

/* ── CONȚINUT ───────────────────────────────────────────────────────────── */
.tab-content-area { flex: 1; padding: 24px 28px; overflow-y: auto; }
.tab-sec { display: none; }
.tab-sec.active { display: block; }
.section-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-top h2 { font-size: 1.2rem; color: #2c3e50; }

/* ── CARDURI STATISTICI ─────────────────────────────────────────────────── */
.stats-bar { display: flex; gap: 14px; margin-bottom: 20px; }
.stat-card { flex: 1; background: white; border-radius: 10px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); border-left: 4px solid #ccc; }
.stat-card span { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card small { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #777; margin-top: 4px; }
.stat-cazati  { border-left-color: #27ae60; } .stat-cazati span { color: #27ae60; }
.stat-rezervari { border-left-color: #3498db; } .stat-rezervari span { color: #3498db; }
.stat-libere  { border-left-color: #2ecc71; } .stat-libere span { color: #2ecc71; }
.stat-ocupate { border-left-color: #e67e22; } .stat-ocupate span { color: #e67e22; }

/* ── BUTOANE ────────────────────────────────────────────────────────────── */
.btn-action { background: #2980b9; color: white; border: none; padding: 9px 18px; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 13px; transition: opacity .2s; }
.btn-action:hover { opacity: .85; }
.search-input { padding: 10px 14px; width: 300px; border: 1.5px solid #ddd; border-radius: 5px; font-size: 14px; transition: border-color .2s; }
.search-input:focus { outline: none; border-color: #3498db; }
.raport-filters { background: white; padding: 18px 20px; border-radius: 8px; display: flex; gap: 15px; align-items: flex-end; box-shadow: 0 2px 5px rgba(0,0,0,.08); }

/* ── TABELE ─────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.data-table th { background: #f8f9fa; color: #444; padding: 11px 14px; text-align: left; font-size: 13px; border-bottom: 2px solid #e9ecef; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #f0f0f0; font-size: 14px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fbff; }
.data-table tfoot td { background: #f8f9fa; font-size: 14px; padding: 12px 14px; border-top: 2px solid #e9ecef; }

/* ── BADGE-URI STATUS ───────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.badge-cazat     { background: #d4edda; color: #155724; }
.badge-rezervare { background: #cce5ff; color: #004085; }
.badge-finalizat { background: #e2e3e5; color: #383d41; }
.badge-noshow    { background: #f8d7da; color: #721c24; }

/* ── MODALS ─────────────────────────────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 10000; justify-content: center; align-items: center; }
.modal-box { background: white; padding: 30px; border-radius: 10px; width: 490px; max-width: 95vw; box-shadow: 0 10px 40px rgba(0,0,0,.25); animation: fadeSlide .2s ease; max-height: 90vh; overflow-y: auto; }
.modal-box h3 { margin-bottom: 20px; color: #2c3e50; border-bottom: 1px solid #eee; padding-bottom: 12px; font-size: 1.1rem; }
.input-group { margin-bottom: 14px; display: flex; flex-direction: column; }
.input-group label { margin-bottom: 5px; font-weight: 600; font-size: 13px; color: #444; }
.input-group input, .input-group select, .input-group textarea { padding: 10px 12px; border: 1.5px solid #ddd; border-radius: 5px; font-size: 14px; font-family: inherit; transition: border-color .2s; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { outline: none; border-color: #3498db; }
.form-row { display: flex; gap: 12px; }
.form-row .input-group { flex: 1; }
.discount-group { background: #fff9f0; padding: 10px; border-radius: 6px; border: 1px solid #fde8cc; }
.discount-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.modal-buttons { display: flex; gap: 10px; margin-top: 20px; }
.btn-save   { flex: 1; padding: 12px; background: #27ae60; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 14px; transition: background .2s; }
.btn-save:hover { background: #219a52; }
.btn-cancel { flex: 1; padding: 12px; background: #e74c3c; color: white; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 14px; transition: background .2s; }
.btn-cancel:hover { background: #c0392b; }
.req { color: #e74c3c; }
.info-block { background: #f8f9fa; padding: 14px; border-radius: 6px; font-size: 14px; line-height: 1.6; }

/* ── CALENDAR ───────────────────────────────────────────────────────────── */
.calendar-wrapper { max-height: 490px; overflow-y: auto; background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.label-sapt { min-width: 260px; text-align: center; margin: 0; background: #f1f2f6; padding: 9px 14px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.cal-ocupat    { color: #e67e22; font-weight: 600; }
.cal-rezervare { color: #3498db; font-weight: 600; }
.cal-liber     { color: #27ae60; }

/* ── ICON NOTIȚĂ ────────────────────────────────────────────────────────── */
.icon-notita { cursor: pointer; margin-left: 6px; opacity: .8; transition: opacity .15s, transform .15s; display: inline-block; }
.icon-notita:hover { opacity: 1; transform: scale(1.2); }

/* ── TOAST-URI ──────────────────────────────────────────────────────────── */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { padding: 13px 18px; border-radius: 7px; color: white; font-size: 14px; font-weight: 600; max-width: 360px; opacity: 0; transform: translateX(110%); transition: opacity .3s, transform .3s; box-shadow: 0 4px 16px rgba(0,0,0,.18); pointer-events: auto; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: #27ae60; }
.toast-error   { background: #e74c3c; }
.toast-warning { background: #f39c12; }
.toast-info    { background: #3498db; }

/* ── ANIMAȚII ───────────────────────────────────────────────────────────── */
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
