/* ==========================================
   1. GLOBAL VARIABLES & RESET
   ========================================== */
:root {
  --primary-color: #0d5edf;       /* Dark slate blue for headers/accents */
  --accent-color: #2563eb;        /* Vibrant blue for values & primary actions */
  --accent-hover: #1d4ed8;        /* Darker blue hover state */
  --danger-color: #ef4444;        /* Red for destructive actions like logout */
  --danger-hover: #dc2626;
  --bg-color: #f8fafc;            /* Light neutral background */
  --card-bg: #ffffff;             /* White background for cards/containers */
  --text-main: #0f172a;           /* Dark slate body text */
  --text-muted: #64748b;          /* Soft gray subtext */
  --border-color: #e2e8f0;        /* Subtle border color */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

/* ==========================================
   2. DASHBOARD HEADER
   ========================================== */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
}

header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
}

header p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  width: 100%; /* Keeps subtitle underneath on mobile views */
}

#logoutBtn {
  background-color: var(--danger-color);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

#logoutBtn:hover {
  background-color: var(--danger-hover);
  transform: translateY(-1px);
}

@media (min-width: 600px) {
  header p {
    width: auto;
    margin-top: 0;
    font-size: 0.95rem;
  }
}

/* ==========================================
   3. DASHBOARD MAIN CONTENT & CARDS
   ========================================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 0.75rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card p {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}

/* ==========================================
   4. LOGIN PAGE STYLES (If using same file)
   ========================================== */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.login-box h1 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.login-box p {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-box label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.login-box input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.login-box input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.login-box button[type="submit"] {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  background: var(--accent-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.login-box button[type="submit"]:hover {
  background: var(--accent-hover);
}
.card{
    text-decoration:none;
    color:#333;
    cursor:pointer;
    transition:0.3s;
}

.card:hover{

    transform:translateY(-8px);

    box-shadow:0 10px 30px rgba(0,0,0,.2);

    background:#fdf9ef;

}
.card{

text-decoration:none;

color:black;

transition:.3s;

cursor:pointer;

}

.card:hover{

transform:translateY(-8px);

box-shadow:0 12px 25px rgba(0,0,0,.25);

}
/*==========================
SPONSOR TABLE
===========================*/

.table-section{

background:white;

padding:30px;

border-radius:15px;

box-shadow:0 8px 25px rgba(0,0,0,.08);

margin-top:30px;

}

.table-header{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:20px;

flex-wrap:wrap;

gap:20px;

}

.table-header h2{

color:#0b5c74;

font-size:28px;

}

.table-tools{

display:flex;

align-items:center;

gap:20px;

flex-wrap:wrap;

}

.table-tools input{

width:320px;

padding:12px 15px;

border-radius:8px;

border:1px solid #ccc;

font-size:15px;

}

.total{

font-weight:bold;

font-size:17px;

color:#444;

}

.table-container{

overflow:auto;

border-radius:12px;

}

table{

width:100%;

border-collapse:collapse;

min-width:1200px;

}

thead{

background:#0b5c74;

color:white;

position:sticky;

top:0;

}

thead th{

padding:18px;

text-align:left;

}

tbody td{

padding:16px;

border-bottom:1px solid #eee;

}

tbody tr:nth-child(even){

background:#f8f8f8;

}

tbody tr:hover{

background:#eaf8ff;

transition:.3s;

}

.status{

padding:8px 15px;

border-radius:30px;

font-size:13px;

font-weight:bold;

display:inline-block;

}

.pending{

background:#fff4d6;

color:#c88a00;

}

.approved{

background:#d9ffe0;

color:#0a8f3e;

}

.rejected{

background:#ffe1e1;

color:#d60000;

}

.actions{

display:flex;

gap:8px;

}

.actions button{

border:none;

padding:8px 12px;

border-radius:6px;

cursor:pointer;

font-weight:bold;

color:white;

transition:.3s;

}

.view{

background:#1976d2;

}

.approve{

background:#28a745;

}

.reject{

background:#dc3545;

}

.delete{

background:#444;

}

.actions button:hover{

transform:scale(1.05);

opacity:.9;

}
/* ============================= */
/* VIEW SPONSOR PAGE */
/* ============================= */

.view-page{

max-width:1100px;

margin:40px auto;

padding:20px;

}

.application-card{

background:white;

padding:40px;

border-radius:18px;

box-shadow:0 10px 30px rgba(0,0,0,.1);

}

.profile-header{

display:flex;

align-items:center;

gap:25px;

margin-bottom:30px;

}

.avatar{

width:90px;

height:90px;

border-radius:50%;

background:#1f4f66;

color:white;

font-size:40px;

display:flex;

justify-content:center;

align-items:center;

}

.details-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(250px,1fr));

gap:25px;

margin-top:30px;

margin-bottom:30px;

}

.details-grid label{

font-weight:bold;

color:#1f4f66;

display:block;

margin-bottom:8px;

}

.details-grid p{

font-size:18px;

}

.message-box{

margin-top:25px;

padding:25px;

background:#f5f5f5;

border-radius:12px;

}

.status-box{

margin-top:25px;

}

.action-buttons{

display:flex;

flex-wrap:wrap;

gap:15px;

margin-top:35px;

}

.action-buttons button{

padding:14px 24px;

border:none;

border-radius:10px;

font-size:16px;

cursor:pointer;

font-weight:bold;

transition:.3s;

}

#approveBtn{

background:#28a745;

color:white;

}

#rejectBtn{

background:#dc3545;

color:white;

}

#printBtn{

background:#007bff;

color:white;

}

#pdfBtn{

background:#6f42c1;

color:white;

}

#emailBtn{

background:#17a2b8;

color:white;

}

.action-buttons button:hover{

transform:translateY(-3px);

box-shadow:0 8px 20px rgba(0,0,0,.2);

}
.status{

    padding:8px 18px;
    border-radius:20px;
    font-weight:bold;
    font-size:15px;
    display:inline-block;

}


.status.pending{

    background:#fff3cd;
    color:#856404;

}


.status.approved{

    background:#d4edda;
    color:#155724;

}


.status.rejected{

    background:#f8d7da;
    color:#721c24;

}
/* Action buttons in sponsors table */

.actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}


.viewBtn,
.deleteBtn {

    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;

}


.viewBtn {

    background: #2980b9;
    color: white;

}


.deleteBtn {

    background: #c0392b;
    color: white;

}


.viewBtn:hover {

    background: #1f6391;

}


.deleteBtn:hover {

    background: #922b21;

}


/* Make sure table buttons are not hidden */

.actions button {

    visibility: visible;
    opacity: 1;

}
#loginMessage{

display:none;
margin-top:15px;
font-weight:bold;
color: #0a8f3e;

}
/* =======================
   GALLERY PAGE
======================= */

.upload-box{

background:#fff;

padding:25px;

border-radius:15px;

box-shadow:0 5px 15px rgba(0,0,0,.1);

margin:30px 0;

display:flex;

flex-direction:column;

gap:15px;

}

.upload-box h3{

color:#2e7d32;

margin-bottom:10px;

}

.upload-box input{

padding:14px;

border:1px solid #ddd;

border-radius:8px;

font-size:15px;

}

.upload-box button{

padding:15px;

background:#2e7d32;

color:white;

border:none;

border-radius:8px;

font-size:17px;

cursor:pointer;

transition:.3s;

}

.upload-box button:hover{

background:#1b5e20;

}

#gallery{

display:grid;

grid-template-columns:repeat(auto-fill,minmax(280px,1fr));

gap:25px;

margin-top:30px;

}

.card{

background:white;

border-radius:12px;

overflow:hidden;

box-shadow:0 5px 12px rgba(0,0,0,.1);

transition:.3s;

}

.card:hover{

transform:translateY(-6px);

}

.card img{

width:100%;

height:220px;

object-fit:cover;

}

.card h3{

padding:15px;

text-align:center;

font-size:18px;

}

.deleteBtn{

width:100%;

padding:15px;

background:#d32f2f;

color:white;

border:none;

cursor:pointer;

font-size:16px;

}

.deleteBtn:hover{

background:#b71c1c;

}