:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #64748B;
    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border: #E2E8F0;
    --danger: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;
    --info: #0EA5E9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* Navbar */
.navbar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert-container {
    margin-bottom: 2rem;
}

.alert {
    padding: 1.15rem 1.75rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    border-width: 2px;
    border-style: solid;
    animation: slideInDown 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background-color: rgba(236, 253, 245, 0.9);
    color: #065F46;
    border-color: #10B981;
}

.alert-danger {
    background-color: rgba(254, 242, 242, 0.9);
    color: #991B1B;
    border-color: #EF4444;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Cards */
.card {
    background-color: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    animation: fadeInUp 0.5s ease-out;
}

.card-header-full {
    padding: 2.5rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(to bottom, #F8FAFC, #FFFFFF);
}

.card-header-full h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    font-weight: 800;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background-color: #F8FAFC;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tr:last-child td {
    border-bottom: none;
}

/* Hotel Styles */
.name-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.name-container strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.loc-link {
    font-size: 0.825rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.loc-link:hover {
    text-decoration: underline;
}

.contact-details {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.phone-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-badge.yangi {
    background-color: #E0F2FE;
    color: #0369A1;
}

.status-badge.qo-ng-iroq-qilindi {
    background-color: #FEF3C7;
    color: #92400E;
}

.status-badge.ega-bilan-gaplashildi {
    background-color: #F0FDFA;
    color: #0F766E;
}

.status-badge.qiziqdi {
    background-color: #F5F3FF;
    color: #6D28D9;
}

.status-badge.rad-etdi {
    background-color: #FEF2F2;
    color: #B91C1C;
}

.status-badge.yopildi {
    background-color: #F0FDF4;
    color: #15803D;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #F1F5F9;
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
}

.btn-danger {
    background-color: #FEF2F2;
    color: var(--danger);
    border: 1px solid #FEE2E2;
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-icon.edit {
    color: var(--primary);
    background-color: #EEF2FF;
}

.btn-icon.delete {
    color: var(--danger);
    background-color: #FEF2F2;
}

.btn-icon.delete:hover {
    background-color: var(--danger);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Form Styles */
.form-container {
    max-width: 650px;
    margin: 2rem auto;
}

.form-card {
    border: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.input-wrapper input,
.input-wrapper select {
    width: 100% !important;
    padding: 1.15rem 1.5rem 1.15rem 3.75rem !important;
    border: 2px solid var(--border) !important;
    border-radius: 1rem !important;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    background-color: white !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

.input-wrapper input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--primary) !important;
    background-color: white !important;
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.15) !important;
}

.form-group:focus-within label {
    color: var(--primary);
}

.form-group:focus-within .input-wrapper i {
    color: var(--primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.text-danger {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 2rem;
}

/* Empty State */
.empty-state {
    padding: 5rem 2rem;
    text-align: center;
}

.icon-circle {
    width: 5rem;
    height: 5rem;
    background-color: #EEF2FF;
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comments and Details */
.btn-icon.view {
    color: var(--info);
    background-color: #E0F2FE;
    font-size: 1.2rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    padding: 1.5rem;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.detail-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.comments-container {
    padding: 0 2rem 2.5rem 2rem;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.comment-form {
    margin-bottom: 2.5rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background-color: #F8FAFC;
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.comment-card {
    padding: 1.5rem;
    background-color: #F8FAFC;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.comment-text {
    font-size: 1rem;
    color: var(--text-main);
    white-space: pre-wrap;
    margin-bottom: 0.75rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-card {
    position: relative;
    transition: all 0.2s;
}

.comment-card:hover {
    background-color: #F1F5F9;
}

.comment-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.comment-card:hover .comment-actions {
    opacity: 1;
}

.btn-comment-action {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    border: none;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.btn-comment-action.edit {
    color: var(--primary);
}

.btn-comment-action.delete {
    color: var(--danger);
}

.btn-comment-action:hover {
    transform: scale(1.1);
}

.hidden {
    display: none !important;
}

.edit-comment-form {
    width: 100%;
    margin-top: 0.5rem;
}

/* Filter Section */
.filter-section {
    margin-bottom: 2rem;
    padding: 1.25rem 2rem;
    background: white;
}

.filter-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group select {
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: #F8FAFC;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    transition: all 0.2s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-clear {
    font-size: 0.85rem;
    color: var(--danger);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background-color: #FEF2F2;
    transition: all 0.2s;
}

.btn-clear:hover {
    background-color: #FEE2E2;
    transform: translateY(-1px);
}