/* ===================================================
   TheAcademicAlerts — Premium Custom CSS
   =================================================== */

/* -- Google Font (Inter) already loaded via header -- */
* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f4f8;
    color: #1e2a3a;
}

/* ---- NAVBAR ---- */
.navbar {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%) !important;
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 20px rgba(13,71,161,0.25);
}
.navbar-brand {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
}
.nav-link { font-weight: 500; font-size: 0.92rem; }
.nav-link:hover { opacity: 0.85; }

/* ---- HERO ---- */
.hero-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #00acc1 100%);
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 320px; height: 320px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.hero-section .lead {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ---- SEARCH BOX ---- */
.search-box {
    background: rgba(255,255,255,0.97);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    padding: 2rem !important;
}
.search-box .form-control,
.search-box .form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
}
.search-box .form-control:focus,
.search-box .form-select:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.search-box .btn-warning {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    transition: transform 0.15s, box-shadow 0.15s;
}
.search-box .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.4);
    color: #fff;
}

/* ---- SECTION TITLES ---- */
.section-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: #0d47a1;
    position: relative;
    display: inline-block;
    margin-bottom: 0.25rem;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 48px; height: 4px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    border-radius: 2px;
}

/* ---- EVENT CARDS ---- */
.event-card {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    height: 100%;
}
.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.13);
}
.event-card .card-header {
    padding: 0.65rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
}
.event-card .card-body { padding: 1.2rem; }
.event-card .card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #1e2a3a;
    margin-bottom: 0.5rem;
}
.event-card .meta-item {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
}
.event-card .meta-item i { color: #94a3b8; width: 14px; }
.event-card .card-footer {
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    padding: 0.8rem 1.2rem;
}

/* ---- EVENT TYPE BADGES ---- */
.badge-conference { background: #dbeafe; color: #1d4ed8; }
.badge-journal    { background: #dcfce7; color: #15803d; }
.badge-webinar    { background: #fef3c7; color: #b45309; }
.badge-workshop   { background: #f3e8ff; color: #7e22ce; }
.badge-training   { background: #ffe4e6; color: #be123c; }
.badge-symposium  { background: #e0f2fe; color: #0369a1; }

.event-type-badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

/* ---- DEADLINE URGENCY ---- */
.deadline-urgent { color: #dc2626; font-weight: 600; }
.deadline-soon   { color: #d97706; font-weight: 600; }
.deadline-ok     { color: #16a34a; }

/* ---- FILTER SIDEBAR ---- */
.filter-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.5rem;
    border: none;
}
.filter-card h6 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    margin-bottom: 0.5rem;
}
.filter-card .form-control,
.filter-card .form-select {
    border-radius: 8px;
    font-size: 0.88rem;
    border: 1.5px solid #e2e8f0;
}

/* ---- STAT CARDS (dashboard) ---- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 1.5rem;
    border-left: 4px solid;
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card.primary   { border-color: #1565c0; }
.stat-card.success   { border-color: #16a34a; }
.stat-card.warning   { border-color: #f59e0b; }
.stat-card.danger    { border-color: #dc2626; }
.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 4px;
}

/* ---- DASHBOARD SIDEBAR ---- */
.sidebar-nav .nav-link {
    color: #374151;
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: #eff6ff;
    color: #1565c0;
}
.sidebar-nav .nav-link.text-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}
.sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 0.5rem;
}

/* ---- FORMS ---- */
.form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
}
.form-card .form-label { font-weight: 600; font-size: 0.88rem; color: #374151; }
.form-card .form-control,
.form-card .form-select,
.form-card textarea {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.92rem;
    transition: border-color 0.15s;
}
.form-card .form-control:focus,
.form-card .form-select:focus,
.form-card textarea:focus {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}
.form-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #64748b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ---- BUTTONS ---- */
.btn-primary {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(21,101,192,0.35);
}
.btn-success {
    background: linear-gradient(135deg, #15803d, #16a34a);
    border: none;
    border-radius: 8px;
    font-weight: 600;
}
.btn-danger { border-radius: 8px; font-weight: 600; }
.btn-outline-primary { border-radius: 8px; font-weight: 600; }

/* ---- TABLES ---- */
.data-table { background: #fff; border-radius: 14px; overflow: hidden; }
.data-table thead th {
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
    padding: 0.9rem 1rem;
}
.data-table tbody td { padding: 0.85rem 1rem; vertical-align: middle; font-size: 0.9rem; }
.data-table tbody tr:hover { background: #f8fafc; }

/* ---- STATUS BADGES ---- */
.status-approved { background: #dcfce7; color: #15803d; border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }
.status-pending  { background: #fef3c7; color: #b45309; border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }
.status-rejected { background: #fee2e2; color: #be123c; border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }
.status-draft    { background: #f1f5f9; color: #64748b;  border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 700; }

/* ---- CATEGORY BROWSE TILES ---- */
.category-tile {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}
.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    color: #1565c0;
}
.category-tile .icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.8rem;
}

/* ---- SINGLE EVENT PAGE ---- */
.event-hero {
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    color: #fff;
    padding: 60px 0 50px;
}
.event-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.event-detail-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 2rem;
}
.event-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.event-meta-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
}
.event-meta-item .label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 4px;
}
.event-meta-item .value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e2a3a;
}

/* ---- AUTH PAGES ---- */
.auth-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 2.5rem;
    max-width: 480px;
    margin: 3rem auto;
}
.auth-card h2 { font-weight: 800; color: #0d47a1; }

/* ---- FOOTER ---- */
footer {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}
footer h5 { font-weight: 800; letter-spacing: 0.5px; }
footer a:hover { color: #f59e0b !important; }

/* ---- PAGINATION ---- */
.page-link {
    border-radius: 8px !important;
    margin: 0 2px;
    font-weight: 600;
    color: #1565c0;
    border-color: #e2e8f0;
}
.page-item.active .page-link {
    background: #1565c0;
    border-color: #1565c0;
}

/* ---- ALERTS / FLASH ---- */
.alert { border-radius: 12px; border: none; font-weight: 500; }
.alert-success { background: #dcfce7; color: #15803d; }
.alert-warning { background: #fef3c7; color: #b45309; }
.alert-danger  { background: #fee2e2; color: #be123c; }

/* ---- VERIFIED BADGE ---- */
.verified-badge { color: #1d4ed8; font-size: 1rem; }

/* ---- RESPONSIVE UTILITIES ---- */
.main-content { padding-top: 1.5rem; padding-bottom: 3rem; }

@media (max-width: 768px) {
    .hero-section { padding: 50px 0 40px; }
    .search-box { padding: 1.2rem !important; }
}
