/* ======= Online Result System — Public Styles ======= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ors-wrap {
    max-width: 580px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
    overflow: hidden;
}

.ors-college-name {
    text-align: center;
    margin: 0;
    padding: 20px 24px 0;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #6b7280;
}

.ors-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 28px 24px 24px;
    text-align: center;
}

.ors-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ors-search-area {
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ors-search-area label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ors-search-area input[type="text"] {
    width: 100%;
    padding: 13px 16px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    color: #111827;
}

.ors-search-area input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.ors-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity .2s, transform .1s;
}

.ors-btn:hover { opacity: .9; transform: translateY(-1px); }
.ors-btn:active { transform: translateY(0); }

/* Loading */
#ors-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #6b7280;
    font-size: 14px;
}

.ors-spinner {
    width: 20px; height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: ors-spin 0.8s linear infinite;
}
@keyframes ors-spin { to { transform: rotate(360deg); } }

/* Result card */
.ors-result-card {
    padding: 0 24px 28px;
    animation: ors-fade-in .3s ease;
}
@keyframes ors-fade-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

.ors-result-badge {
    background: #dcfce7;
    color: #15803d;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.ors-result-details { margin-bottom: 20px; }

.ors-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: #f9fafb;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}

.ors-label { color: #6b7280; font-weight: 500; }
.ors-value { color: #111827; font-weight: 600; }
.ors-pass  { color: #16a34a; }
.ors-fail  { color: #dc2626; }

.ors-download-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    background: linear-gradient(135deg, #15803d, #22c55e);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.5px;
    transition: opacity .2s;
    box-sizing: border-box;
}
.ors-download-btn:hover { opacity: .9; color: #fff; text-decoration: none; }

.ors-error {
    margin: 0 24px 24px;
    padding: 13px 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.ors-no-pdf {
    padding: 13px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .ors-wrap { margin: 16px; }
    .ors-result-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}
