/* Main Converter Container */
.lbs-to-kg-converter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.converter-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.converter-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.converter-header .description {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

/* Converter Wrapper */
.converter-wrapper {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.converter-form {
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1.1em;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lbs-input {
    background: #f8f9fa;
}

.kg-output {
    background: #e8f5e9;
    font-weight: bold;
    color: #2e7d32;
}

.input-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-group .input-unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(15px);
    color: #666;
    font-weight: 500;
    pointer-events: none;
}

/* Buttons */
.conversion-buttons {
    display: flex;
    gap: 10px;
    margin: 25px 0;
}

.convert-btn {
    flex: 1;
    padding: 18px 20px;
    font-size: 1.1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.convert-btn.reverse {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.secondary-btn {
    flex: 1;
    padding: 15px;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background: #e0e0e0;
    border-color: #667eea;
}

/* Conversion Info */
.conversion-info {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.conversion-info p {
    margin: 10px 0;
}

.formula {
    font-family: monospace;
    font-size: 1.2em;
    color: #2c3e50;
    background: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    border: 1px dashed #667eea;
}

/* Examples Section */
.examples-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.examples-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.examples-list {
    display: grid;
    gap: 20px;
}

.example-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.example-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.example-item h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 10px;
}

.example-item p {
    margin: 10px 0;
    color: #555;
}

.load-example {
    margin-top: 10px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.load-example:hover {
    background: #5a6fd8;
}

.common-conversions {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.common-conversions li {
    padding: 8px 12px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ddd;
    text-align: center;
}

/* Footer Sections */
.converter-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.quick-conversions, .conversion-history {
    margin-bottom: 30px;
}

.quick-conversions h4, .conversion-history h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-btn {
    padding: 10px 20px;
    background: #e3f2fd;
    border: 2px solid #bbdefb;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #1976d2;
    transition: all 0.3s ease;
}

.quick-btn:hover {
    background: #bbdefb;
    transform: translateY(-2px);
}

/* Conversion History */
#conversion-history-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
}

#conversion-history-list li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 5px;
    border-left: 3px solid #667eea;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#conversion-history-list li .delete-history {
    color: #ff4757;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#conversion-history-list li .delete-history:hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .lbs-to-kg-converter-container {
        padding: 20px;
    }
    
    .converter-wrapper {
        padding: 20px;
    }
    
    .converter-header h2 {
        font-size: 2em;
    }
    
    .conversion-buttons {
        flex-direction: column;
    }
    
    .common-conversions {
        grid-template-columns: 1fr;
    }
    
    .quick-buttons {
        justify-content: center;
    }
}

/* Animation for results */
@keyframes highlightResult {
    0% { background-color: #e8f5e9; }
    50% { background-color: #c8e6c9; }
    100% { background-color: #e8f5e9; }
}

.result-highlight {
    animation: highlightResult 1s ease;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9em;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}