/* Основные стили с префиксом tp- */
.tp-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.tp-section-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.tp-timer-display {
    text-align: center;
    margin-bottom: 20px;
}

.tp-time-inputs {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tp-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tp-input-group label {
    font-size: 12px;
    color: #666;
    font-weight: bold;
}

.tp-input {
    width: 80px;
    height: 70px;
    text-align: center;
    font-size: 28px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    -moz-appearance: textfield;
    box-sizing: border-box;
}

.tp-input::-webkit-outer-spin-button,
.tp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.tp-input:focus {
    outline: none;
    border-color: #4CAF50;
}

.tp-colon {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.tp-timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tp-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    background: #4CAF50;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.tp-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.tp-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.tp-btn.tp-interval-active {
    background: #ff9800;
    animation: pulse 1s infinite;
}

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

.tp-preset-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.tp-preset-btn {
    padding: 12px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.tp-preset-btn:hover {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Интервальный таймер */
.tp-interval-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tp-interval-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.tp-interval-group {
    text-align: center;
}

.tp-interval-group h4 {
    margin-bottom: 15px;
    color: #333;
}

.tp-interval-status {
    margin-bottom: 20px;
    text-align: center;
}

.tp-current-interval {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.tp-interval-progress {
    margin: 20px 0;
}

.tp-progress-bar {
    width: 100%;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.tp-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 0%;
    transition: width 0.3s ease;
}

/* Блок поделиться */
.tp-share-section {
    text-align: center;
    margin-top: 30px;
}

.tp-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tp-share-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
}

.tp-share-btn:hover {
    transform: scale(1.1);
}

.tp-vk-btn {
    background: #4a76a8;
    color: white;
}

.tp-tg-btn {
    background: #0088cc;
    color: white;
}

.tp-wa-btn {
    background: #25d366;
    color: white;
}

.tp-link-btn {
    background: #666;
    color: white;
    font-size: 24px;
}

/* Уведомление */
.tp-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #4CAF50;
    color: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100001;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    max-width: 90%;
    opacity: 0;
    pointer-events: none;
}

.tp-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.tp-notification.error {
    background: #f44336;
}

.tp-notification.info {
    background: #2196F3;
}

.tp-notification.warning {
    background: #ff9800;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .tp-container {
        padding: 15px;
    }
    
    .tp-input {
        width: 70px;
        height: 60px;
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .tp-container {
        padding: 15px;
    }
    
    .tp-preset-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tp-interval-inputs {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tp-input {
        width: 65px;
        height: 55px;
        font-size: 22px;
    }
    
    .tp-timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .tp-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .tp-share-buttons {
        gap: 12px;
    }
    
    .tp-share-btn {
        width: 55px;
        height: 55px;
    }
    
    .tp-notification {
        padding: 20px 25px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tp-container {
        padding: 10px;
    }
    
    .tp-preset-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .tp-preset-btn {
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .tp-time-inputs {
        gap: 8px;
    }
    
    .tp-input {
        width: 60px;
        height: 50px;
        font-size: 20px;
    }
    
    .tp-section-title {
        font-size: 1.3em;
    }
    
    .tp-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .tp-notification {
        padding: 15px 20px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .tp-input {
        width: 55px;
        height: 45px;
        font-size: 18px;
    }
    
    .tp-preset-buttons {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    
    .tp-preset-btn {
        padding: 8px 3px;
        font-size: 12px;
    }
    
    .tp-share-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
}