/*
 * Path: /public/css/app-main.css
 * File: app-main.css (v1.0 - Combined Critical CSS: Layout + Forms + Nav)
 */

/* ==========================================================================
   PART 1: APP-CORE-LAYOUT.CSS (Fonts & Core Grid)
   ========================================================================== */

/* Локальные шрифты (Inter) - загружаются мгновенно с вашего сервера */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/Inter-Medium.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/Inter-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/Inter-Bold.woff2') format('woff2');
}

:root {
    --primary-color: #5D3EFF;
    --primary-color-dark: #4b2fde;
    --primary-color-light: rgba(93, 62, 255, 0.08);
    --success-color: #22c55e;
    --success-color-light: #f0fdf4;
    --error-color: #ef4444;
    --error-color-light: #fef2f2;
    --warning-color: #f59e0b;
    --warning-color-light: #fffbeb;

    --text-dark: #1e293b;
    --text-regular: #334155;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --background-light: #f8fafc;
    --background-gradient: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    
    /* Spacing & Radius */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-regular);
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   LAYOUT & CONTAINER SYSTEM
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-article {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
}

.site-main {
    flex: 1;
    padding: 0;
}

/* Dashboard Specific Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.dashboard-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 24px;
    }
    .dashboard-layout {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    .dashboard-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 7px;
    }
    h1, h2 {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   HOME PAGE & HERO
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.home-hero {
    position: relative;
    padding: 4rem 0 6rem;
    background: radial-gradient(circle at 50% 0%, #fcfcfc 0%, #ffffff 60%);
    border-bottom: 1px solid var(--border-color-light);
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.2rem, 3vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 3.5rem;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SEARCH BAR
   ========================================================================== */

.search-wrapper {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.search-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px -10px rgba(93, 62, 255, 0.15);
    transform: translateY(-2px);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px 24px;
    font-size: 1.05rem;
    color: var(--text-dark);
    outline: none;
    font-weight: 500;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
    opacity: 0.9;
}

.search-input::-webkit-search-cancel-button {
    cursor: pointer;
    padding: 2px;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-right: 2px;
}

.search-btn:hover {
    background: var(--primary-color-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(93, 62, 255, 0.3);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    display: none;
    text-align: left;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.1s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.s-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 14px;
    background: #e2e8f0;
}

.s-info {
    display: flex;
    flex-direction: column;
}

.s-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.s-role {
    font-size: 0.75rem;
    color: var(--text-light);
}

.s-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* ==========================================================================
   ROLES SECTION
   ========================================================================== */

.section-roles {
    padding: 5rem 0;
    background: #fff;
}

.roles-header-top {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
    letter-spacing: -0.02em;
}

.roles-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.roles-text-block {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
    text-align: justify;
}

.roles-text-block strong {
    color: var(--text-dark);
    font-weight: 600;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.role-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
}

.role-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px -10px rgba(93, 62, 255, 0.1);
    transform: translateY(-4px);
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-icon);
    color: var(--color-icon);
}

.role-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.role-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================================================
   SEO & CATALOG
   ========================================================================== */

.section-seo {
    padding: 4rem 0 6rem;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
}

.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.seo-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.seo-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: justify;
}

.catalog-page {
    padding: 40px 0 80px;
}

.catalog-header {
    margin-bottom: 40px;
    max-width: 800px;
}

.catalog-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.catalog-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.category-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1.2rem;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-link {
    display: block;
    text-decoration: none;
    color: var(--text-regular);
    font-size: 0.95rem;
    padding: 6px 0;
    transition: color 0.2s;
    line-height: 1.4;
}

.service-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.3);
    text-underline-offset: 2px;
}

/* ==========================================================================
   SEARCH RESULTS GRID & CARDS
   ========================================================================== */

.search-results-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    animation: fadeIn 0.4s ease;
}

.results-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #94a3b8;
    grid-column: 1 / -1;
}

.empty-icon {
    font-size: 3.5rem;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
}

.search-loader {
    text-align: center;
    padding: 4rem 0;
    display: none;
}

.search-loader.active {
    display: block;
}

#home-search-results {
    opacity: 0;
    transition: opacity 0.3s ease;
    min-height: 0;
}

#home-search-results.visible {
    opacity: 1;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.master-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    height: 100%;
}

.master-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color-light);
}

.master-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.master-card__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    background-color: #f1f5f9;
}

.master-card__info {
    flex: 1;
    min-width: 0;
}

.master-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge-role {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--background-light);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.master-card__body {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.master-card__location {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.master-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-dark);
    font-weight: 600;
}

.master-card__rating i {
    color: #f59e0b;
}

.status-badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 600;
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    white-space: nowrap;
}

.status-icon-pro {
    color: #8b5cf6;
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: middle;
}

.status-icon-premium {
    color: #f59e0b;
    margin-left: 6px;
    font-size: 0.9em;
    vertical-align: middle;
}

.master-card__status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-regular);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    pointer-events: none;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ERROR PAGES
   ========================================================================== */

.error-page {
    min-height: 60vh;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page__icon {
    font-size: 5rem;
    color: #cbd5e1;
    margin-bottom: 1.5rem;
}

.error-page__code {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.error-page__title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1.5rem;
}

.error-page__text {
    color: #64748b;
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-page__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   PART 2: FORMS, TYPOGRAPHY & FOOTER
   ========================================================================== */

.form-group {
    margin-bottom: 24px;
}

.form-label, .label {
    display: block;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-control, .text-input, input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-regular);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(93, 62, 255, 0.1);
}

.form-error-text {
    color: #be123c;
    font-size: 0.9rem;
    margin-top: 6px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 24px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; font-weight: 600; }

p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.7;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn--primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(93, 62, 255, 0.2);
}

.btn--primary:hover:not(:disabled) {
    background: var(--primary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 62, 255, 0.25);
    text-decoration: none;
    color: white;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-light);
    background: white;
}

.btn--outline:hover:not(:disabled) {
    background: var(--background-light);
    border-color: #d1d5db;
    color: var(--text-regular);
}

.btn--block { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.9rem; }
.btn--lg { padding: 14px 28px; font-size: 1.1rem; }

.btn--danger {
    background-color: var(--error-color);
    color: white;
}

.btn--danger:hover {
    background-color: #dc2626;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.clean-separator {
    height: 1px;
    background: var(--border-color-light);
    margin: 32px 0;
    border: none;
}

/* UTILITIES */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-muted { color: #94a3b8; font-size: 0.9rem; letter-spacing: 0.02em; font-weight: 500; }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--error-color); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.is-hidden { display: none !important; }
.form-inline { display: inline; }

.site-footer {
    background: #e7e7e7;
    color: #cbd5e1;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    .card { padding: 0; border: none; }
    .action-buttons { flex-direction: column; }
    .btn { width: 100%; }
}

/* Auth Pages */
.auth-page-wrapper {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-register-prompt {
    margin-top: 24px;
}

.auth-register-text {
    margin: 0;
    color: var(--text-light);
}

.auth-register-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-register-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   PART 3: APP-NAV-AND-ALERTS.CSS (Header & Sidebar)
   ========================================================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color-light);
    padding: 20px 7px;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s ease;
}

.brand:hover {
    opacity: 0.8;
    text-decoration: none;
}

.brand__logo {
    height: 36px;
    width: auto;
}

.header-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    transition: all 0.2s;
    cursor: pointer;
}

.header-logout-btn:hover {
    background: #fee2e2;
    transform: scale(1.05);
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 20px 7px;
    font-size: 0.85rem;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    color: var(--text-light);
}

.breadcrumbs__item:not(:last-child)::after {
    content: "/";
    margin-left: 8px;
    color: var(--text-light);
}

.breadcrumbs__link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs__current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Sidebar */
.dashboard-sidebar {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 0;
    border-right: 1px solid var(--border-color-light);
    position: sticky;
    top: 81px;
    height: calc(100vh - 81px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 24px;
}

.sidebar-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid transparent;
    position: relative;
}

.sidebar-link .icon {
    font-size: 1.2rem;
    line-height: 1;
    width: 1.2em;
    text-align: center;
}

.sidebar-link:hover {
    color: var(--text-dark);
    background-color: var(--background-light);
    text-decoration: none;
}

.sidebar-link.active {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
    font-weight: 600;
}

/* Header Actions */
.site-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-regular);
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 99px;
    transition: background-color 0.2s ease;
}

.header-user-profile:hover {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.header-user-profile__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--border-color);
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2001;
}

.hamburger-btn .line {
    width: 100%;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.hamburger-btn.is-active .line1 {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.is-active .line2 {
    opacity: 0;
}

.hamburger-btn.is-active .line3 {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Slideout Nav */
.slideout-nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90%;
    height: 100%;
    background: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    padding: 32px;
}

body.nav-is-open .slideout-nav-panel {
    transform: translateX(0);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

body.nav-is-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}

body.nav-is-open {
    overflow: hidden;
}

.slideout-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.slideout-nav__link {
    text-decoration: none;
    color: var(--text-regular);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 12px 0;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slideout-nav__link:hover {
    color: var(--primary-color);
}

.slideout-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slideout-nav__lang-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 24px;
}

.slideout-nav__lang-switcher a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.slideout-nav__lang-switcher a.active,
.slideout-nav__lang-switcher a:hover {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 24px;
    border-radius: 10px;
    font-weight: 500;
}

.alert--success {
    color: #166534;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.alert--danger {
    color: #be123c;
    background-color: #fff1f2;
    border: 1px solid #fecaca;
}

/* Notifications */
.header-notification-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-regular);
    background-color: var(--background-light);
    border-radius: 50%;
    transition: 0.2s;
}

.header-notification-icon:hover {
    color: var(--primary-color);
    background-color: var(--primary-color-light);
}

.header-notification-count {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background-color: var(--error-color);
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 20px;
    text-align: center;
    border: 2px solid #fff;
}

/* Sidebar Badges */
.notification-dot {
    position: absolute;
    top: 14px;
    right: 15px;
    width: 10px;
    height: 10px;
    background-color: var(--error-color);
    border-radius: 50%;
    border: 2px solid #fff;
}

.notification-count {
    position: absolute;
    top: 10px;
    right: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(93, 62, 255, 0.3);
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color-light);
        padding: 12px 0;
    }

    .sidebar-nav {
        flex-direction: row;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0 16px;
        gap: 12px;
    }

    .sidebar-link {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 10px 20px;
    }

    .dashboard-sidebar-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-row {
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand span {
        display: none;
    }

    .header-row .site-nav {
        margin-left: auto;
    }

    .header-logout-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .site-header-actions .btn--primary {
        display: none;
    }

    .header-user-profile span {
        display: none;
    }
}