/* ═══════════════════════════════════════════
   KOLLAPOOR GLOBAL NRI CONNECT — Custom CSS
   File: public/css/custom.css
═══════════════════════════════════════════ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Telugu:wght@400;700;900&display=swap');

/* ── Base ── */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #f9fafb;
    color: #1f2937;
}

/* ── Telugu Font ── */
.font-telugu {
    font-family: 'Noto Sans Telugu', sans-serif;
}

/* ── Header logo image ── */
.imghdr {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(21, 128, 61, 0);
    }
}

.animate-slide-in {
    animation: slideInLeft 0.6s ease-out forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.7s ease-out forwards;
}

.animate-fade-up-2 {
    animation: fadeInUp 0.9s ease-out forwards;
}

.animate-fade-up-3 {
    animation: fadeInUp 1.1s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* ═══════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════ */

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.25);
}

input[type="checkbox"],
input[type="radio"] {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

/* ── Form input base style ── */
.form-input {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    color: #1f2937;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus {
    border-color: #15803d;
    box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.25);
}

/* ── Section header accent bar ── */
.section-header-accent {
    border-left: 4px solid currentColor;
}

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */

.navbar-glass {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */

.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 40, 0, 0.45) 100%);
}

/* ── Glassmorphism card ── */
.glass-card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ── Stats bar ── */
.stats-bar {
    background-color: rgba(20, 83, 45, 0.9);
    border-top: 1px solid #166534;
    border-bottom: 1px solid #166534;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    transform: scale(1.02);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(21, 128, 61, 0.35);
}

.btn-primary:hover {
    background-color: #16a34a;
}

.btn-outline {
    border: 2px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    width: 100%;
    border-radius: 1rem;
    padding: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a5f 0%, #15803d 100%);
    box-shadow: 0 10px 30px rgba(21, 128, 61, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-submit:hover {
    opacity: 0.92;
    transform: scale(1.01);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ── WhatsApp button ── */
.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: background-color 0.15s;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background-color: #128c4a;
}

/* ═══════════════════════════════════════════
   REGISTRATION FORM
═══════════════════════════════════════════ */

.form-section {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.form-section-header {
    border-left: 4px solid currentColor;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.required-star {
    color: #ef4444;
}

/* ── Checkbox/radio option cards ── */
.option-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
    font-size: 0.875rem;
    color: #374151;
}

.option-card:hover {
    border-color: #15803d;
    background-color: #f0fdf4;
}

/* ── Photo upload drop zone ── */
.drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.drop-zone:hover,
.drop-zone.active {
    border-color: #15803d;
    background-color: #f0fdf4;
}

/* ═══════════════════════════════════════════
   ADMIN PANEL
═══════════════════════════════════════════ */

/* ── Stat cards ── */
.stat-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #f3f4f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* ── Admin table ── */
.admin-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background-color: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.admin-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.875rem;
    color: #374151;
}

.admin-table tr:hover td {
    background-color: #f9fafb;
}

/* ── Badge ── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-green {
    background: #dcfce7;
    color: #15803d;
}

.badge-amber {
    background: #fef9c3;
    color: #b45309;
}

.badge-purple {
    background: #ede9fe;
    color: #7c3aed;
}

/* ── Pagination ── */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* ── Modal backdrop ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── Sidebar ── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.15s;
}

.sidebar-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */

[x-cloak] {
    display: none !important;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* ── Smooth scroll ── */
html {
    scroll-behavior: smooth;
}

/* ── Selection color ── */
::selection {
    background-color: rgba(21, 128, 61, 0.2);
    color: #14532d;
}

.imghdr {
    height: 70px;
}

.ministerphoto {
    bottom: 0px;
    position: relative;
}

.jbg {
    background: linear-gradient(135deg, rgb(5 42 1) 0%, rgb(0 40 0 / 11%) 100%);
}