﻿/* Countdown Timer - Tool Styles */

/* Timer Display */
.timer-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.timer-text {
    font-size: 4rem;
    font-weight: bold;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Tool Options */
.tool-options {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.tool-options.time-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tool-options .input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tool-options.time-inputs .input-group {
    margin-bottom: 0;
}

.tool-options .input-group:last-child {
    margin-bottom: 0;
}

.tool-options .input-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.tool-options input[type="number"] {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    background: var(--surface-color);
    color: var(--text-color);
    font-weight: 500;
}

.tool-options input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tool-options input[type="number"]:disabled {
    background: var(--surface-color);
    cursor: not-allowed;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 1rem;
    height: 1rem;
}

/* Error Message */
.error-msg {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-md);
    color: #c33;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: none;
}

.error-msg.show {
    display: block;
}

/* Tool Actions */
.tool-actions-horizontal {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.8rem 1.5rem;
    background: var(--border-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover:not(:disabled) {
    background: var(--text-color-secondary);
    border-color: var(--text-color-secondary);
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.action-btn.primary:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.action-btn.success {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.action-btn.success:hover:not(:disabled) {
    opacity: 0.9;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Preset Section */
.preset-section {
    margin-bottom: 2rem;
}

.preset-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.preset-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
}

.preset-btn {
    padding: 0.75rem;
    background: var(--surface-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: var(--primary-color);
    color: white;
}

.preset-btn:active {
    transform: scale(0.98);
}

/* Sidebar */
.tool-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.related-tools,
.tool-tips {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-tools h4,
.tool-tips h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.related-tools ul,
.tool-tips ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-tools li,
.tool-tips li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.related-tools li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.tool-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.related-tools li:last-child,
.tool-tips li:last-child {
    margin-bottom: 0;
}

.related-tools a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.related-tools a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timer-text {
        font-size: 3rem;
    }

    .timer-display {
        padding: 2rem 1.5rem;
    }

    .tool-options.time-inputs {
        grid-template-columns: repeat(3, 1fr);
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .preset-buttons {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .tool-sidebar {
        flex-direction: column;
        gap: 1.5rem;
    }

    .tool-actions-horizontal {
        flex-direction: column;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .timer-text {
        font-size: 2.5rem;
    }

    .timer-display {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .preset-buttons {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 0.75rem;
    }

    .preset-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .tool-options .input-group {
        margin-bottom: 0.75rem;
    }

    .checkbox-label {
        font-size: 0.9rem;
    }
}
