/* Container and Design */
.wpc-slope-wrapper {
    max-width: 650px;
    margin: 20px auto;
    background-color: #f5f5f5; /* Grey Background */
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    border: 1px solid #ddd;
    overflow: hidden;
}

.wpc-slope-header {
    background-color: #2e7d32; /* Dark Green */
    padding: 15px;
    text-align: center;
}

.wpc-slope-header h3 {
    margin: 0;
    color: #ffffff !important;
    font-size: 22px;
}

.wpc-slope-container {
    padding: 25px;
    background: #fff;
}

.wpc-point-title {
    font-weight: bold;
    color: #2e7d32;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    text-transform: uppercase;
}

.wpc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.wpc-input-group label {
    display: block;
    font-size: 13px;
    margin-bottom: 5px;
    color: #555;
}

.wpc-input-group input {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-sizing: border-box;
}

/* Buttons */
.wpc-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.wpc-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;
}

.wpc-btn-green:hover { background: #45a049 !important; }

.wpc-btn-grey {
    flex: 1;
    background: #757575 !important;
    color: white !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 5px !important;
    cursor: pointer;
}

/* Results Area */
.wpc-result-box {
    margin-top: 25px;
    background: #f1f8e9;
    padding: 15px;
    border-left: 5px solid #4caf50;
    border-radius: 4px;
}

.wpc-res-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
}

.wpc-res-item:last-child { border-bottom: none; }
.wpc-res-item strong { color: #1b5e20; }

/* Table Section */
.wpc-formula-card {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #ddd;
}

.wpc-formula-card h4 { margin-top: 0; color: #2e7d32; }

.wpc-table-scroll { overflow-x: auto; }

.wpc-formula-card table {
    width: 100%;
    border-collapse: collapse;
}

.wpc-formula-card th {
    background: #757575;
    color: white;
    text-align: left;
    padding: 10px;
    font-size: 13px;
}

.wpc-formula-card td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 500px) {
    .wpc-grid { grid-template-columns: 1fr; }
}