/* Контейнер */
.pt-container {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px 20px;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px 0;
}

/* Таймер */
.pt-timer-display {
    text-align: center;
    margin-bottom: 25px;
}

.pt-time {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pt-session-info {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.pt-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
}

.pt-progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 1s linear;
}

/* Управление */
.pt-controls {
    margin-bottom: 20px;
}

.pt-preset-buttons {
    margin-bottom: 20px;
}

.pt-preset-group {
    text-align: center;
    margin-bottom: 15px;
}

.pt-preset-group h4 {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 600;
}

.pt-preset-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pt-main-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pt-custom-time {
    text-align: center;
}

.pt-custom-time label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.pt-time-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pt-time-separator {
    font-weight: bold;
    margin: 0 2px;
}

/* Кнопки */
.pt-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pt-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pt-btn.pt-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.pt-btn.pt-primary:hover:not(:disabled) {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.pt-btn.pt-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.pt-btn.pt-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.pt-preset-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 12px;
    font-size: 0.85rem;
    min-width: 45px;
    min-height: 40px;
}

.pt-preset-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.pt-set-custom-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: 40px;
}

/* Поля ввода */
.pt-input {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    text-align: center;
    background: rgba(255,255,255,0.1);
    color: white;
    padding: 8px 10px;
    font-size: 0.9rem;
    width: 70px;
    min-height: 40px;
    box-sizing: border-box;
}

.pt-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.pt-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
}

/* Статистика */
.pt-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.pt-stat {
    text-align: center;
}

.pt-stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.pt-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Кнопки поделиться */
.pt-share-section {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.pt-share-section h4 {
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 0.95rem;
}

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

.pt-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    font-weight: bold;
    font-size: 0.9rem;
    color: white;
}

.pt-share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.pt-share-vk {
    background: #4C75A3;
}

.pt-share-telegram {
    background: #0088cc;
}

.pt-share-whatsapp {
    background: #25D366;
}

.pt-share-copy {
    background: #666;
    font-size: 1.2rem;
}

/* Уведомления */
.pt-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: #4CAF50;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

/* Адаптивность */

/* Desktop */
@media (max-width: 1024px) {
    .pt-time {
        font-size: 3.2rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .pt-container {
        padding: 20px 15px;
    }
    
    .pt-time {
        font-size: 2.8rem;
    }
    
    .pt-preset-row {
        gap: 6px;
    }
    
    .pt-preset-btn {
        min-width: 40px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .pt-main-controls {
        gap: 8px;
    }
    
    .pt-btn {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-height: 42px;
    }
    
    .pt-stats {
        padding: 12px;
        gap: 10px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .pt-container {
        padding: 15px 12px;
    }
    
    .pt-time {
        font-size: 2.5rem;
        margin-bottom: 6px;
    }
    
    .pt-session-info {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .pt-preset-buttons {
        margin-bottom: 15px;
    }
    
    .pt-preset-group {
        margin-bottom: 12px;
    }
    
    .pt-preset-group h4 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .pt-preset-row {
        gap: 4px;
    }
    
    .pt-preset-btn {
        min-width: 35px;
        min-height: 35px;
        padding: 4px 6px;
        font-size: 0.75rem;
        flex: 1;
        max-width: 50px;
    }
    
    .pt-main-controls {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .pt-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 38px;
        flex: 1;
        max-width: 100px;
    }
    
    .pt-custom-time label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .pt-time-inputs {
        gap: 3px;
    }
    
    .pt-input {
        width: 60px;
        min-height: 38px;
        padding: 6px 8px;
        font-size: 0.85rem;
    }
    
    .pt-set-custom-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-height: 38px;
        flex: 1;
        max-width: 90px;
    }
    
    .pt-time-separator {
        margin: 0 1px;
    }
    
    .pt-stats {
        padding: 10px;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .pt-stat-label {
        font-size: 0.8rem;
    }
    
    .pt-stat-value {
        font-size: 1rem;
    }
    
    .pt-share-section {
        padding-top: 15px;
    }
    
    .pt-share-section h4 {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .pt-share-buttons {
        gap: 8px;
    }
    
    .pt-share-btn {
        width: 45px;
        height: 45px;
        font-size: 0.85rem;
    }
    
    .pt-share-copy {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 360px) {
    .pt-container {
        padding: 12px 10px;
    }
    
    .pt-time {
        font-size: 2.2rem;
    }
    
    .pt-session-info {
        font-size: 0.9rem;
    }
    
    .pt-preset-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 3px 4px;
        font-size: 0.7rem;
        max-width: 45px;
    }
    
    .pt-btn {
        padding: 5px 8px;
        font-size: 0.75rem;
        min-height: 36px;
        max-width: 85px;
    }
    
    .pt-input {
        width: 55px;
        min-height: 36px;
        padding: 5px 6px;
        font-size: 0.8rem;
    }
    
    .pt-set-custom-btn {
        max-width: 80px;
        font-size: 0.75rem;
    }
    
    .pt-stat-label {
        font-size: 0.75rem;
    }
    
    .pt-stat-value {
        font-size: 0.9rem;
    }
    
    .pt-share-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
    
    .pt-share-copy {
        font-size: 1rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    .pt-preset-btn {
        min-width: 30px;
        max-width: 40px;
        font-size: 0.65rem;
    }
    
    .pt-btn {
        max-width: 75px;
        font-size: 0.7rem;
        padding: 4px 6px;
    }
    
    .pt-input {
        width: 50px;
    }
    
    .pt-set-custom-btn {
        max-width: 70px;
    }
}