@font-face {
    font-family: 'Montserrat';
    src: url('./fonts/JTUSjIg1_i6t8kCHKm459W1hyyTh89ZNpQ.woff2') format('woff2'),
    url('./fonts/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2') format('woff2')
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-control {
    width: 100%;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 5px
}

form .input_box {
    margin-bottom: 25px;
}

form .input_box .error {
    font-size: 10px;
    color: #ff4757;
}

.is-mobile {
    display: none;
}

form .input_box input {
    width: 100%;
    height: 57px;
    border: 1px solid #dadaf2;
    border-radius: 5px;
    outline: 0;
    background: #f8f8fb;
    font-size: 17px;
    padding: 0 20px;
    transition: .2s;
    box-sizing: border-box
}

form .input_box input:focus {
    border-color: #626cd6
}

form button {
    width: 100%;
    height: 56px;
    border-radius: 5px;
    border: none;
    outline: 0;
    background: #626cd6;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    margin-bottom: 28px;
    transition: .3s
}

form button:hover {
    background: #4954d0;
    box-shadow: 0 4px 10px rgba(73, 84, 208, 0.3);
}


@media (max-width: 480px) {

    .form-control {
        padding: 15px;
    }
}

.auth-container-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.shop-name {
    font-size: 20px;
    font-weight: 600;
    color: #626cd6;
}

.logout-btn {
    background: #ff4757;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.logout-btn:hover {
    background: #e03e4e;
}

.setup-btn {
    background: #ff9747;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.setup-btn:hover {
    background: #ec8c43;
}

.help-btn {
    background: #23acf6;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 12px;
}

.help-btn:hover {
    background: #3da6da;
}

.stats {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #626cd6;
}

.requests-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

th {
    background: #f8f8fb;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

td {
    padding: 15px;
    border-top: 1px solid #eee;
}

.badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-blocked {
    background: #ffebee;
    color: #c62828;
}

.badge-warning {
    background: #fff3e0;
    color: #f57c00;
}

.badge-default {
    background: #f5f5f5;
    color: #797979;
}

.tag {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 4px;
    display: inline-block;
}

.btn-respond {
    background: #626cd6;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: auto;
    height: auto;
}

.btn-respond:hover {
    background: #4954d0;
}

.btn-edit {
    background: #ffa502;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    width: auto;
    height: auto;
}

.already-responded {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.already-completed {
    background: #f5e8e8;
    color: #7d2e2e;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .is-mobile {
        display: block;
        text-decoration: underline;
        margin-bottom: 10px;
    }

    .is-block {
        display: block !important;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .requests-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 100%;
    }

    .requests-table table thead {
        display: none;
    }

    .requests-table table tbody tr {
        border-bottom: 3px solid gray;
    }

    .requests-table table tbody tr td {
        display: block;
    }

    .header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    form {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    form input {
        width: 100% !important;
    }

    .btn-respond, .btn-edit {
        width: 100%;
        text-align: center;
    }

    .request-actions form {
        display: block;
    }

    .request-actions input {
        padding: 4px;
        margin-right: 5px;
        height: 45px !important;
        border-radius: 5px;
        border: 1px solid #cbd5e1;
    }

    .request-actions textarea {
        width: 100%;
        padding: 4px;
        border-radius: 5px;
        margin: 10px 0;
        height: 80px !important;
    }

    .request-actions button {
        height: 45px !important;
    }
}

.request-actions input {
    height: 35px;
    font-size: 12px;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    border: 1px solid #cbd5e1;
}

.request-actions textarea {
    margin: 10px 0;
    border-radius: 5px;
    font-size: 12px;
    height: 45px;
}

.request-actions button {
    width: 100%;
    height: 35px;
    margin: 0;
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 22px;
    }

    td, th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .tag {
        font-size: 9px;
    }
}


.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

h3 {
    color: #555;
    font-size: 18px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    min-height: 10px;
    max-height: 195px;
    overflow: scroll;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.tag-available {
    background: #e9ecef;
    color: #495057;
    border: 2px solid transparent;
}

.tag-available:hover {
    background: #dee2e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.selected-tags-section {
    margin-bottom: 25px;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    min-height: 10px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #626cd6;
    color: white;
    border-radius: 5px;
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.remove-tag {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0;
}

.remove-tag:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    h2 {
        font-size: 24px;
    }
}

/* Прогресс-бар лимита */
.limit-progress-container {
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.limit-progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 10px;
    gap: 10px;
}

.limit-label {
    color: #64748b;
    font-weight: 500;
}

.limit-counter {
    color: #626cd6;
    font-weight: 600;
    background: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 12px;
}

.limit-progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.limit-progress-fill {
    height: 100%;
    width: 0%;
    background: #626cd6;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Анимация для счетчика при достижении лимита */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Стили для отключенных тегов */
.tag-disabled {
    position: relative;
    cursor: not-allowed !important;
}

.tag-disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.limit-badge {
    margin-left: 6px;
    font-size: 10px;
    opacity: 0.7;
}

/* Улучшенные уведомления */
.notification {
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-icon {
    font-size: 18px;
}

.notification-message {
    flex: 1;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .limit-progress-container {
        padding: 10px 12px;
    }

    .limit-progress-info {
        font-size: 12px;
    }

    .limit-progress-bar {
        height: 6px;
    }
}

.tag-counter {
    color: white;
    border-radius: 3px;
    padding: 4px;
    box-sizing: border-box;
    font-size: 13px;
}

/* Карточка заявки */
.request-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.request-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.request-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.request-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Карточка ответа магазина */
.response-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.response-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.shop-name {
    font-size: 18px;
    font-weight: 600;
    color: #626cd6;
    margin-bottom: 5px;
}

.shop-rating {
    color: #ffc107;
    font-size: 14px;
    margin-bottom: 10px;
}

.shop-address {
    color: #666;
    font-size: 13px;
    margin-bottom: 8px;
}

.price {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 10px 0;
}

.comment {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    margin: 10px 0;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #626cd6;
    color: white;
}

.btn-primary:hover {
    background: #4954d0;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.response-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.already-chosen {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: inline-block;
}

.empty-state {
    text-align: center;
    color: #999;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .response-card {
        padding: 15px;
    }

    .response-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Анимация */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-card {
    animation: fadeIn 0.3s ease;
}

.info-box {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.limit-counter-clear-all {
    background: #ff4757;
    color: white;
    border: none;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 8px;
    transition: all 0.3s ease;
    height: auto;
    width: auto;
    margin: 0;
}


/* Карточка настроек */
.settings-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

/* Вкладки */
.tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #fafcff;
    padding: 0 24px;
    gap: 24px;
}

.tab {
    padding: 16px 0;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.tab.active {
    color: #626cd6;
    border-bottom-color: #626cd6;
}

/* Контент вкладок */
.tab-content {
    display: none;
    padding: 28px 32px;
}

.tab-content.active {
    display: block;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #2d3a5e;
}

.settings-card input, textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    font-size: 0.95rem;
    transition: 0.2s;
}

.settings-card input:focus, textarea:focus {
    outline: none;
    border-color: #626cd6;
    box-shadow: 0 0 0 3px rgba(98, 108, 214, 0.1);
}

.btn {
    background: #626cd6;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #4a54b0;
}

.btn-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #2d3a5e;
}

.btn-outline:hover {
    background: #f1f5f9;
}

.flash-message {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

hr {
    margin: 24px 0;
    border-color: #eef2f6;
}

@media (max-width: 640px) {
    .tabs {
        gap: 16px;
        padding: 0 16px;
        font-size: 14px;
    }

    .tab-content {
        padding: 20px;
    }

    .help-btn,
    .setup-btn,
    .logout-btn {
        padding: 5px 10px;
    }
}

.services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Элемент услуги */
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 1.25rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.25s ease;
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

.service-item:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

/* Задержка анимации для элементов */
.service-item:nth-child(1) { animation-delay: 0.05s; }
.service-item:nth-child(2) { animation-delay: 0.1s; }
.service-item:nth-child(3) { animation-delay: 0.15s; }

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

/* Левая часть: иконка и название */
.service-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e9eef5);
    border-radius: 5px;
    color: #4f46e5;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: white;
    transform: scale(1.02);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

.service-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.service-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 0.8rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Правая часть: статус и кнопка */
.service-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Бейдж статуса */
.status-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 5px;
    letter-spacing: 0.02em;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.status-badge.active {
    background: #e6f7e6;
    color: #0f7b3a;
    border-color: #b3e0b3;
}

/* Кнопка */
.toggle-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 5px;
    cursor: pointer;
    background: #f1f5f9;
    color: #334155;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border: 1px solid transparent;
}

.toggle-btn:hover {
    background: #e2e8f0;
    transform: scale(1.02);
}

.toggle-btn.connect {
    background: #4f46e5;
    color: white;
}

.toggle-btn.connect:hover {
    background: #4338ca;
    transform: scale(1.02);
}

.toggle-btn.disconnect {
    background: white;
    color: #dc2626;
    border: 1.5px solid #fecaca;
}

.toggle-btn.disconnect:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    transform: scale(1.02);
}

/* Адаптивность */
@media (max-width: 600px) {
    .services-card {
        padding: 1.25rem;
        border-radius: 1.5rem;
    }

    .services-header h1 {
        font-size: 1.4rem;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
    }

    .service-action {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.25rem;
    }

    .service-info {
        width: 100%;
    }

    .service-description {
        white-space: normal;
    }

    .toggle-btn {
        flex: 1;
        justify-content: center;
    }

    .status-badge {
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .service-action {
        flex-direction: column;
        align-items: stretch;
    }
    .status-badge {
        text-align: center;
    }
}

/* Приятный фокус для доступности */
.toggle-btn:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}
