.time-tools-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.time-tools-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.time-tools-tabs-section {
    width: 100%;
}

.time-tools-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-tools-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

.time-tools-tab:hover {
    background: #e8f4f8;
    color: #0073aa;
}

.time-tools-tab.active {
    background: #0073aa;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.3);
}

.time-tools-tab:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.tab-icon {
    font-size: 22px;
}

.tab-label {
    font-weight: 500;
}

.time-tools-content {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-panel h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: #1e1e1e;
    font-size: 22px;
    font-weight: 600;
}

.tool-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.input-group {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group.flex-1 {
    flex: 2;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #1e1e1e;
}

.input-group input,
.input-group select {
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn,
.swap-btn {
    padding: 10px 20px;
    background: #f0f0f1;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.preset-btn:hover,
.swap-btn:hover {
    background: #e0e0e1;
    border-color: #999;
}

.swap-btn {
    margin-top: 8px;
}

.time-tools-result-panel {
    width: 100%;
    background: white;
    border: 2px solid #0073aa;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.result-header h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #0073aa;
}

.result-content {
    min-height: 100px;
    margin-bottom: 20px;
}

.result-display {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.result-value {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.result-description {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

.result-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.2s;
}

.action-btn:hover {
    background: #005a87;
}

.action-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.error-message {
    color: #d63638;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .time-tools-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .time-tools-tab {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .time-tools-content {
        padding: 20px;
    }
    
    .input-row {
        flex-direction: column;
    }
    
    .input-group {
        width: 100%;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .time-tools-tab,
    .input-group input,
    .input-group select,
    .action-btn {
        transition: none;
    }
}
