/* ===== IOESF Global Opportunity Portal - Main Stylesheet ===== */

/* Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
    display: inline-block;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background-color: #fef7ff; color: #2e1a28; min-height: 100vh; }

/* ===== SHADOWS ===== */
.candy-shadow-primary  { box-shadow: 0 4px 16px rgba(224,64,160,0.22); }
.candy-shadow-secondary{ box-shadow: 0 4px 16px rgba(124,82,170,0.22); }
.candy-shadow-tertiary { box-shadow: 0 4px 16px rgba(0,150,204,0.22);  }

/* ===== TRANSITIONS & MICRO-ANIMATIONS ===== */
.bouncy-tap:active           { transform: scale(0.95); }
.bouncy-spring-effect:active { transform: scale(0.95); transition: transform 0.1s cubic-bezier(0.175,0.885,0.32,1.275); }
.bouncy-hover:hover          { transform: scale(1.03);  transition: transform 0.2s ease; }

/* Smooth hover on nav links */
.nav-link { transition: color 0.2s ease, transform 0.2s ease; }
.nav-link:hover { transform: scale(1.05); }

/* ===== GLASS CARD ===== */
.glass-card {
    background: rgba(255,255,255,0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
}

/* ===== GRADIENT BACKGROUNDS ===== */
.hero-gradient {
    background: linear-gradient(135deg, #fef7ff 0%, #ffd6ee 50%, #c8eaff 100%);
}
.cta-gradient {
    background: linear-gradient(135deg, #e040a0 0%, #7c52aa 100%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #fef7ff; }
::-webkit-scrollbar-thumb { background: #f0a0cc; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #e040a0; }

/* ===== ANIMATIONS ===== */
@keyframes float-up {
    0%   { opacity: 0; transform: translateY(24px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-ring {
    0%   { box-shadow: 0 0 0 0 rgba(224,64,160,0.4); }
    70%  { box-shadow: 0 0 0 12px rgba(224,64,160,0); }
    100% { box-shadow: 0 0 0 0 rgba(224,64,160,0); }
}
@keyframes bounce-slow {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
@keyframes slide-in-right { from { transform:translateX(40px); opacity:0; } to { transform:translateX(0); opacity:1; } }
@keyframes slide-in-left  { from { transform:translateX(-40px); opacity:0;} to { transform:translateX(0); opacity:1; } }

.animate-float-up     { animation: float-up 0.6s ease-out both; }
.animate-fade-in      { animation: fade-in 0.5s ease-out both; }
.animate-slide-right  { animation: slide-in-right 0.5s ease-out both; }
.animate-slide-left   { animation: slide-in-left  0.5s ease-out both; }
.animate-bounce-slow  { animation: bounce-slow 3s ease-in-out infinite; }
.animate-pulse-ring   { animation: pulse-ring 2s cubic-bezier(0.215,0.61,0.355,1) infinite; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ===== FORM ELEMENTS ===== */
.form-input {
    width: 100%;
    background: #fbf2fb;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #2e1a28;
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
}
.form-input:focus { box-shadow: 0 0 0 2px #e040a0; background: #fff; }
.form-input::placeholder { color: #b0889c; }

.form-textarea {
    width: 100%;
    background: #fbf2fb;
    border: none;
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #2e1a28;
    outline: none;
    resize: none;
    transition: box-shadow 0.2s, background 0.2s;
}
.form-textarea:focus { box-shadow: 0 0 0 2px #e040a0; background: #fff; }

.form-select {
    width: 100%;
    background: #fbf2fb;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: #2e1a28;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow 0.2s;
    cursor: pointer;
}
.form-select:focus { box-shadow: 0 0 0 2px #e040a0; }

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: #e040a0; color: #fff;
    padding: 0.85rem 2rem; border-radius: 9999px;
    font-weight: 700; font-family: 'DM Sans', sans-serif; font-size: 1rem;
    border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(224,64,160,0.22);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}
.btn-primary:hover  { transform: scale(1.05); box-shadow: 0 8px 24px rgba(224,64,160,0.35); }
.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: #7c52aa; color: #fff;
    padding: 0.85rem 2rem; border-radius: 9999px;
    font-weight: 700; font-family: 'DM Sans', sans-serif;
    border: none; cursor: pointer;
    box-shadow: 0 4px 16px rgba(124,82,170,0.22);
    transition: transform 0.2s; text-decoration: none;
}
.btn-secondary:hover  { transform: scale(1.05); }
.btn-secondary:active { transform: scale(0.95); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    background: transparent; color: #e040a0;
    padding: 0.85rem 2rem; border-radius: 9999px;
    font-weight: 700; font-family: 'DM Sans', sans-serif;
    border: 2px solid #ffd6ee; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
}
.btn-outline:hover { background: #ffd6ee; border-color: #e040a0; transform: scale(1.04); }
.btn-outline:active { transform: scale(0.95); }

/* ===== STATUS BADGES ===== */
.badge-review    { background:#ffd6ee; color:#a02070; }
.badge-approved  { background:#d1fae5; color:#065f46; }
.badge-pending   { background:#f2e8f2; color:#604868; }
.badge-rejected  { background:#ffe8e8; color:#9b1c1c; }
.badge-draft     { background:#ffd6ee; color:#a02070; }
.badge-shortlist { background:#c8eaff; color:#005580; }
.badge { padding:0.25rem 0.75rem; border-radius:9999px; font-size:0.72rem; font-weight:800; text-transform:uppercase; letter-spacing:0.06em; }

/* ===== DASHBOARD SIDEBAR ===== */
.sidebar {
    position: fixed; left:0; top:0; height:100vh; width:16rem;
    background: #fff; border-right: 1px solid #ffe0f0;
    box-shadow: 4px 0 24px rgba(224,64,160,0.06);
    display: flex; flex-direction:column;
    padding: 1rem; z-index:40;
    transition: transform 0.3s ease;
}
.sidebar-link {
    display: flex; align-items:center; gap:0.75rem;
    padding: 0.75rem 1rem; border-radius: 9999px;
    color: #604868; font-size:0.875rem; font-weight:500;
    text-decoration:none; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.sidebar-link:hover { background:#fff0f8; color:#e040a0; transform:translateX(4px); }
.sidebar-link.active { background:#fff0f8; color:#e040a0; font-weight:700; box-shadow:0 4px 12px rgba(224,64,160,0.15); }

/* ===== CARD ===== */
.card {
    background: #fff; border-radius:1rem; padding:1.5rem;
    box-shadow: 0 4px 20px rgba(224,64,160,0.07);
    border: 1px solid #ffe0f0;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform:translateY(-4px); box-shadow:0 8px 32px rgba(224,64,160,0.13); }

/* ===== STEP PROGRESS ===== */
.step-line { position:relative; }
.step-line::before {
    content:''; position:absolute; top:50%; left:0; width:100%; height:2px;
    background:#ffd6ee; transform:translateY(-50%); z-index:0;
}

/* ===== SECTION HEADINGS ===== */
.section-label {
    font-size:0.75rem; font-weight:800; text-transform:uppercase;
    letter-spacing:0.12em; color:#0096cc;
}
.section-heading { font-size:2.5rem; font-weight:900; color:#2e1a28; line-height:1.15; }
.section-heading span { color:#e040a0; }

/* ===== PROGRAM CARD ===== */
.program-card { position:relative; overflow:hidden; border-radius:1rem; }
.program-card img { transition: transform 0.5s ease; }
.program-card:hover img { transform:scale(1.08); }

/* ===== TABLE ===== */
.data-table { width:100%; border-collapse:separate; border-spacing:0; }
.data-table th { padding:1.25rem 2rem; font-size:0.7rem; text-transform:uppercase; letter-spacing:0.1em; color:#604868; font-weight:800; }
.data-table td { padding:1rem 2rem; border-top:1px solid #fff0f8; }
.data-table tr:hover td { background:#fff8fb; }

/* ===== MOBILE NAV BOTTOM ===== */
.mobile-bottom-nav {
    position:fixed; bottom:0; left:0; right:0;
    background:#fff; border-top:1px solid #ffe0f0;
    display:flex; justify-content:space-around; align-items:center;
    height:5rem; z-index:50; padding:0 1rem;
    box-shadow:0 -4px 16px rgba(224,64,160,0.10);
    border-radius:1.5rem 1.5rem 0 0;
}

/* ===== PAGINATION ===== */
.page-btn {
    width:3rem; height:3rem; border-radius:9999px; border:1px solid #ffe0f0;
    display:flex; align-items:center; justify-content:center;
    color:#604868; cursor:pointer; font-weight:700;
    transition: background 0.2s, box-shadow 0.2s;
}
.page-btn:hover  { background:#fff; box-shadow:0 4px 12px rgba(224,64,160,0.15); }
.page-btn.active { background:#e040a0; color:#fff; border-color:#e040a0; box-shadow:0 4px 12px rgba(224,64,160,0.30); }

/* ===== TOAST / FLASH ===== */
.toast { position:fixed; top:5rem; left:50%; transform:translateX(-50%); z-index:9999; padding:0.75rem 2rem; border-radius:9999px; font-weight:700; font-size:0.875rem; box-shadow:0 8px 32px rgba(0,0,0,0.15); transition:opacity 0.5s; }

/* ===== SKELETON LOADING ===== */
.skeleton { background: linear-gradient(90deg,#f0e8f0 25%,#ffe0f0 50%,#f0e8f0 75%); background-size:200% 100%; animation: skeleton-shimmer 1.4s infinite; border-radius:0.75rem; }
@keyframes skeleton-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ===== RESPONSIVE HELPERS ===== */
@media (max-width: 768px) {
    .section-heading { font-size:1.75rem; }
    .sidebar { transform:translateX(-100%); }
    .sidebar.open { transform:translateX(0); }
    .main-with-sidebar { margin-left:0 !important; }
}

/* ===== PRINT ===== */
@media print {
    .no-print { display:none !important; }
}
