* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-repeat: repeat-x;
    background-size: 600px;
    opacity: 0.5;
}

.header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-wrapper {
    flex: 1;
    padding: 25px;
    border-right: 2px solid #e0e0e0;
    max-height: 900px;
    overflow-y: auto;
}

.results-wrapper {
    flex: 1;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    gap: 0;
    min-height: 600px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

label {
    color: #555;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

input[type="number"],
select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    font-family: inherit;
}

input[type="number"]::placeholder,
select {
    color: #999;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
    padding-right: 35px;
}

input[type="submit"] {
    margin-top: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

input[type="submit"]:active {
    transform: translateY(0);
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.button-group input[type="submit"] {
    flex: 1;
    min-width: 150px;
}

/* Prediction Grid */
.prediction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.prediction-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical center */
    align-items: center;
}

.prediction-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.prediction-item h3 {
    margin-bottom: 10px;
    color: #667eea;
    font-size: 1.2em;
}

.prediction-item p {
    margin: 5px 0;
    font-size: 1.1em;
    color: #333;
}

/* .prediction-item p {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(-5px); /* move up */
/* }  */

.prediction-item strong {
    color: #764ba2;
    font-size: 1.3em;
}

/* Results Styling */
.results {
    padding: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    /* border-left: 5px solid #667eea; */
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

.results h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.results p {
    padding: 12px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    align-items: center;
}

.results p:last-child {
    border-bottom: none;
}

.results strong {
    color: #667eea;
    font-weight: 600;
    text-align: left;
}

.results .value {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 16px;
    text-align: right;
}

.results.placeholder {
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.05), rgba(220, 220, 220, 0.05));
    border-left-color: #ccc;
    text-align: center;
    color: #999;
}

/* Error Styling */
.error {
    background-color: #fee;
    border: 2px solid #f88;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .content-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .form-wrapper {
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
        max-height: none;
    }

    .results-wrapper {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .container {
        max-width: 100%;
    }

    .header {
        padding: 20px;
    }

    .header h2 {
        font-size: 20px;
    }

    .form-wrapper {
        padding: 18px;
    }

    .results-wrapper {
        padding: 18px;
    }

    label {
        font-size: 11px;
    }

    input[type="number"],
    select {
        padding: 9px 10px;
        font-size: 12px;
    }

    input[type="submit"] {
        padding: 10px;
        font-size: 13px;
    }

    .results p {
        flex-direction: column;
        align-items: flex-start;
    }

    .results .value {
        margin-top: 5px;
        display: block;
    }
}

