/* Converter Tool */
.converter-tool {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.converter-title {
    margin-bottom: 0.5rem;
}

.converter-description {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.converter-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .converter-form {
        grid-template-columns: 1fr 1fr;
    }
}

.input-group, .result-container {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.input-header, .result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-header label, .result-header label {
    font-weight: bold;
    font-size: 1.1rem;
}

.info-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-light);
}

input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.1rem;
}

.result-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

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

.btn svg {
    margin-right: 0.5rem;
}

/* Validation message */
.validation-message {
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
}

.validation-message.error {
    display: block;
    background-color: #ffe6e6;
    color: var(--error-color);
}

.validation-message.success {
    display: block;
    background-color: #e6ffe6;
    color: var(--success-color);
}

/* History */
.history-container {
    margin: 2rem 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.clear-history {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.9rem;
}

.clear-history span:first-child {
    margin-right: 0.5rem;
}

.history-list {
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.history-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.history-list li:last-child {
    border-bottom: none;
}

/* Formula section */
.formula-section {
    margin: 2rem 0;
}

.formula-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0;
    box-shadow: var(--shadow);
}

.example {
    font-style: italic;
    color: var(--text-light);
}

/* Conversion steps */
.conversion-steps {
    margin: 2rem 0;
}

.step {
    display: flex;
    margin-bottom: 1.5rem;
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-title {
    margin-bottom: 0.5rem;
}

.step-description {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.common-errors {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.common-errors h4 {
    margin-bottom: 1rem;
    color: #e65100;
}

.common-errors ul {
    padding-left: 1.5rem;
}

.common-errors li {
    margin-bottom: 0.5rem;
}

/* Reference section */
.reference-section {
    margin: 2rem 0;
}

.update-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.update-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.update-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.update-title {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.update-card time {
    font-size: 0.8rem;
    color: var(--text-light);
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    transition: var(--transition);
}

.pdf-download-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-icon {
    margin-right: 0.5rem;
}

.info-cards {
    margin: 2rem 0;
}

.info-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Practical uses */
.practical-uses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .practical-uses {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.use-case-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.use-case-body {
    padding: 1.5rem;
}

.use-case-examples {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.use-case-examples li {
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-section {
    margin: 2rem 0;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-light);
}

.faq-question::after {
    content: "+";
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: "-";
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

/* Responsive adjustments for content */
@media (max-width: 767px) {
    .converter-tool {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .converter-tool {
        padding: 1rem;
    }
    
    .input-group, .result-container {
        padding: 1rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .update-grid {
        grid-template-columns: 1fr;
    }
}