.tool-container {
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.current-time-panel {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    color: #0369a1;
}

.current-time-panel .label {
    font-weight: 500;
}

.current-time-panel .value {
    font-family: monospace;
    font-size: 1.1rem;
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid #e0f2fe;
}

.current-time-panel .value.highlight {
    color: #dc2626;
    font-weight: bold;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    background: white;
    border: 1px solid #bae6fd;
    border-radius: 4px;
    cursor: pointer;
    color: #0284c7;
}

.btn-sm:hover {
    background: #e0f2fe;
}

.converter-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.converter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.converter-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #374151;
    border-left: 4px solid #2563eb;
    padding-left: 0.75rem;
}

.input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

input[type="text"], select {
    padding: 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95rem;
}

input[type="text"] {
    flex: 1;
    min-width: 200px;
    font-family: monospace;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.dual-output {
    flex: 1;
    display: flex;
    gap: 1rem;
    min-width: 300px;
}

.output-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0; /* Prevent flex item overflow */
}

.output-item input[type="text"] {
    min-width: 100px; /* Override global min-width */
}

.output-item .unit {
    font-size: 0.85rem;
    color: #6b7280;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .current-time-panel {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dual-output {
        flex-direction: column;
        min-width: 0;
    }
}