/* Калькулятор пакетных ставок Тото Пятнашка 1xBet */
.calculator-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 24px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.calculator-header {
    text-align: center;
    margin-bottom: 32px;
}

.calculator-title {
    font-size: 28px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.calculator-subtitle {
    color: #6b7280;
    font-size: 18px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .calculator-container {
        margin: 10px;
        padding: 16px;
    }
}

.calculator-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.templates-grid {
    display: grid;
    gap: 12px;
}

.template-btn {
    padding: 12px;
    text-align: left;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.template-conservative {
    background: #dcfce7;
    color: #166534;
}

.template-conservative:hover {
    background: #bbf7d0;
    transform: translateY(-1px);
}

.template-balanced {
    background: #dbeafe;
    color: #1e40af;
}

.template-balanced:hover {
    background: #bfdbfe;
    transform: translateY(-1px);
}

.template-aggressive {
    background: #fee2e2;
    color: #991b1b;
}

.template-aggressive:hover {
    background: #fecaca;
    transform: translateY(-1px);
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.result-item {
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.result-item:hover {
    transform: scale(1.02);
}

.result-combinations {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.result-cost {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

.result-value {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
}

.result-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
}

.warning-box {
    padding: 12px;
    background: #fef3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #92400e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.winnings-list {
    max-height: 400px;
    overflow-y: auto;
}

.winning-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
}

.winning-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.winning-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.winning-amount {
    font-weight: bold;
    font-size: 16px;
    text-align: right;
}

.winning-profit {
    font-size: 12px;
    margin-top: 2px;
    text-align: right;
}

.profit-positive {
    color: #059669;
}

.profit-negative {
    color: #dc2626;
}

.matches-container {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 32px;
}

.matches-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.match-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.match-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    background: white;
    transition: border-color 0.2s;
}

.match-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.reset-btn {
    padding: 8px 16px;
    background: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background: #d1d5db;
}

.info-text {
    font-size: 14px;
    color: #6b7280;
    margin-top: 16px;
    line-height: 1.5;
}

.info-text p {
    margin: 4px 0;
}

.disclaimer {
    margin-top: 24px;
    padding: 16px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 14px;
    color: #92400e;
}

.disclaimer ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.disclaimer li {
    margin: 4px 0;
    line-height: 1.4;
}

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

.calculator-container {
    animation: fadeIn 0.5s ease-out;
}

/* Улучшенная прокрутка */
.winnings-list::-webkit-scrollbar {
    width: 6px;
}

.winnings-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.winnings-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.winnings-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Дополнительные утилиты */
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }