﻿/* -----------------------------------------------------------
   RedAPI - Core Layout + Styles (Clean, Non-Responsive)
----------------------------------------------------------- */

:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #667085;
    --border: #e5e7eb;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --ring: rgba(37,99,235,.15);
    --radius: 12px;
}

/* Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(#F6F9FE, #E6ECF5);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

/* Headings & text */
h1, h2, h3 {
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    letter-spacing: -0.3px;
}

h2 {
    font-size: 1.4rem;
    margin: 1.25rem 0 .75rem;
    text-align: center;
}

/* Container */
.container, main.container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 16px;
}

/* Links */
a {
    color: var(--primary);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Buttons */
button, .btn, input[type="submit"] {
    appearance: none;
    display: inline-block;
    padding: .58rem 1rem;
    border-radius: .5rem;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    transition: all .15s ease-in-out;
}

    button:hover, .btn:hover {
        background: var(--primary-600);
        transform: translateY(-1px);
    }

/* Forms */
form {
    margin-top: .5rem;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

input[type="text"], input[type="email"], select {
    width: 100%;
    padding: .625rem .75rem;
    border: 1px solid #d1d5db;
    border-radius: .5rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

    input:focus, select:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 3px var(--ring);
    }

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* Alerts */
.alert {
    padding: .75rem 1rem;
    border-radius: .5rem;
    border: 1px solid var(--border);
    background: var(--surface);
    text-align: center;
}

.alert-success {
    border-color: #86efac;
    background: #ecfdf5;
    color: #15803d;
}

.alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #b45309;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    padding: .6rem .8rem;
    border-bottom: 1px solid var(--border);
}

thead th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
}


/* Manual search form */
form[method="post"] {
    max-width: 400px;
    margin: 0 auto 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

/* Slightly wider alignment between header + summary */
#checkContainer {
    max-width: 1000px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

    /* Container max width */
    /*#checkContainer {
        max-width: 1000px;
        margin: 0 auto;
    }*/

    /* --- Demo simplification: full-width upload section --- */

    /*#uploadCard {
        width: 100%;
        max-width: 950px;*/ /* same as main.container */
        /*margin: 0 auto 1.5rem auto;
        border-radius: var(--radius);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 1.5rem;
    }

    #uploadForm input[type="file"] {
        width: 100%;
        padding: 0.5rem;
        border-radius: 0.5rem;
    }*/
    /* Keep the summary table clean and centered */
    /*#uploadSummary {
        width: 100%;
        background: #fafbff;
        border-radius: var(--radius);
        padding: 1rem 1.25rem;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    }

    #uploadSummary table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    #uploadSummary th {
        width: 30%;
        text-align: left;
        color: var(--muted);
        font-weight: 600;
        padding: 0.6rem 1rem 0.6rem 0;
    }

    #uploadSummary td {
        color: var(--text);
        padding: 0.6rem 0.4rem;
    }*/
    /* --- Make the entire Check page wider --- */

    main.container, #checkContainer {
        max-width: 750px !important; /* wider layout */
        margin: 40px auto;
    }
    /* Make all cards (upload + manual search) fill that width */
    #uploadCard {
        width: 75%;
        max-width: 750px !important;
        margin: 0 auto 1.5rem auto;
        border-radius: var(--radius);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        padding: 1.5rem;
    }



}
