/* Modern CSS Variables & Design System - Light Theme for Yog Anushasan Foundation */
:root {
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f5f5f5;
    --border-color: rgba(107, 29, 92, 0.12);
    --border-glow: rgba(242, 122, 48, 0.25);
    --border-hover: rgba(107, 29, 92, 0.35);
    --accent-blue: #6B1D5C;   /* Deep Plum Purple */
    --accent-indigo: #E8620A; /* Deep Saffron Orange */
    --text-primary: #1a1017;
    --text-secondary: #6e6070;
    --success: #0d7a54;
    --error: #b52a1a;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(107, 29, 92, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(232, 98, 10, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Card Style */
.glass-card {
    background: var(--bg-card);
    border: 1px solid rgba(107, 29, 92, 0.10);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(107, 29, 92, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    box-shadow: 0 8px 32px rgba(107, 29, 92, 0.10), 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(107, 29, 92, 0.18);
}

.glass-card.card-glow {
    border-color: rgba(107, 29, 92, 0.15);
    box-shadow: 0 4px 24px rgba(107, 29, 92, 0.08), 0 1px 4px rgba(0,0,0,0.04);
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #E8620A 0%, #9C2A7A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Styled Inputs */
.form-control-custom {
    background: var(--bg-input) !important;
    border: 1.5px solid rgba(107, 29, 92, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.form-control-custom:focus {
    background: #ffffff !important;
    border-color: var(--accent-blue) !important;
    box-shadow: 0 0 0 3px rgba(107, 29, 92, 0.10) !important;
    outline: none;
}

.form-control-custom::placeholder {
    color: #b0a0ad;
}

/* Input group addon icons */
.input-group-text {
    background: var(--bg-input) !important;
    border: 1.5px solid rgba(107, 29, 92, 0.15) !important;
    color: var(--text-secondary) !important;
}

/* Premium Verification Button */
.btn-verify {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
    border: none;
    color: white;
    font-weight: 600;
    letter-spacing: 0.4px;
    padding: 13px 28px;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(107, 29, 92, 0.25);
}

.btn-verify:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(107, 29, 92, 0.35);
    color: white;
    background: linear-gradient(135deg, #832C72 0%, #F27A30 100%);
}

.btn-verify:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(107, 29, 92, 0.2);
}

/* CAPTCHA Widget Styling */
.captcha-container {
    background: var(--bg-input);
    border-radius: 10px;
    border: 1.5px dashed rgba(107, 29, 92, 0.18);
    padding: 12px 16px;
}

.captcha-equation {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: rgba(107, 29, 92, 0.07);
    border-radius: 8px;
    padding: 8px 18px;
    letter-spacing: 2px;
    display: inline-block;
    user-select: none;
}

/* Success & Error State Visuals */
.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
}

.badge-success {
    background: rgba(13, 122, 84, 0.08);
    color: var(--success);
    border: 1px solid rgba(13, 122, 84, 0.2);
}

.badge-danger {
    background: rgba(181, 42, 26, 0.08);
    color: var(--error);
    border: 1px solid rgba(181, 42, 26, 0.2);
}

/* Micro-interactions & Keyframe Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.animate-shake {
    animation: shake 0.4s ease-in-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-slide-down {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Table Style in Result Details */
.table-details {
    color: var(--text-primary) !important;
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
}

.table-details tr {
    background-color: transparent !important;
}

.table-details td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(107, 29, 92, 0.08) !important;
    background-color: transparent !important;
    color: inherit !important;
    vertical-align: top;
}

.table-details tr:last-child td {
    border-bottom: none !important;
}

.table-details td:first-child {
    font-weight: 600;
    color: var(--text-secondary) !important;
    width: 38%;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.table-details td:last-child {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Print Styling */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    body::before { display: none !important; }
    .no-print { display: none !important; }
    .glass-card {
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    .table-details td {
        border-bottom: 1px solid #e0e0e0 !important;
        color: black !important;
    }
    .table-details td:first-child { color: #555 !important; }
}
