
:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --green-50: #f0fdf4;
    --green-100: #dcfce7;
    --green-200: #bbf7d0;
    --green-400: #4ade80;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-900: #14532d;
    --emerald-600: #059669;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-900: #7f1d1d;
    --primary: #667eea;
    --bg-body: #0f172a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--slate-900);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(102, 126, 234, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: relative;
    color: var(--slate-50);
}

.verification-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.verification-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, rgba(34, 197, 94, 0.05), transparent);
    filter: blur(100px);
    pointer-events: none;
}

.verification-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.verify-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease;
}

.badge-label {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 999px;
}

.badge-text {
    margin-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.875rem;
    color: var(--slate-400);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-gradient-text {
    background: linear-gradient(to right, #2563eb, #9333ea, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.icon-badge {
    width: 70px;
    height: 70px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 
        0 10px 30px -5px rgba(0, 0, 0, 0.3),
        0 4px 6px -2px rgba(0, 0, 0, 0.1);
    color: white;
    font-size: 1.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.verify-page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.verify-page-header p {
    color: var(--slate-400);
    font-size: 1rem;
}

/* Card Styles */
.verify-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 
        0 20px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    color: var(--slate-50);
}

.verify-header-strip {
    height: 6px;
    background: linear-gradient(90deg, var(--green-500) 0%, var(--emerald-600) 100%);
    width: 100%;
}

/* Search UI Styles */
#searchUI {
    padding: 3rem;
}

@media (max-width: 640px) {
    #searchUI {
        padding: 1.5rem;
    }
}

.config-notice {
    background: rgba(255, 247, 237, 0.1);
    border: 1px solid rgba(254, 215, 170, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.notice-icon {
    color: #fb923c;
    font-size: 1.25rem;
}

.notice-text h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fdba74;
    margin-bottom: 0.25rem;
}

.notice-text p {
    font-size: 0.8125rem;
    color: #fed7aa;
}

.verify-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    background: rgba(30, 41, 59, 0.5);
    padding: 0.5rem;
    border-radius: 0.875rem;
}

.verify-tab-btn {
    flex: 1;
    padding: 0.875rem;
    border: none;
    background: transparent;
    border-radius: 0.625rem;
    color: var(--slate-400);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verify-tab-btn:hover {
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.05);
}

.verify-tab-btn.active {
    background: var(--slate-800);
    color: white;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.2);
}

.input-wrapper {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 1.125rem;
    z-index: 1;
}

.verify-search-section input {
    width: 100%;
    padding: 1.125rem 1.125rem 1.125rem 3.25rem;
    border: 2px solid var(--slate-700);
    border-radius: 0.875rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(30, 41, 59, 0.5);
    color: white;
}

.verify-search-section input::placeholder {
    color: var(--slate-500);
}

.verify-search-section input:focus {
    outline: none;
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
    background: var(--slate-800);
}

.verify-btn {
    width: 100%;
    padding: 1.125rem;
    background: white;
    color: var(--slate-900);
    border: none;
    border-radius: 0.875rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.verify-btn:hover {
    background: var(--slate-100);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.2);
}

.verify-btn:active {
    transform: translateY(0);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 3rem 2rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--slate-200);
    border-top-color: var(--green-500);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    color: var(--slate-600);
    font-weight: 500;
}

/* Result Container */
.verify-result-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.verify-result-container.show {
    max-height: 2000px;
    opacity: 1;
}

/* Result Card Styles (Modern Two-Column Layout) */
.verify-result-card {
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid var(--slate-700);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.verify-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .verify-grid {
        grid-template-columns: 280px 1fr;
    }
}

/* Left Column: Status & QR */
.verify-status-col {
    background: rgba(30, 41, 59, 0.3);
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--slate-700);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.75rem;
}

@media (max-width: 767px) {
    .verify-status-col {
        border-right: none;
        border-bottom: 1px solid var(--slate-700);
        padding: 2rem 1.5rem;
    }
}

.status-icon-wrapper {
    width: 5.5rem;
    height: 5.5rem;
    background: rgba(22, 163, 74, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-400);
    font-size: 2.75rem;
    box-shadow: 
        0 0 0 6px rgba(30, 41, 59, 0.5),
        0 0 0 8px rgba(34, 197, 94, 0.1);
    position: relative;
}

.status-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.status-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.status-text h2 {
    font-size: 1.375rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(22, 163, 74, 0.2);
    color: var(--green-400);
    border: 1.5px solid var(--green-800);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.025em;
}

.qr-code-wrapper {
    padding: 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid var(--slate-700);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.qr-code-wrapper img,
.qr-code-wrapper canvas {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.scan-text {
    font-size: 0.8125rem;
    color: var(--slate-400);
    font-weight: 500;
}

/* Right Column: Details */
.verify-details-col {
    padding: 2.5rem;
    background: transparent;
}

@media (max-width: 640px) {
    .verify-details-col {
        padding: 2rem 1.5rem;
    }
}

.detail-group {
    margin-bottom: 2rem;
}

.detail-group:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--slate-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.detail-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    line-height: 1.5;
}

.detail-value i {
    color: var(--slate-400);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.detail-value.highlight {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.detail-value.highlight i {
    color: var(--primary);
    font-size: 1.25rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cert-id-row {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--slate-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--slate-400);
    font-weight: 500;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-id-badge {
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    color: var(--slate-200);
    font-size: 0.75rem;
    font-weight: 600;
    word-break: break-all;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .action-buttons {
        flex-direction: row;
    }
}

.action-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
}

.btn-download {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-download:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-share {
    background: #0077b5;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.btn-share:hover {
    background: #006396;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--slate-600);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--slate-500);
}

.action-btn:active {
    transform: translateY(0);
}

/* Error State */
.error-card {
    text-align: center;
    padding: 3.5rem 2.5rem;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-icon {
    width: 5rem;
    height: 5rem;
    background: rgba(127, 29, 29, 0.2);
    color: var(--red-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 0 0 6px rgba(30, 41, 59, 0.5),
        0 0 0 8px rgba(239, 68, 68, 0.1);
}

.error-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--red-500);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.error-desc {
    color: var(--slate-400);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Certificate List (Multiple Results) */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.cert-card {
    background: rgba(30, 41, 59, 0.5);
    border: 2px solid var(--slate-700);
    border-radius: 0.875rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-card:hover {
    border-color: var(--green-500);
    box-shadow: 0 8px 24px -4px rgba(34, 197, 94, 0.2);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
}

.cert-card-title {
    color: white;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.75rem;
}

.cert-card-date {
    color: var(--slate-400);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-card-id {
    color: var(--slate-400);
    font-size: 0.75rem;
    font-family: 'SF Mono', monospace;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.cert-card .view-details {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--green-400);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Typography */
@media (max-width: 992px) {
    .verify-page-header h1 {
        font-size: 2rem;
    }
    
    .verify-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .verification-wrapper {
        padding: 1rem;
    }
    
    .verify-page-header {
        padding: 1.5rem 0;
    }
    
    .verify-page-header h1 {
        font-size: 1.75rem;
    }
    
    .verify-page-header p {
        font-size: 0.9rem;
    }
    
    #searchUI {
        padding: 2rem;
    }
    
    .verify-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .verify-tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .verify-grid {
        padding: 1.5rem;
    }
    
    .status-icon-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .status-icon-wrapper i {
        font-size: 3rem;
    }
    
    .qr-code-wrapper {
        width: 180px;
        height: 180px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .header h1 {
        font-size: 1.625rem;
    }
    
    .verify-page-header h1 {
        font-size: 1.5rem;
    }
    
    #searchUI {
        padding: 1.5rem;
    }
    
    .verify-card {
        border-radius: 1rem;
    }
    
    .verify-grid {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
    }
    
    .detail-value.highlight {
        font-size: 1.125rem;
    }
    
    .detail-label {
        font-size: 0.75rem;
    }
    
    .status-text h2 {
        font-size: 1.5rem;
    }
    
    .scan-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .verify-page-header h1 {
        font-size: 1.375rem;
    }
    
    .hero-badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    #searchUI {
        padding: 1rem;
    }
    
    .verify-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .input-wrapper input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem 0.875rem 2.75rem;
    }
    
    .status-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .status-icon-wrapper i {
        font-size: 2.5rem;
    }
    
    .qr-code-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .action-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .cert-id-badge {
        font-size: 0.7rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Dark Mode Support (Optional) - Removed to enforce dark theme */
/* @media (prefers-color-scheme: dark) {
    :root {
        --slate-50: #0f172a;
        --slate-100: #1e293b;
        --slate-900: #f8fafc;
    }
} */


