@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap');

body {
    font-family: 'Fredoka', Arial, sans-serif;
    background-color: #fcf9f2;
    color: #1a1a1a;
    margin: 0;
    padding: 30px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* Centered Stacked Card Layout */
.container {
    background: #ffffff;
    padding: 30px;
    border: 3px solid #1a1a1a;
    border-radius: 24px;
    box-shadow: 6px 6px 0px #1a1a1a;
    max-width: 650px;
    width: 100%;
    box-sizing: border-box;
}

.container h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Fredoka', sans-serif;
    background-color: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 3px 3px 0px rgba(255, 107, 0, 0.3);
}

.form-group button {
    width: 100%;
    padding: 14px;
    background-color: #ff6b00;
    color: white;
    border: 2px solid #1a1a1a;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 3px 3px 0px #1a1a1a;
    transition: all 0.1s ease;
    margin-bottom: 10px;
}

.form-group button:hover {
    background-color: #ff852b;
}

.form-group button:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px #1a1a1a;
}

.btn-success {
    background-color: #10b981 !important;
}

.btn-success:hover {
    background-color: #059669 !important;
}

.output {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.output p {
    background: #f8fafc;
    padding: 12px 15px;
    border: 2px solid #1a1a1a;
    border-radius: 10px;
    margin: 0;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 2px 2px 0px #1a1a1a;
}

.full-width {
    width: 100%;
    margin-top: 15px;
}

.instructions {
    background: #fffbeb;
    border: 2px solid #1a1a1a;
    border-left: 6px solid #f59e0b;
    padding: 18px;
    margin-top: 20px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 3px 3px 0px #1a1a1a;
}

.instructions h4 { 
    margin-top: 0; 
    margin-bottom: 10px; 
    color: #b45309;
    font-size: 16px;
}

.instructions ol { 
    margin: 0; 
    padding-left: 20px; 
}

.instructions li { 
    margin-bottom: 6px; 
    line-height: 1.4;
}

.reference-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px dashed #cbd5e1;
}

.reference-section h3 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-size: 20px;
}

.svg-container {
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 10px;
    box-sizing: border-box;
    box-shadow: 3px 3px 0px #1a1a1a;
}

.svg-container img {
    width: 100%;
    height: auto;
    display: block;
}

.parameter-glossary {
    background: #f0fdf4;
    border: 2px solid #1a1a1a;
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
    box-shadow: 3px 3px 0px #1a1a1a;
}

.parameter-glossary h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #16a34a;
    font-size: 16px;
}

.parameter-glossary ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.parameter-glossary li {
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
    padding-bottom: 8px;
    border-bottom: 1px dashed #cbd5e1;
}

.parameter-glossary li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.parameter-glossary strong {
    display: inline-block;
    width: 50px;
    color: #1a1a1a;
    font-weight: 700;
}

.app-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px dashed #cbd5e1;
    font-size: 16px;
    color: #4b5563;
    font-weight: 600;
}