/* 📌 Dashboard Page Styling */
.dashboard-container {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

/* 📊 Dashboard Overview Section */
.dashboard-overview {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.overview-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.overview-card h3 {
    font-size: 18px;
    color: #1D3557;
    font-weight: 600;
}

.overview-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
    color: #FFD700;
}

/* 📌 Event Management Page */
.dashboard-container {
    width: 85%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

/* 📋 Event Creation Form */
.event-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.event-section h2 {
    font-size: 22px;
    color: #1D3557;
    margin-bottom: 15px;
}

/* 📌 Event Actions */
.event-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.action-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFD700;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    color: #1D3557;
    transition: 0.3s;
    gap: 10px;
}

.action-card a:hover {
    background: #B8860B;
    color: white;
}

/* 📌 Guest Management Page */
.guest-section, .upload-section, .guest-list-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
	width:80%;
	margin: 2rem auto;
}

.guest-section h2, .upload-section h2, .guest-list-section h2 {
    font-size: 22px;
    color: #1D3557;
    margin-bottom: 15px;
}



/* 📌 QR Code Management Page */
.qr-section, .generated-qr-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.qr-section h2, .generated-qr-section h2 {
    font-size: 22px;
    color: #1D3557;
    margin-bottom: 15px;
}



/* 🔹 Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 📌 Event Action Cards */
.event-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.action-card {
    background: #FFF;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.3s;
}

.action-card:hover {
    background: #03fcd6;
}

.action-card a {
    text-decoration: none;
    color: #1D3557;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-card i {
    font-size: 24px;
    margin-bottom: 8px;
}


/* 📋 Enhanced Event Registration Styling */
.event-registration {
    background-color: #ffffff;
    padding: 60px 0;
    text-align: center;
}

.event-registration .container {
    max-width: 600px;
    margin: auto;
}

.event-registration h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1D3557;
    margin-bottom: 15px;
}

.event-registration p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

/* 🗂️ Event Details Section */
.event-details {
    background: #F8F9FA;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.event-details p {
    font-size: 15px;
    color: #333;
    margin: 10px 0;
}

.event-details input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f1f1f1;
    font-size: 14px;
    color: #666;
    pointer-events: none;
}

/*this is for part of the dashboard page styling*/

/* Event select styling */
.form-group-dashboard {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}
.form-group-dashboard label {
  margin-right: 0.5rem;
  font-weight: 600;
}
.form-group-dashboard select {
  flex: 0 0 200px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
  background-color: #001F3F;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.form-group-dashboard select:focus {
  outline: none;
  border-color: var(--color-primary-600);
  background-color: #00D0B0;
}

.form-group-dashboard select:hover {
  background-color: #00D0B0;  /* your teal */
  color: #ffffff;             /* ensure the text stays readable */
}


/* KPI cards layout */
.kpi-cards {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.kpi-cards .card {
  flex: 1;
  background-color: var(--color-grey-100);
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}
.kpi-cards .card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}
.kpi-cards .card p {
  font-size: 1.5rem;
  font-weight: 600;
}
.kpi-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Charts side-by-side */
.charts {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.chart-card {
  flex: 1;
  background-color: var(--color-grey-50);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.chart-card h4 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
}

/* Quick actions grid (just in case) in the dashboard */
.event-actions {
  display: flex;
  gap: 1rem;
}
.event-actions .action-card {
  flex: 1;
  background-color: var(--color-primary-50);
  padding: 1rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: background-color 0.2s;
}
.event-actions .action-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #00D0B0;
  text-decoration: none;
  font-weight: 600;
}
.event-actions .action-card i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.event-actions .action-card:hover {
  background-color: var(--color-primary-100);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .kpi-cards, .charts, .event-actions {
    flex-direction: column;
  }
  .form-group-dashboard {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-group-dashboard select {
    margin-top: 0.5rem;
    width: 100%;
  }
}



.event-section .event-actions .action-card a {
  background-color: #001F3F; /* teal */
}
.event-section .event-actions .action-card a:hover {
  background-color: #001F3F; /* slightly darker teal on hover */
}

.action-card:hover {
  border-color: #00D0B0;
}


/* smooth transition on icon color */
.event-actions .action-card i {
  transition: color 0.2s ease-in-out;
}

/* on hover, change the icon to white */
.event-actions .action-card:hover i {
  color: #ffffff;
}


.event-actions .action-card a span {
  transition: color 0.2s ease-in-out;
}

.event-actions .action-card:hover a span {
  color: #ffffff;
}




/* ----------------------------------------
   VARIABLES (override in tokens.css if you like)
---------------------------------------- */
:root {
  --color-navy:    #001F3F;
  --color-teal:    #00D0B0;
  --color-white:   #ffffff;
  --color-grey-50:  #f7fafc;
  --color-grey-100:#edf2f7;
  --color-grey-200:#e2e8f0;
  --color-grey-300:#cbd5e0;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:     0 4px 6px rgba(0,0,0,0.1);
  --font-stack:    'Poppins', sans-serif;
}

/* ----------------------------------------
   GLOBAL RESET (you may already have these)
---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font-stack);
  background-color: var(--color-grey-50);
  color: var(--color-navy);
  line-height: 1.5;
}
h1, h2 {
  margin: 0 0 1rem;
  font-weight: 600;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ----------------------------------------
   NAVIGATION
---------------------------------------- */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: linear-gradient(90deg, #1D3557, #003366);
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-md);
}
.nav-container .logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}
.nav-container .nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-container .nav-links li a,
.nav-container .nav-links li button {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.5rem;
  transition: background-color 0.2s;
  border-radius: var(--radius-sm);
}
.nav-container .nav-links li a:hover,
.nav-container .nav-links li button:hover {
  background-color: rgba(255,255,255,0.1);
}

/* ----------------------------------------
   MAIN CONTAINER
---------------------------------------- */
.dashboard-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.dashboard-container h1 {
  font-size: 2rem;
  text-align: center;
  color: var(--color-navy);
  margin-bottom: 2rem;
}

/* ----------------------------------------
   TOGGLE BUTTONS
---------------------------------------- */
.form-toggle-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.form-toggle-buttons .btn {
  background-color: var(--color-teal);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s, transform 0.1s;
}
.form-toggle-buttons .btn:hover {
  background-color: #00b399;
  transform: translateY(-2px);
}

/* ----------------------------------------
   SECTION HEADINGS
---------------------------------------- */
.event-list-section h2,
.guest-list-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  text-align: center;
}

/* ----------------------------------------
   TABLE STYLES
---------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}
thead {
  background: var(--color-grey-200);
}
thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-grey-300);
}
tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-grey-200);
  color: var(--color-navy);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:nth-child(even) {
  background: var(--color-grey-100);
}
button.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-teal);
  font-size: 1rem;
  transition: color 0.2s;
}
button.action-btn:hover {
  color: #008f80;
}

/* ----------------------------------------
   FORM GROUPS (in modals)
---------------------------------------- */
.modal-content .form-group {
  margin-bottom: 1rem;
}
.modal-content .form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}
.modal-content .form-group input,
.modal-content .form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.modal-content .form-group input:focus,
.modal-content .form-group select:focus {
  outline: none;
  border-color: var(--color-teal);
}


.modal-content .form-group input,
.modal-content .form-group select {
  width: 100%;            /* fill the available width */
  max-width: 100%;        /* never overflow the container */
  box-sizing: border-box; /* include padding in that 100% */
  padding: 0.75rem;       /* a bit more click-area */
  font-size: 1rem;
}

/* ----------------------------------------
   MODAL OVERLAY & POPUP
---------------------------------------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}
.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 500px;
  transform: translate(-50%, -50%);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  z-index: 1000;
}
.modal-content {
  position: relative;
  padding: 1.5rem;
}
.modal-content .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.25rem;
  color: var(--color-grey-300);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-content .close:hover {
  color: var(--color-grey-500);
}
.modal-content h2 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--color-navy);
}
.modal-content button.btn {
  width: 100%;
  margin-top: 1rem;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s;
}
.modal-content button.btn:hover {
  background: #00b399;
}

/* ----------------------------------------
   RESPONSIVE (stack tables on mobile)
---------------------------------------- */
@media (max-width: 768px) {
  .form-toggle-buttons {
    flex-direction: column;
  }
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
    width: 100%;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr {
    margin-bottom: 1rem;
  }
  td {
    position: relative;
    padding-left: 50%;
    text-align: left;
  }
  td::before {
    content: attr(data-label);
    position: absolute;
    left: 1rem;
    width: calc(50% - 2rem);
    white-space: nowrap;
    font-weight: 600;
  }
}


/* ----------------------------------------
   ACTION BUTTONS (Edit/Delete) – unified
---------------------------------------- */
button.action-btn {
  background: none;
  border: 1px solid var(--color-grey-300);
  color: var(--color-teal);
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.2s, color 0.2s, transform 0.1s;
}
button.action-btn:hover {
  background: var(--color-teal);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ensure both tables use the same button class */
.event-list-section button.action-btn,
.guest-list-section button.action-btn {}


/* 🔹 Buttons */
.btn.btn-small {
    background-color: #00D0B0;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
   
}

.btn.btn-small:hover {
    background-color: #218838;
}


/*────────────────────────────────────────
   HEADER / NAVIGATION
────────────────────────────────────────*/
/* paint the full header bar in the gradient */
header {
  background: linear-gradient(90deg, #1D3557, #003366);
  box-shadow: var(--shadow-md);
}

/* center your nav at a reasonable max width */
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem; /* horizontal gutter */
}

/* flex layout for logo + links + logout */
.nav-container nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo on the left */
.nav-container .logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
}

/* links + logout on the right */
.nav-container .nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* styling for link items */
.nav-container .nav-links li a,
.nav-container .nav-links li button {
  color: var(--color-white);
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s;
}

/* logout button a little more pronounced */
.nav-container .nav-links li .btn {
  background: var(--color-teal);
  color: var(--color-white);
  padding: 0.5rem 1rem;
}
.nav-container .nav-links li .btn:hover {
  background: #00b399;
}

/* hover on your plain links */
.nav-container .nav-links li a:hover {
  background-color: rgba(255,255,255,0.1);
}


