﻿/* ==========================
   ПЕРЕМЕННЫЕ СВЕТЛОЙ ТЕМЫ
========================== */
:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --primary-light: #4895ef;
    --primary-lighter: #e8f0fe;
    --secondary-color: #4cc9f0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --light-color: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    --light-color-2: #f1f3f4;
    --dark-color: #1a1d28;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --text-muted: #95a5a6;
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 15px 35px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-round: 50%;
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(135deg, #8B5CF6, #3B82F6);
    --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --bg-sidebar: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100% );
    --bg-qrcard: linear-gradient(135deg, #F5F7FF 0%, #EEF2FF 100%);
    --bg-top: linear-gradient(180deg, #F5F7FB 0%, #EEF1F7 40%, #E9ECF5 70%, #ECEBFF 100%);
}

/* ==========================
   БАЗОВЫЕ СТИЛИ
========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

    a:hover {
        color: var(--primary-dark);
    }

.btn {
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
    padding: 0.625rem 1.25rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    }

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.btn-success {
    background: var(--gradient-success);
    border: none;
}

.btn-danger {
    background: var(--gradient-danger);
    border: none;
}
.btn-light {
    background: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    border: 2px solid rgba(99,102,241,0.08);
}

    .btn-light:hover {
        background: var(--light-color);
    }

.btn-icon {
    background: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    border: 2px solid rgba(99,102,241,0.08);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.1rem;
}

    .btn-icon:hover {
        background: var(--light-color);
        border-color: #c6c7c8;
        transform: translateY(-2px);
        box-shadow: var(--shadow-sm);
    }

.form-control, .form-select {
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        outline: none;
    }

/* ==========================
   ЛЕЙАУТ DASHBOARD
========================== */

.dashboard-layout {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* ШАПКА */
.dashboard-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

.header-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

    .brand-logo img {
        height: 40px;
        width: auto;
    }

    .brand-logo span {
        color: var(--primary-color);
        font-weight: 800;
        letter-spacing: -0.5px;
    }
.offcanvas {
    background: var(--bg-sidebar);
}

/* МОБИЛЬНОЕ МЕНЮ */
.mobile-menu-btn {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    color: var(--text-secondary);
    transition: var(--transition);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mobile-menu-btn:hover {
        background: var(--primary-lighter);
        color: var(--primary-color);
        border-color: var(--primary-light);
    }

/* ОСНОВНОЙ КОНТЕЙНЕР */
.dashboard-main {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    margin-top: var(--header-height);
}

/* ЛЕВАЯ ПАНЕЛЬ - SIDEBAR */
.dashboard-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: 0;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

    .sidebar-header h4 {
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin: 0;
    }

.sidebar-nav {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

    .nav-item:hover {
        background: var(--primary-lighter);
        color: var(--primary-color);
    }

    .nav-item.active {
        background: var(--gradient-primary);
        color: white;
        box-shadow: var(--shadow-md);
    }

    .nav-item i {
        font-size: 1.1rem;
        width: 24px;
        text-align: center;
    }

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* ОСНОВНОЙ КОНТЕНТ */
.dashboard-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: var(--bg-top);
    min-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.dashboard-panel {
    background: var(--bg-top);
}

.content-header {
    background: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-light);
}

.content-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.content-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 400;
}

.content-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* КНОПКА CREATE QR */
.btn-create {
    background: linear-gradient(135deg, #8B5CF6, #3B82F6);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

    .btn-create:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(67, 97, 238, 0.3);
        color: white;
    }

    .btn-create:active {
        transform: translateY(0);
    }

/* ПАНЕЛИ КОНТЕНТА */
.content-panel {
    background: var(--bg-top);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    animation: fadeIn 0.3s ease;
    border: 1px solid var(--border-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Дополнительные стили для Dashboard */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .welcome-card h1 {
        color: white;
        font-size: clamp(1.2rem, 4.5vw, 2rem);
        line-height: 1.2;
        word-break: break-word;
    }
.fade-out {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark-color);
}

.stat-content p {
    color: var(--gray-600);
    margin: 0;
    font-size: 0.9rem;
}

.recent-activity {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--primary-color);
}
.form-control {
    background: #fbfcff;
}
    .form-control:hover {
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
        transition: var(--transition);
    }
    .form-control:focus {
        border: 2px solid var(--border-color);
        border-radius: var(--radius-md);
    }
.form-select {
    background: #fbfcff;
}
.subscription-plans {
    background: var(--bg-top);
    padding: 40px 20px;
    border-radius: 12px;
}

.plan-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .plan-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }

    .plan-card ul li {
        text-align: left;
        margin-bottom: 0.5rem;
    }

.select-plan {
    width: 100%;
}
/* ==========================
   DANGER ZONE ACCORDION
========================== */
/* Дополнительные стили для плавности */
.accordion-button {
    transition: all 0.3s ease;
}

    .accordion-button:not(.collapsed) {
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

.accordion-body {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================
   КАРТОЧКИ QR
========================== */
.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.qr-card {
    background: var(--bg-qrcard);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    position: relative;
}

    .qr-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-xl);
        border-color: var(--primary-light);
    }

.qr-card-header {
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-qrcard);
}

.qr-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.qr-preview-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-qrcard);
    border-radius: var(--radius-md);
    position: relative;
}

.qr-preview {
    width: 160px;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: white;
    padding: 0;
}

    .qr-preview img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 4px;
    }

.qr-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 29, 40, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.qr-preview-container:hover .qr-overlay {
    opacity: 1;
}

.qr-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.qr-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: white;
    border: 1px solid var(--border-color);
}

.status-active {
    color: var(--success-color);
    background-color: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.2);
}

.status-paused {
    color: var(--warning-color);
    background-color: rgba(243, 156, 18, 0.1);
    border-color: rgba(243, 156, 18, 0.2);
}

.status-blocked {
    color: var(--danger-color);
    background-color: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
}

.qr-card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-qrcard);
    flex-wrap: wrap;
    gap: 0.5rem;
}


.qr-actions {
    display: flex;
    gap: 0.5rem;
}

.dropdownSaveQr .dropdown-toggle::after {
    display: none;
}
/* ==========================
   ФИЛЬТРЫ И ПОИСК
========================== */
.qr-type-wrapper {
    position: relative; /* критично */
    display: inline-flex;
    align-items: center;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

/* кнопка */
.qr-type-toggle {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

/* список */
.qr-type-list {
    position: absolute;
    top: calc(100% + 0.5rem);;
    background: var(--light-color);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    z-index: 20;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}

    /* открыт */
    .qr-type-list.show {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

/* элементы */
.qr-type-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

    .qr-type-item:hover {
        background: var(--primary-lighter);
        color: var(--primary-color);
    }

    .qr-type-item.active {
        background: var(--primary-color);
        color: white;
    }


.filter-section {
    background: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    padding-top: 50px !important;
}

.search-container {
    position: relative;
}


.filter-counter {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-light2);
}

    .search-input:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
        border-color: #c6c7c8;
        transform: translateY(-2px);

    }

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);

}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-tag {
    padding: 0.5rem 1.25rem;
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

    .filter-tag:hover {
        background: var(--primary-lighter);
        color: var(--primary-color);
        border-color: var(--primary-light);
    }

    .filter-tag.active {
        background: var(--gradient-primary);
        color: white;
        border-color: var(--primary-color);
    }
.filter-section {
    background: var(--light-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
}

/* ==========================
   ПУСТОЕ СОСТОЯНИЕ
========================== */
.empty-state {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    background: var(--bg-top);
}

.empty-state-icon {
    font-size: 4rem;
    color: var(--bg-qrcard);
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.75rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.empty-state-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================
   МОДАЛЬНЫЕ ОКНА
========================== */
#resetModal {
    pointer-events: none;
    display: none;
}

    #modal.show {
        pointer-events: auto;
        display: block;
    }
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header {
    background: var(--gradient-primary);
    padding: 1.5rem 2rem;
    border: none;
}

    .modal-header .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
    }

.modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: white !important;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    background: var(--light-color);
}

/* ==========================
   КАРТОЧКИ В USER PANEL
========================== */
.card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

    
.card-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-light);
    padding: 1.5rem 1.5rem 1rem;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
    background: var(--light-color);
}
    .card-body:focus,
    .card-body:focus-visible {
        outline: none;
        box-shadow: none;
    }

.hover-card {
    padding: 1.5rem;
    background: var(--light-color);
}
/* ПРОГРЕСС-БАРЫ */
.progress {
    background-color: var(--light-color-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 8px;
}

.progress-bar {
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.6s ease;
}

/* БЭДЖИ */
.badge {
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-success {
    background: var(--gradient-success) !important;
}

.bg-warning {
    background: var(--gradient-warning) !important;
}

.bg-danger {
    background: var(--gradient-danger) !important;
}

/* DROPDOWN MENUS */
.dropdown-menu {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(180deg, #F7F9FF, #EEF2FF);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
    font-weight: 500;
}

    .dropdown-item:hover {
        background: var(--primary-lighter);
        color: var(--primary-color);
    }


/* TOAST УВЕДОМЛЕНИЯ - ПО ЦЕНТРУ ЭКРАНА */
.toast {
    position: fixed;
    top: 15%;
    left: 90%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.2rem 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    border-left: 5px solid var(--primary-color);
    max-width: 300px;
    min-width: 300px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    pointer-events: auto;
}

    .toast.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

/* Для мобильных устройств */
@media (max-width: 768px) {
    .toast {
        width: calc(100% - 80px) !important;
        max-height: 150px !important;
        min-width: auto;
        padding: 1rem 1.5rem !important;
        top: 22% !important;
        left: 50% !important;
    }

    .toast-content i {
        font-size: 2rem;
    }

    .toast-message {
        font-size: 0.95rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .toast {
        width: calc(100% - 30px);
        padding: 0.9rem 1.2rem;
        border-left-width: 4px;
    }

    .toast-content {
        gap: 0.75rem;
    }

        .toast-content i {
            font-size: 1.8rem;
        }

    .toast-message {
        font-size: 0.9rem;
    }
}

/* Кнопка закрытия */
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

    .toast-close:hover {
        opacity: 1;
    }

@media (max-width: 768px) {
    .toast-close {
        font-size: 1.4rem;
        padding: 4px;
        margin-left: 0.25rem;
    }
}

/* Цветовые варианты */
.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-info {
    border-left-color: var(--info-color);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

    .toast-content i {
        font-size: 2.5rem;
        flex-shrink: 0;
    }

.toast-success .toast-content i {
    color: var(--success-color);
}

.toast-error .toast-content i {
    color: var(--danger-color);
}

.toast-warning .toast-content i {
    color: var(--warning-color);
}

.toast-info .toast-content i {
    color: var(--info-color);
}

.toast-message {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
}

/* Затемнение фона (опционально) */
.toast-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

    .toast-backdrop.show {
        opacity: 1;
        pointer-events: auto;
    }
/* ==========================
   АДАПТИВНОСТЬ
========================== */

/* ПЛАНШЕТЫ (768px - 1199px) */
@media (max-width: 1199.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    .sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .qr-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }

    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .content-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* МОБИЛЬНЫЕ (до 767px) */
@media (max-width: 767.98px) {
    :root {
        --header-height: 64px;
        --sidebar-width: 280px;
    }

    .color-picker-wrapper {
        display: flex;
        justify-content: center;
    }

    .dashboard-header {
        padding: 0 1rem;
    }

    .dashboard-content {
        padding: 1rem;
    }

    .content-header {
        padding: 1.5rem;
    }

    .content-title {
        font-size: 1.5rem;
    }

    .qr-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .content-panel,
    .filter-section {
        padding: 1.5rem;
    }

    .brand-logo span {
        font-size: 1.3rem;
    }

    .btn-create {
        width: 100%;
        justify-content: center;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .qr-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-container {
        max-width: 100%;
    }
    .btn-create {
        font-weight: 600;
        font-size: 0.9rem;
        padding: 0.8rem 1.2rem;
        max-width: 100px;
    }
    .qr-card-footer {
        padding: 0;
    }


}

/* МАЛЕНЬКИЕ МОБИЛЬНЫЕ (до 575px) */
@media (max-width: 575.98px) {
    .qr-card-body {
        padding: 1.25rem;
    }

    .qr-preview {
        width: 140px;
        height: 140px;
    }

    .empty-state {
        padding: 3rem 1.5rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .empty-state-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .filter-tags {
        justify-content: center;
    }

    .toast {
        left: 1rem;
        right: 1rem;
        max-width: none;
        bottom: 1rem;
    }
}

/* ПРОЧИЕ СТИЛИ */
.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.usage-stats .stat-item {
    padding: 1rem 0;
    background: #f6f8ff;
}

.stat-label {
    margin-left: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.stat-value {
    margin-right: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.progress {
    margin-right: 20px;
    margin-left: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* СКРОЛЛБАР */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color-2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }


/* ==========================
   АДАПТИВНОСТЬ
========================== */
/* Дополнительные стили для страницы */

.gradient-instagram {
    background: var(--gradient-instagram);
}

.gradient-facebook {
    background: var(--gradient-facebook);
}

.bg-purple {
    background-color: var(--color-purple);
}

.text-purple {
    color: var(--color-purple);
}

/* Стили для загрузчика */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader-spinner {
    text-align: center;
}

/* Анимация для превью */
.preview-image {
    transition: transform 0.3s ease;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Анимация карточек */
.qr-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .qr-card:hover {
        transform: translateY(-5px);
    }

    .qr-card.active-card {
        border: 2px solid var(--primary-color);
        box-shadow: 0 10px 25px rgba(67, 97, 238, 0.15);
    }

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Стили для sticky панели */
.sticky-top {
    z-index: 1020;
}

/* Статистические карточки */
.stat-card {
    background: var(--light-color);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

    .stat-card:hover {
        background: var(--primary-lighter);
        transform: translateY(-2px);
    }

/* Мобильная кнопка */
.mobile-next-container {
    z-index: 1030;
}

/* ==========================
   Список Таймзон
========================== */
.form-select.timezone-list option {
    background-color: #fff;
    color: #000;
}

    .form-select.timezone-list option:checked {
        background: linear-gradient(135deg, #8B5CF6, #3B82F6) !important;
        color: #fff !important;
    }

    .form-select.timezone-list option:hover {
        background: linear-gradient(135deg, #8B5CF6, #3B82F6) !important;
        color: #fff !important;
    }
    .form-select.timezone-list option:after {
        background: linear-gradient(135deg, #8B5CF6, #3B82F6) !important;
        color: #000 !important;
    }

/*==========================================
        ========CONTACT US PAGE========
============================================*/
.contact-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.form-pill {
    border-radius: 999px;
    padding: 10px 16px;
}

.form-area {
    border-radius: 16px;
    padding: 12px 16px;
}

.btn-pill {
    border-radius: 999px;
    padding: 10px;
    font-weight: 600;
}

