@font-face {
    font-family: 'Intro Demo Black Caps';
    src: url('/static/fonts/intro-demo-black-caps.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PT Mono';
    src: url('/static/fonts/pt-mono_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'PT Mono', monospace;
    margin: 0;
    padding: 20px;
    background-color: white;
    color: black;
    line-height: 1.4;
}

.logout-link {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    text-decoration: none;
    border: 2px solid #000;
    background-color: #e9e9e9;
    padding: 8px 16px;
    letter-spacing: 1px;
}

.logout-link:hover {
    background-color: #8f8f8f;
}

h1 {
    font-family: 'Intro Demo Black Caps', 'Intro Demo', Arial, sans-serif;
    font-size: 48px;
    font-weight: 900;
    margin: 60px 0 40px 0;
    text-align: center;
    letter-spacing: 3px;
    line-height: 1;
}

.main-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 0;
}

.header-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-container h1 {
    margin: 60px 0 0 0;
    text-align: left;
}

.subscription-balance {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: black;
    border: 3px solid #000;
    background-color: #e4ffe2;
    padding: 8px 15px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    gap: 2px;
}

.balance-line {
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
}

.add-new-btn {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    text-decoration: none;
    border: 3px solid #000;
    background-color: #90EE90;
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 60px;
}

.add-new-btn:hover {
    background-color: #8f8f8f;
}

/* Новые стили для блока подписки */
.subscription-info {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: stretch;
}

.subscription-btn {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    text-decoration: none;
    border: 3px solid #000;
    background-color: #FFD700;
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    transition: background-color 0.2s;
}

.subscription-btn:hover {
    background-color: #FFA500;
}

.bonus-btn {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    border: 3px solid #000;
    background-color: rgb(215, 249, 250);
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bonus-btn:hover {
    background-color: rgb(195, 229, 230);
}

.subscription-current {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    border: 3px solid #000;
    background-color: #E6E6FA;
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    flex: 1;
}

.subscription-balance {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    border: 3px solid #000;
    background-color: #e4ffe2;
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}

.survey-container {
    /* Убираем отдельные стили контейнера */
}

.search-section {
    background-color: #f5f5f5;
    border: 3px solid #000;
    padding: 25px;
    margin-bottom: 30px;
}

.search-label {
    font-family: 'PT Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
}

.search-input {
    font-family: 'PT Mono', monospace;
    font-size: 15px;
    border: 3px solid #000;
    background-color: #e9e9e9;
    padding: 12px 16px;
    width: 100%;
    height: 45px;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    background-color: #ffffcc;
    border-color: #333;
}

.search-input::placeholder {
    color: #666;
    letter-spacing: 1px;
}

.survey-item {
    background-color: #f5f5f5;
    border: 3px solid #000;
    margin-bottom: 30px;
    padding: 25px;
}

.survey-title {
    font-family: 'PT Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
}

.survey-mode {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    margin: 0 0 25px 0;
    letter-spacing: 1px;
}

.survey-mode span {
    background-color: #e9e9e9;
    padding: 3px 8px;
    border: 1px solid #000;
}

.button-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn {
    font-family: 'PT Mono', monospace;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: black;
    background-color: #e9e9e9;
    border: 2px solid #000;
    padding: 12px 20px;
    font-size: 15px;
    letter-spacing: 1px;
    position: relative;
    min-height: 20px;
}

.btn:hover {
    background-color: #8f8f8f;
}

.btn-text {
    flex: 1;
}

.btn-text-platform {
    flex: 1;
    margin-right: 10px;
}

.text-status {
    font-size: 14px;
    font-weight: 700;
    margin-right: 15px;
    padding: 2px 6px;
    border: 1px solid #000;
    background-color: white;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border: 2px solid #000;
    margin-right: 15px;
    border-radius: 50%;
}

.status-on {
    background-color: #00ff00;
}

.status-off {
    background-color: #ff0000;
}

.icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    display: none;
}

.emoji {
    font-size: 18px;
    margin-left: 10px;
    display: none;
}

.telegram-emoji {
    color: #0088cc;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.edit-emoji {
    color: #ffaa00;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.results-emoji {
    color: #ffd700;
    text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

.no-surveys {
    text-align: center;
    font-family: 'PT Mono', monospace;
    font-size: 16px;
    margin-top: 60px;
    padding: 40px;
    background-color: #f5f5f5;
    border: 3px solid #000;
    letter-spacing: 1px;
}


.add-new-btn-disabled {
    background-color: #cccccc !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.add-new-btn-disabled:hover {
    background-color: #cccccc !important;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border: 3px solid #000;
    width: 80%;
    max-width: 500px;
    text-align: center;
    font-family: 'PT Mono', monospace;
}

.modal-content h2 {
    font-family: 'PT Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.modal-content p {
    font-size: 14px;
    margin: 10px 0;
    letter-spacing: 1px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin: -10px -10px 0 0;
}

.close:hover {
    color: black;
}

.modal-btn {
    font-family: 'PT Mono', monospace;
    font-size: 14px;
    color: black;
    text-decoration: none;
    border: 3px solid #000;
    background-color: #FFD700;
    padding: 12px 20px;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
}

.modal-btn:hover {
    background-color: #FFA500;
}

.referral-link-container {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    align-items: stretch;
}

.referral-input {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    border: 2px solid #000;
    background-color: #f5f5f5;
    padding: 10px;
    flex: 1;
    letter-spacing: 1px;
}

.copy-btn {
    font-family: 'PT Mono', monospace;
    font-size: 12px;
    color: black;
    border: 2px solid #000;
    background-color: #90EE90;
    padding: 10px 15px;
    letter-spacing: 1px;
    font-weight: 700;
    cursor: pointer;
}

.copy-btn:hover {
    background-color: #7FDD7F;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 36px;
        margin: 40px 0 30px 0;
    }

    .header-container {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .header-container h1 {
        margin: 40px 0 0 0;
        text-align: center;
    }

    .add-new-btn {
        margin-top: 0;
        text-align: center;
    }

    .logout-link {
        position: static;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }

    .main-container {
        padding: 0 10px;
    }

    /* Адаптивность для блока подписки */
    .subscription-info {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .subscription-btn,
    .bonus-btn,
    .subscription-current,
    .subscription-balance {
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
    }

    .search-section {
        padding: 20px;
        margin-bottom: 25px;
    }

    .search-label {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .search-input {
        font-size: 14px;
        padding: 10px 14px;
        height: 40px;
    }

    .survey-item {
        padding: 20px;
    }

    .button-container {
        gap: 8px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 14px;
    }

        .subscription-balance {
        font-size: 11px;
        padding: 8px 12px;
    }

    .balance-line {
        font-size: 11px;
    }
}