/* ============================
   ROOT & GLOBAL
============================ */
:root {
  --primary-color: #03949B;
  --primary-color-dark: #02798a;
  --font-family: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
}

/* ============================
   WEBINAR PAGE HEADER
============================ */
.webinar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
  margin-top: -30px;
}

.webinar-title {
  margin: 0;
  font-size: 22px;
  color: var(--primary-color);
  white-space: nowrap;
}

.webinar-header-logo {
  max-width: 170px;
  height: auto;
}

/* ============================
   TABLES
============================ */
.webinar-table,
.webinar-dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.webinar-table th,
.webinar-table td,
.webinar-dashboard-table th,
.webinar-dashboard-table td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: left;
  line-height: 1.6;
}

/* Desktop column widths */
.webinar-table th:first-child,
.webinar-table td:first-child {
  width: 22%;
}

.webinar-table th:last-child,
.webinar-table td:last-child {
  width: 65%;
}

/* Table headers */
.webinar-table th,
.webinar-dashboard-table th {
  background-color: var(--primary-color);
  color: #fff;
  font-weight: bold;
}

/* Zebra stripes */
.webinar-table tr:nth-child(even),
.webinar-dashboard-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hover effect + animation */
.webinar-table tr,
.webinar-dashboard-table tr {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.webinar-table tr:hover,
.webinar-dashboard-table tr:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(3,148,155,0.2);
}

/* ============================
   REGISTER BUTTON
============================ */
.webinar-register-btn {
  text-align: center;
  margin-top: 30px;
}

.register-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 85px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(3,148,155,0.3);
  margin-bottom: 20px;
}

.register-button:hover,
.submit-button:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(3,148,155,0.35);
  background-color: var(--primary-color-dark);
}

/* ============================
   FORM CARD
============================ */
.webinar-register-form {
  max-width: 775px;
  margin: 40px auto;
  padding: 30px 35px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  margin-top: -30px;
}

.webinar-logo {
  max-width: 135px;
  display: block;
  margin: 0 auto 15px;
}

/* ============================
   FORM LAYOUT
============================ */
.form-two-column {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-two-column > * {
  flex: 1 1 calc(50% - 10px);
  min-width: 200px;
}

.webinar-register-form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

.webinar-register-form input,
.webinar-register-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: 0.3s;
}

.webinar-register-form input:focus,
.webinar-register-form textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(3,148,155,0.3);
  outline: none;
}

.full-width-textarea {
  margin-top: 10px;
}

.submit-button {
  background-color: var(--primary-color);
  color: white;
  padding: 14px 35px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  margin-top: 15px;
  border: none;
  transition: 0.3s;
}

/* ============================
   CONFIRMATION CARD
============================ */
.webinar-confirmation-card {
  max-width: 550px;
  margin: 20px auto;
  padding: 30px 25px;
  text-align: center;
  background: #f4fbfc;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: scale(0.95);
  animation: card-pop 0.5s forwards;
  margin-top: -15px;
}

@keyframes card-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.webinar-confirmation-card h2 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 22px;
}

.webinar-confirmation-card p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.5;
}

.webinar-confirmation-card .reg-id {
  margin: 20px 0;
  font-size: 18px;
  font-weight: bold;
  color: #02798a;
  display: inline-block;
  animation: pulse-id 1.5s infinite;
}

@keyframes pulse-id {
  0%, 100% { transform: scale(1); color: #02798a; }
  50% { transform: scale(1.08); color: #03949B; }
}

/* ============================
   DASHBOARD CARDS
============================ */
.dashboard-cards {
  display: flex;
  gap: 25px;
  margin-bottom: 20px;
  justify-content: center;
}

.dashboard-card {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 45px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  text-align: center;
  min-width: 140px;
  font-family: var(--font-family);
}

.dashboard-card .count {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
}

.dashboard-card .label {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

/* ============================
   DASHBOARD SEARCH
============================ */
.dashboard-search {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  margin-bottom: 25px;
  font-size: 16px;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.1);
  transition: border-color 0.3s ease;
}

.dashboard-search:focus {
  border-color: var(--primary-color-dark);
  outline: none;
  box-shadow: 0 0 8px rgba(3,148,155,0.5);
}

/* ============================
   RESPONSIVE / MOBILE
============================ */
@media (max-width: 768px) {

  /* Header */
  .webinar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .webinar-title {
    white-space: normal;
    font-size: 18px;
  }

  .webinar-header-logo {
    align-self: flex-end;
  }

  /* Form */
  .form-two-column {
    flex-direction: column;
  }

  .form-two-column > * {
    flex: 1 1 100%;
  }

  .submit-button,
  .register-button {
    width: 100%;
  }

  .webinar-register-form {
    padding: 20px;
  }

  /* Tables: Card-style mobile */
  .webinar-table thead,
  .webinar-dashboard-table thead {
    display: none;
  }

  .webinar-table,
  .webinar-table tbody,
  .webinar-table tr,
  .webinar-table td,
  .webinar-dashboard-table,
  .webinar-dashboard-table tbody,
  .webinar-dashboard-table tr,
  .webinar-dashboard-table td {
    display: block;
    width: 100%;
  }

  .webinar-table tr,
  .webinar-dashboard-table tr {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .webinar-table td,
  .webinar-dashboard-table td {
    border: none;
    padding: 8px 10px;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .webinar-table td:first-child {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 4px;
  }

  /* Dashboard cards */
  .dashboard-cards {
    flex-direction: column;
    align-items: center;
  }

  .dashboard-card {
    width: 80%;
    margin-bottom: 15px;
  }

  /* Confirmation card */
  .webinar-confirmation-card {
    padding: 25px 20px;
    width: 90%;
  }

  .webinar-confirmation-card h2 {
    font-size: 20px;
  }

  .webinar-confirmation-card p,
  .webinar-confirmation-card .reg-id {
    font-size: 16px;
  }

  /* Remove fixed column widths on mobile */
  .webinar-table th:first-child,
  .webinar-table td:first-child,
  .webinar-table th:last-child,
  .webinar-table td:last-child {
    width: 100% !important;
  }

  .webinar-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }
}

.webinar-settings-link {
  font-weight: bold;
  font-size: 16px;
  padding: 8px 16px;
  text-decoration: none;
}