.vdc-container {
    max-width: 1200px;  /* Increased max-width to accommodate side-by-side layout */
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.vdc-header {
    text-align: center;
    margin-bottom: 30px;
}

.vdc-header h2 {
    color: #1e3c72;
    font-size: 2em;
    margin-bottom: 10px;
}

.vdc-card {
    background: white;
    border-radius: 8px;
    padding: 10px;
    /* padding: 30px; */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* New flex container for side-by-side layout */
.vdc-form-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Adjust sections for side-by-side layout */
.vdc-section {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px;
    /* padding: 20px; */
    min-width: 300px; /* Ensure minimum width for readability */
}

.vdc-section h3 {
    color: #1e3c72;
    margin-bottom: 10px;
    /* margin-bottom: 20px; */
    padding-bottom: 5px;
    /* padding-bottom: 10px; */
    border-bottom: 1px solid #dee2e6;
}

.vdc-input-group {
    margin-bottom: 5px;
    /* margin-bottom: 20px; */
    max-width: 200px;
    margin: 0 auto;
}

.vdc-input-group label {
    display: block;
    margin-bottom: 1px;
    /* margin-bottom: 8px; */
    color: #333;
    font-weight: 500;
}

.vdc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.vdc-input-wrapper input, 
.vdc-input-wrapper select {
    width: 100%;
    padding: 5px;
    /* padding: 12px; */
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.vdc-input-wrapper input:focus,
.vdc-input-wrapper select:focus {
    outline: none;
    border-color: #1e3c72;
}

.vdc-unit {
    position: absolute;
    right: 12px;
    color: #666;
    pointer-events: none;
}

.vdc-button {
    background: #1e3c72;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 200px;
    margin-top: 20px;
    display: block;
    margin: 20px auto;
}

.vdc-button:hover {
    background: #2a5298;
}

.vdc-results {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    display: none;
}

.vdc-result-item {
    margin-bottom: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.vdc-formula-section {
    margin-top: 40px;
}

.vdc-formula-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.vdc-formula-card {
    flex: 1;
    min-width: 300px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vdc-formula-display {
    text-align: center;
    font-size: 1.2em;
    margin: 15px 0;
}

.vdc-formula-fraction {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    margin: 0 5px;
}

.vdc-formula-fraction .numerator {
    border-bottom: 2px solid black;
    padding: 0 5px;
}

.vdc-formula-fraction .denominator {
    padding: 5px;
}

/* Unit Description Section Styles */
.vdc-description-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.vdc-description-section h3 {
    color: #1e3c72;
    margin-bottom: 20px;
}

.vdc-description-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.vdc-description-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.vdc-description-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.vdc-description-item strong {
    color: #1e3c72;
    font-size: 1.1em;
    margin-right: 10px;
}

.vdc-description-item ul {
    margin-top: 10px;
    margin-left: 20px;
    color: #666;
}

.vdc-description-item ul li {
    margin-bottom: 5px;
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    .vdc-form-container {
        flex-direction: column;
    }

    .vdc-container {
        padding: 15px;
    }

    .vdc-card {
        padding: 20px;
    }

    .vdc-section {
        padding: 15px;
    }
}