@import url("../fonts/manrope.css");

* {
    box-sizing: border-box;
    font-family: "Manrope", Arial, sans-serif;
}

body {
    margin: 0;
    background: #000000;
    color: #61bf31;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: 900px;
    margin: auto;
    padding: 40px 20px 80px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0;
}

.header p {
    color: #61bf31;
    max-width: 600px;
    margin: auto;
}

/* Card */
.card {
    background: #000000;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.card label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.card input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid #000000;
    font-size: 15px;
    margin-bottom: 8px;
}

.card small {
    color: #1a4e00;
}

/* Buttons */
.actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    background: #61bf31;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #61bf31;
}

.btn-secondary {
    background: #61bf31;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Result Card */
.result-card {
    background: #000000;
    border: 1px solid #153f00;
    padding: 25px;
    border-radius: 12px;
}

.result-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #61bf31;
    margin-bottom: 20px;
}

.result-row {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.result-label {
    width: 180px;
    color: #915b03;
    font-weight: 600;
}

.result-value {
    font-weight: 500;
}

.error {
    color: #8e0000;
    font-weight: 600;
}
/* ===== Result Card (Exact UI Style) ===== */



.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #1f5c00;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
}

.result-header span {
    font-size: 28px;
}

.result-highlight {
    background: #000000;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 22px;
}

.result-highlight .label {
    color: #61bf31;
    font-weight: 600;
    font-size: 14px;
}

.result-highlight .value {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 700;
    color: #61bf31;
}

/* Detail rows */
.result-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Icon colors */
.icon-user { background: #f3f4f6; }
.icon-doc { background: #e0f2fe; color:#2563eb; }
.icon-purpose { background:#f3e8ff; color:#7c3aed; }
.icon-date { background:#ffedd5; color:#ea580c; }
.icon-place { background:#fee2e2; color:#dc2626; }
.icon-valid { background:#dcfce7; color:#16a34a; }
.icon-approve { background:#e0e7ff; color:#4338ca; }

.result-text .title {
    font-weight: 600;
    color: #374151;
}

.result-text .value {
    margin-top: 3px;
    font-weight: 500;
}

.valid {
    color: #61bf31;
    font-weight: 700;
}
/* === FORCE SAME WIDTH & ALIGNMENT AS TOP CARD === */

#result {
    max-width: 700px;        /* SAME width as top container */
    margin: 0 auto;          /* center align */
    padding: 0 20px;         /* SAME side gap */
}

.result-card {
    background: #ffffff;
    border: 2px solid #fbd79e;
    border-radius: 14px;

    padding: 25px;           /* match top card padding */
    margin-top: 30px;        /* vertical gap only */

    box-shadow: 0 8px 20px rgba(141, 224, 120, 0.393);
}
/* === Back to Home Button (Top Right) === */
.back-home-btn {
    position: fixed;
    top: 20px;
    right: 20px;

    background: #000000;
    color: #61bf31;
    text-decoration: none;

    padding: 10px 16px;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);

    transition: all 0.2s ease;
    z-index: 999;
}

.back-home-btn:hover {
    background: #61bf31;
    color: #ffffff;
}
.logo {
    width: 80px;
    height: 80px;
    background: #61bf31;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 10px;
}

.logo img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}
