/* Length Converter Styles */
.length-converter-wrapper {
    /*display: flex;
    justify-content: center;
    padding: 20px;
    */margin: 30px 0;
}

.length-converter-wrapper table {
    width: 60%;
	padding: 6px;
}


.length-converter-wrapper input {
    padding: 4px;
	width: 100px;
	border-radius: 4px;
}

.length-converter-wrapper select {
    padding: 4px;
	width: 120px;
	    border-radius: 4px;
}

.length-converter-container {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 20px;
    /*box-shadow: 0 15px 30px rgba(0,0,0,0.15);*/
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.length-converter-container:hover {
    /*box-shadow: 0 20px 40px rgba(0,0,0,0.2);*/
}

.length-converter-header {
    background: linear-gradient(to right, #3a7bd5, #00d2ff);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.length-converter-title {
    font-size: 2.3rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.length-converter-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.converter-card {
    padding: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.input-row label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 70px;
    font-size: 1.1rem;
}

.converter-input, .converter-select {
    /*padding: 15px;*/
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.converter-input:focus, .converter-select:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
    outline: none;
}

.converter-input {
    flex: 1;
    min-width: 150px;
    background: #f8f9fa;
}

.converter-select {
    width: 200px;
    background: #f8f9fa;
    cursor: pointer;
}

.swap-container {
    text-align: center;
    margin: 25px 0;
}

.swap-btnl {
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 14px 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.swap-btnl:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
    border-radius: 15px;
}

.unit-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.unit-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #3498db;
}

.unit-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.unit-desc {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.4;
}

.length-converter-footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: #ecf0f1;
    font-size: 0.95rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .length-converter-title {
        font-size: 2rem;
    }
    
    .converter-card {
        padding: 20px;
    }
    
    .input-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .converter-input, .converter-select {
        width: 100%;
    }
    
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .length-converter-wrapper {
        padding: 10px;
    }
    
    .length-converter-title {
        font-size: 1.7rem;
    }
    
    .length-converter-subtitle {
        font-size: 1rem;
    }
    
    .converter-input, .converter-select {
        padding: 13px;
        font-size: 1rem;
    }
    
    .unit-grid {
        grid-template-columns: 1fr;
    }
    
    .swap-btn {
        width: 100%;
        padding: 14px;
    }
}