/* Контейнер */
.duc-container {
    width: 100%;
    max-width: 100%;
    background: #f5f5f5;
    border-radius: 15px;
    padding: 40px 20px;
    box-sizing: border-box;
    text-align: center;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Текст над таймером */
.duc-text {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Основной таймер */
.duc-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 15px;
    flex-wrap: wrap;
}

.duc-time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.duc-time-value {
    font-size: 60px;
    font-weight: 800;
    color: #2c3e50;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 5px;
}

.duc-time-label {
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.duc-time-separator {
    font-size: 82px;
    font-weight: 800;
    color: #667eea;
    margin: 0 5px;
    line-height: 1;
    align-self: flex-end;
    margin-bottom: 25px;
}

/* Форма пользовательского ввода */
.duc-custom-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin: 35px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.duc-custom-form h3 {
    margin: 0 0 25px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
}

.duc-form-row {
    margin-bottom: 25px;
}

.duc-form-row label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #34495e;
    font-size: 16px;
}

.duc-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background: #fafafa;
}

.duc-input:focus {
    border-color: #667eea;
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.duc-date-hint {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
    font-style: italic;
}

.duc-form-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.duc-update-btn, .duc-save-btn {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.duc-save-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.duc-update-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.duc-save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

/* Сохраненные отсчеты */
.duc-saved-countdowns {
    border-top: 2px solid #ecf0f1;
    padding-top: 25px;
}

.duc-saved-countdowns h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.duc-saved-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.duc-saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.duc-saved-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.duc-saved-info {
    flex: 1;
    text-align: left;
}

.duc-saved-text {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.duc-saved-date {
    font-size: 14px;
    color: #7f8c8d;
}

.duc-saved-actions {
    display: flex;
    gap: 10px;
}

.duc-load-btn, .duc-delete-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.duc-load-btn {
    background: #3498db;
    color: white;
}

.duc-load-btn:hover {
    background: #2980b9;
}

.duc-delete-btn {
    background: #e74c3c;
    color: white;
}

.duc-delete-btn:hover {
    background: #c0392b;
}

/* Кнопки поделиться */
.duc-share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.duc-share-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.duc-share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.duc-share-btn:hover::before {
    left: 100%;
}

.duc-share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 25px rgba(0,0,0,0.3);
}

.duc-vk { background: #4a76a8; color: white; }
.duc-tg { background: #0088cc; color: white; }
.duc-wa { background: #25d366; color: white; }
.duc-copy { background: #ff6b6b; color: white; font-size: 24px; }

/* Уведомление */
.duc-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100001;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 30px 40px;
    border-radius: 15px;
    font-size: 20px;
    font-weight: bold;
    display: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    text-align: center;
    animation: ducNotification 0.5s ease-out;
}

@keyframes ducNotification {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Адаптивность */
@media (max-width: 1024px) {
    .duc-time-value {
        font-size: 72px;
    }
    .duc-time-separator {
        font-size: 72px;
    }
}

@media (max-width: 768px) {
    .duc-timer {
        gap: 10px;
    }
    .duc-time-value {
        font-size: 60px;
    }
    .duc-time-separator {
        font-size: 60px;
        margin-bottom: 20px;
    }
    .duc-time-block {
        min-width: 100px;
    }
    .duc-text {
        font-size: 24px;
    }
    .duc-custom-form {
        padding: 25px;
    }
    .duc-form-buttons {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .duc-timer {
        gap: 5px;
    }
    .duc-time-value {
        font-size: 42px;
    }
    .duc-time-separator {
        font-size: 42px;
        margin-bottom: 15px;
    }
    .duc-time-block {
        min-width: 80px;
    }
    .duc-time-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .duc-time-value {
        font-size: 36px;
    }
    .duc-time-separator {
        font-size: 36px;
    }
    .duc-time-block {
        min-width: 70px;
    }
    .duc-text {
        font-size: 20px;
    }
    .duc-share-btn {
        width: 60px;
        height: 60px;
        font-size: 16px;
    }
    .duc-custom-form {
        padding: 20px;
    }
    .duc-container {
        padding: 30px 15px;
    }
}

@media (max-width: 360px) {
    .duc-time-value {
        font-size: 28px;
    }
    .duc-time-separator {
        font-size: 28px;
    }
    .duc-time-block {
        min-width: 60px;
    }
    .duc-time-label {
        font-size: 12px;
    }
    .duc-container {
        padding: 20px 10px;
    }
}