@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary-color: #ffd166;
  --secondary-color: #f4a261;
  --bg-dark-start: #0f1724;
  --bg-dark-end: #071022;
  --text-light: #fff;
  --text-placeholder: rgba(255, 255, 255, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --box-shadow-dark: 0 8px 30px rgba(0, 0, 0, 0.6);
  --box-shadow-accent: 0 6px 18px rgba(244, 162, 97, 0.15);
  --border-radius-base: 14px;
}

/* --- Global & Base Styles --- */
*{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(180deg, var(--bg-dark-start), var(--bg-dark-end));
  color: var(--text-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  width: 94%;
  max-width: 420px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  border-radius: var(--border-radius-base);
  padding: 18px;
  backdrop-filter: blur(6px);
  box-shadow: var(--box-shadow-dark);
  margin: 16px;
}

.logo-wrap {
  text-align: center;
  padding: 6px 0 8px;
}

.logo-wrap img {
  width: 120px;
  height: auto;
}

h1 {
  font-size: 20px;
  margin: 8px 0 14px;
  text-align: center;
  color: var(--primary-color);
  letter-spacing: 0.6px;
}

.form-group {
  margin-bottom: 12px;
}

input[type=text],
input[type=password] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-light);
  font-size: 15px;
  outline: none;
}

input::placeholder {
  color: var(--text-placeholder);
}

.btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: #0b0b0b;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--box-shadow-accent);
  transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.small-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-decoration: none;
}

.footer-note {
  text-align: center;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* --- Admin Dashboard --- */
.dashboard-container {
    width: 100%;
    padding: 0 16px;
}

.navbar {
  width: 100%;
  max-width: 980px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.02));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.sidebar {
  width: 100%;
  max-width: 980px;
  margin: 12px auto;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.user-table th,
.user-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: left;
  font-size: 14px;
}

/* --- Meeting Page Styling --- */
.meeting-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 12px;
}

#jaas-container {
  width: 100%;
  height: calc(100vh - 120px);
  border-radius: 8px;
  overflow: hidden;
}

#record-controls {
  position: fixed;
  bottom: 18px;
  right: 14px;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 8px;
  align-items: center;
}

#record-controls button {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}

#startRec {
  background: #0ec76a;
  color: #fff;
}

#stopRec {
  background: #ff4b5c;
  color: #fff;
}

#rec-timer {
  position: fixed;
  top: 12px;
  right: 14px;
  background: linear-gradient(90deg, #ff4b5c, #ff8a80);
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  display: none;
  box-shadow: 0 6px 20px rgba(255, 75, 92, 0.12);
}

/* --- Responsive Adjustments --- */
@media (min-width: 700px) {
  .card {
    max-width: 520px;
    padding: 26px;
  }
  .navbar,
  .sidebar {
    max-width: 1100px;
  }
}

@media (min-width: 1024px) {
    .dashboard-container {
        padding: 0 20px;
    }
}




/* --- Dashboard Specific Styles --- */
.dashboard-body {
  display: block; /* Override global body flex to allow for a structured layout */
  padding: 0;
}

.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 16px;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(0,0,0,0.4), rgba(255,255,255,0.05));
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.navbar .logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar .logo-wrap img {
    width: 40px;
    margin-bottom: 0;
}

.navbar h1 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
    color: var(--primary-color);
    text-align: left;
}

.logout-btn {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background: rgba(255,255,255,0.2);
}

.add-user-card {
    padding: 24px;
}

.existing-users-card {
    padding: 24px;
}

.table-container {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
}

.user-table {
    width: 100%;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    font-size: 14px;
}

.user-table th {
    background: rgba(255, 255, 255, 0.04);
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    font-size: 12px;
}

.user-table tr:last-child td {
    border-bottom: none;
}

.success-note {
    color: #4CAF50; /* A nice green for success messages */
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Grid for Desktop */
@media (min-width: 768px) {
    .dashboard-container {
        flex-direction: row;
        gap: 20px;
        align-items: flex-start;
    }

    .add-user-card {
        flex: 1;
        max-width: 350px;
    }

    .existing-users-card {
        flex: 2;
    }
}


/* --- Delete Button Style --- */
.delete-btn {
  display: inline-block;
  padding: 6px 10px;
  background: #ff4b5c; /* A nice red color for delete */
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.delete-btn:hover {
  background: #e63946;
}




/* existing css same rahega bas yeh add karo */

.user-table th:nth-child(4),
.user-table td:nth-child(4) {
    width: 100px;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
}

.delete-btn:hover {
    background: #c0392b;
}
