/* ================================
   GLOBAL STYLES
================================ */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    margin: 0;
    padding: 0;
    color: #222;
}

h1, h2 {
    margin: 0 0 15px 0;
    font-weight: 600;
}

.app-header {
    background: #1a73e8;
    color: white;
    padding: 25px;
    text-align: center;
}

.app-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}


/* ================================
   INPUT SECTION
================================ */

.input-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.form-row label {
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-row input,
.form-row select {
    padding: 10px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

button {
    padding: 12px 18px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

#calculateBtn {
    background: #1a73e8;
    color: white;
}

#resetBtn {
    background: #ccc;
}


/* ================================
   OUTPUT SECTION
================================ */

.output-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.output-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.output-row:last-child {
    border-bottom: none;
}

.output-row label {
    font-weight: 500;
}

.output-row span {
    font-weight: 600;
}


/* ================================
   COLOR SIGNALS
================================ */

.final-decision span {
    padding: 6px 12px;
    border-radius: 6px;
}

/* Over */
.over {
    background: #d4f8d4;
    color: #0a7a0a;
}

/* Under */
.under {
    background: #ffe0e0;
    color: #b30000;
}

/* No Edge */
.no-edge {
    background: #fff7cc;
    color: #8a6d00;
}


/* ================================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 600px) {
    .app-container {
        padding: 10px;
    }

    .input-section,
    .output-section {
        padding: 15px;
    }

    button {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ================================
   CONFIDENCE LEVEL STYLES
================================ */
.conf-low {
    color: red;
    font-weight: bold;
}

.conf-medium {
    color: orange;
    font-weight: bold;
}

.conf-high {
    color: green;
    font-weight: bold;
}
