/* Main Wrapper */
.wp-tool-wrapper {
    background-color: #f4f4f4; /* Grey Background */
    padding: 30px 15px;
    border-radius: 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 950px;
    margin: 20px auto;
}

.section-title {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
}

.converter-flex, .tables-flex {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Tool Cards */
.tool-card, .info-card, .table-container {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.tool-card {
    flex: 1;
    min-width: 300px;
    border-top: 5px solid #2e7d32;
    overflow: hidden;
}

.card-header {
    background: #2e7d32; /* Dark Green */
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

.card-body {
    padding: 20px;
}

/* Form Styling */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100% !important;
    padding: 10px !important;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    font-size: 16px;
    box-sizing: border-box;
}

.input-group input:focus {
    border-color: #4caf50 !important;
    outline: none;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-green {
    flex: 2;
    background: #4caf50 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 5px !important;
    font-weight: bold;
    cursor: pointer;
}

.btn-grey {
    flex: 1;
    background: #757575 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 5px !important;
    cursor: pointer;
}

/* Results Area */
.result-display {
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-left: 5px solid #2e7d32;
}

.result-display p {
    margin: 0;
    font-size: 12px;
    color: #555;
}

.result-display span {
    font-size: 22px;
    font-weight: bold;
    color: #1b5e20;
    word-break: break-all;
}

/* Info Card */
.info-card {
    padding: 20px;
    border-left: 6px solid #4caf50;
    width: 100%;
    box-sizing: border-box;
}

.formula-item {
    background: #fafafa;
    padding: 10px;
    margin-top: 10px;
    border: 1px dashed #ccc;
    font-size: 14px;
}

/* Tables Styling */
.table-container {
    flex: 1;
    min-width: 300px;
    padding: 15px;
}

.table-container h3 {
    text-align: center;
    color: #2e7d32;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background: #2e7d32;
    color: white;
    padding: 10px;
    font-size: 14px;
}

table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
}

table tr:nth-child(even) {
    background: #f9f9f9;
}

table tr:hover {
    background: #f1f8e9;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .converter-flex, .tables-flex {
        flex-direction: column;
    }
}