/* =============================================
   HAREMEYN ŞERİFEYN TURİZM - ANA STİL DOSYASI
   Renk Teması: Koyu Yeşil, Altın, Siyah
   ============================================= */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS DEĞİŞKENLERİ === */
:root {
    --primary: #1a5c2a;
    --primary-dark: #0e3d1a;
    --primary-light: #2d7a3f;
    --gold: #d4af37;
    --gold-light: #e6c960;
    --gold-dark: #b8941f;
    --dark: #0a1628;
    --dark-card: #111d30;
    --dark-card-hover: #162540;
    --text: #e8e8e8;
    --text-muted: #8899aa;
    --text-dark: #1a1a1a;
    --border: rgba(212, 175, 55, 0.15);
    --border-light: rgba(255, 255, 255, 0.08);
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --sidebar-width: 270px;
    --header-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--gold);
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* === LAYOUT === */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    transition: var(--transition);
}

.page-content {
    padding: 28px;
    max-width: 1400px;
    margin: 0 auto;
}

/* === SIDEBAR === */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0b1f10 100%);
    border-right: 1px solid var(--border);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: var(--transition);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-logo {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: 10px;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.sidebar-brand {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

.sidebar-subtitle {
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-section-title {
    padding: 12px 24px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 11px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
    gap: 12px;
    cursor: pointer;
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold-light);
    border-left-color: var(--gold);
}

.nav-item.active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border-left-color: var(--gold);
    font-weight: 600;
}

.nav-item .nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item .nav-badge {
    margin-left: auto;
    background: var(--gold);
    color: var(--dark);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    min-width: 22px;
    text-align: center;
}

/* === TOP HEADER === */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 999;
    transition: var(--transition);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.page-title span {
    color: var(--gold);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: var(--transition);
}

.header-user:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.user-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.user-info .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.25);
    color: #ff6b6b;
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb .separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--gold);
    font-weight: 500;
}

/* === CARDS === */
.card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.card-header h2,
.card-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

/* === STAT CARDS (Dashboard) === */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(212, 175, 55, 0.3);
}

.stat-card .stat-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card.green::before {
    background: linear-gradient(90deg, var(--success), #27ae60);
}

.stat-card.blue::before {
    background: linear-gradient(90deg, var(--info), #2980b9);
}

.stat-card.red::before {
    background: linear-gradient(90deg, var(--danger), #c0392b);
}

.stat-card.orange::before {
    background: linear-gradient(90deg, var(--warning), #e67e22);
}

/* === TABLES === */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

table thead th {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

table tbody td {
    padding: 12px 16px;
    font-size: 13.5px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
}

table tbody tr {
    transition: var(--transition);
}

table tbody tr:hover {
    background: rgba(212, 175, 55, 0.04);
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* === FORMS === */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.form-group label .required {
    color: var(--danger);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23d4af37' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.form-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.form-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === CHECKBOX / TOGGLE === */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
}

.form-check input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
}

.form-check input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.form-check input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--dark);
    font-size: 13px;
    font-weight: 700;
}

.form-check label {
    font-size: 13.5px;
    color: var(--text);
    cursor: pointer;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--dark);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #27ae60);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: #fff;
}

.btn-info {
    background: linear-gradient(135deg, var(--info), #2980b9);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 8px;
    font-size: 16px;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #2ee070, #16a085);
    color: #fff;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === BADGES === */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-hac {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-umre {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-success {
    background: rgba(46, 204, 113, 0.15);
    color: var(--success);
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-danger {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.badge-info {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* === ALERT / FLASH MESSAGES === */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: var(--success);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: var(--info);
}

/* === MODAL === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 16px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--danger);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* === FILE UPLOAD === */
.file-upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0, 0, 0, 0.15);
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.file-upload-zone .upload-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.file-upload-zone p {
    color: var(--text-muted);
    font-size: 13px;
}

.file-upload-zone .browse-text {
    color: var(--gold);
    font-weight: 600;
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-top: 10px;
}

.file-preview img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.file-preview .file-info {
    flex: 1;
}

.file-preview .file-name {
    font-size: 13px;
    font-weight: 500;
}

.file-preview .file-size {
    font-size: 11px;
    color: var(--text-muted);
}

/* === CHECKLIST === */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item.checked label {
    text-decoration: line-through;
    color: var(--text-muted);
}

.checklist-item .check-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* === DRAG & DROP ROOMS === */
.rooms-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.unassigned-list {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 70vh;
    overflow-y: auto;
}

.unassigned-list .list-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
    position: sticky;
    top: 0;
    background: var(--dark-card);
    z-index: 1;
}

.draggable-person {
    padding: 10px 18px;
    border-bottom: 1px solid var(--border-light);
    cursor: grab;
    transition: var(--transition);
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.draggable-person:hover {
    background: rgba(212, 175, 55, 0.06);
}

.draggable-person:active {
    cursor: grabbing;
}

.draggable-person.dragging {
    opacity: 0.5;
    background: rgba(212, 175, 55, 0.1);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    align-content: start;
}

.room-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 140px;
    transition: var(--transition);
}

.room-card.drag-over {
    border-color: var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

.room-card .room-header {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
}

.room-card .room-header .capacity {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.room-card .room-body {
    padding: 10px;
    min-height: 60px;
}

.room-occupant {
    padding: 6px 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.room-occupant .remove-occupant {
    cursor: pointer;
    color: var(--danger);
    opacity: 0.6;
    transition: var(--transition);
}

.room-occupant .remove-occupant:hover {
    opacity: 1;
}

/* === WIZARD STEPS === */
.wizard-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
    gap: 0;
}

.wizard-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.wizard-step::after {
    content: '';
    position: absolute;
    right: -16px;
    width: 28px;
    height: 1px;
    background: var(--border);
}

.wizard-step:last-child::after {
    display: none;
}

.wizard-step .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.wizard-step.active {
    color: var(--gold);
}

.wizard-step.active .step-num {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
}

.wizard-step.completed {
    color: var(--success);
}

.wizard-step.completed .step-num {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
}

.wizard-panel {
    display: none;
}

.wizard-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* === PROFILE PAGE === */
.profile-header {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.profile-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.2);
    flex-shrink: 0;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--gold);
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-info .profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.profile-info .profile-meta span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* === TABS === */
.tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
    overflow-x: auto;
    gap: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 2px 2px 0 0;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* === SEARCH & FILTER BAR === */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input {
    flex: 1;
    min-width: 220px;
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13.5px;
    transition: var(--transition);
    outline: none;
}

.search-input input:focus {
    border-color: var(--gold);
}

.search-input .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
}

/* === FINANCE === */
.finance-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.finance-card {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.finance-card .amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    margin-top: 6px;
}

.finance-card .label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--success));
    border-radius: 10px;
    transition: width 0.8s ease;
}

/* === EMPTY STATE === */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 20px;
}

/* === PAGINATION === */
.pagination-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 4px;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.pagination li a:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination li.active a {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    font-weight: 600;
}

/* === LOGIN PAGE === */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a1a 50%, #0a1628 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: loginGlow 15s ease infinite;
}

@keyframes loginGlow {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
    }
}

.login-card {
    background: rgba(17, 29, 48, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .login-logo img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.login-card .login-logo h1 {
    color: var(--gold);
    font-size: 20px;
    margin-top: 14px;
    font-weight: 700;
}

.login-card .login-logo p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

.login-card .form-group {
    margin-bottom: 18px;
}

.login-card .form-control {
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 10px;
}

.login-card .btn-login {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 8px;
}

/* === DOCUMENT GALLERY === */
.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.doc-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.doc-item:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.doc-item .doc-preview {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.doc-item .doc-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.doc-item .doc-preview .doc-icon {
    font-size: 48px;
    opacity: 0.5;
}

.doc-item .doc-info {
    padding: 10px 12px;
}

.doc-item .doc-type {
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 2px;
}

.doc-item .doc-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

/* === TOOLTIP === */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    background: var(--dark);
    color: var(--text);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border: 1px solid var(--border);
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

/* === SIDEBAR FOOTER === */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.25);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-user-info .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-user-info .user-role {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-user .btn-logout {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-user .btn-logout:hover {
    opacity: 1;
}

.sidebar-nav {
    padding: 16px 0;
    padding-bottom: 80px;
}

.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 16px;
}

/* === WIZARD ACTIONS === */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

/* === LOGIN WRAPPER === */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628 0%, #1a3a1a 50%, #0a1628 100%);
    padding: 20px;
}

/* === STAT CARDS (alt style) === */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-cards .stat-card .stat-info {
    text-align: center;
}

.stat-cards .stat-card .stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}

.stat-cards .stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .form-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .rooms-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.5);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .page-content {
        padding: 16px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card .stat-value {
        font-size: 24px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-info .profile-meta {
        justify-content: center;
    }

    .filter-bar {
        flex-direction: column;
    }

    .search-input {
        min-width: 100%;
    }

    .wizard-steps {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    .wizard-step::after {
        display: none;
    }

    .header-user .user-info {
        display: none;
    }

    .btn-logout span {
        display: none;
    }

    table {
        font-size: 12px;
    }

    table thead th,
    table tbody td {
        padding: 8px 10px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .doc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .finance-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .doc-grid {
        grid-template-columns: 1fr;
    }

    .finance-summary {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 15px;
    }

    .tabs {
        gap: 0;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
}

/* === OVERLAY FOR MOBILE SIDEBAR === */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.active {
    display: block;
}

/* === PRINT STYLES === */
@media print {

    .sidebar,
    .top-header,
    .btn-group,
    .filter-bar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: 0 !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 0;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 16px;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* === LOADING SPINNER === */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

/* === FLOATING ACTION BUTTON (Mobile) === */
.fab {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark);
    font-size: 24px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    z-index: 900;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.fab:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .fab {
        display: flex;
    }
}