/* === RESET & GLOBAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.participants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  padding: 10px 0;
}

.icon-grid { display: flex; gap:12px; justify-content:center; margin-top:20px; }
.icon-box { background:#111; color:#FFD700; padding:16px; border-radius:12px; text-align:center; flex:1; cursor:pointer; }
.icon-box i { font-size:24px; display:block; margin-bottom:6px; }
.icon-box.logout { background:#ff4444; color:#fff; }

.participants-box { background:#111; padding:12px; border-radius:8px; margin-bottom:16px; color:#fff; }
.participant-card { width:70px; text-align:center; color:#fff; }
.participant-avatar { width:60px; height:60px; border-radius:50%; border:2px solid #FFD700; }
.participant-name { font-size:12px; margin-top:6px; }
.mic-status { font-size:12px; margin-top:4px; }
.mic-active { color:#0f0; }
.mic-muted { color:#f00; }
.pulsing { animation: pulse-ring 1.5s infinite ease-out; border-color:#0f0; }
@keyframes pulse-ring { 0% { box-shadow:0 0 0 0 rgba(0,255,0,0.4);} 70% {box-shadow:0 0 10px rgba(0,255,0,0);}100% {box-shadow:0 0 0 0 rgba(0,255,0,0);} }


.participant-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  text-align: center;
  color: #fff;
}

/* Circle buttons for user (non-admin) group calls */
.circle-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: #333;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
  margin: 10px auto;
}

.circle-button.green {
  background-color: #28a745; /* Talk Now */
  box-shadow: 0 0 12px #28a74580;
}

.circle-button.red {
  background-color: #dc3545; /* End Call */
  box-shadow: 0 0 12px #dc354580;
}

.circle-button:hover {
  transform: scale(1.05);
}

.participant-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #555;
}

.participant-card.speaking {
  border: 2px solid #28a745;
  box-shadow: 0 0 10px #28a745;
}


#talkBtn {
  pointer-events: auto; /* make sure it's clickable */
  z-index: 10;
  position: relative;
}

.call-button.talk:active {
  background: #1e7e34;
  box-shadow: 0 0 10px #00ff00;
}

.participant-name {
  margin-top: 6px;
  font-size: 14px;
  word-break: break-word;
}

.mic-status {
  font-size: 14px;
  margin-top: 4px;
  color: #0f0;
}
.mic-muted {
  color: #f00;
}

body {
  background-color: #000;
  color: #FFD700;
  font-family: 'Arial', sans-serif;
}
.talk-now {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
}

/* General Form Styles */
.form-box {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 0, 0.1);
}
.dataTables_wrapper .dataTables_paginate {
  margin-top: 15px;
  text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  color: #FFD700 !important;
  background-color: #111 !important;
  border: 1px solid #FFD70033 !important;
  margin: 2px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #FFD700 !important;
  color: #000 !important;
  font-weight: bold;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}
.pagination a {
  color: #FFD700;
  padding: 6px 12px;
  margin: 0 2px;
  text-decoration: none;
  border: 1px solid #FFD700;
  border-radius: 4px;
}
.pagination a:hover {
  background-color: #FFD700;
  color: #000;
}

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

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #ffd700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  background: #2b2b2b;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  box-sizing: border-box;
}

.form-group textarea {
  resize: vertical;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  margin-top: 10px;
  cursor: pointer;
}

.btn.primary {
  background: #ffd700;
  color: #000;
}

.btn.secondary {
  background: #444;
  color: #fff;
  margin-left: 10px;
}

.btn i {
  margin-right: 5px;
}

/* Section Title */
.section-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
  color: #ffd700;
}

/* Alert Boxes */
.alert {
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}

#installBtn {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 20px;
  background-color: #ffd700;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.alert.success {
  background-color: #2ecc71;
  color: white;
}

.alert.error {
  background-color: #e74c3c;
  color: white;
}

/* === APP NAME === */
.app-name {
  font-size: 32px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-align: center;
}

.call-popup-mobile {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 0 15px #ffd700;
}

.call-popup-mobile .btn {
  margin: 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;
}

.call-popup-mobile .btn.accept {
  background-color: #4CAF50;
  color: white;
}

.call-popup-mobile .btn.reject {
  background-color: #f44336;
  color: white;
}


.participants-box {
  margin-top: 20px;
  background: #111;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
}
#participants-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
#participants-list li {
  margin-bottom: 5px;
  font-size: 14px;
  padding: 6px;
  border-bottom: 1px solid #444;
}

.call-popup {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #111;
  color: #FFD700;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  width: 90%;
  max-width: 360px;
  z-index: 9999;
  text-align: center;
  font-family: sans-serif;
}

.call-popup .popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-popup .popup-content p {
  margin: 0 0 15px;
  font-size: 16px;
  font-weight: 500;
}

.call-popup .popup-content .popup-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.call-popup button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  color: #000;
}

.call-popup button.accept {
  background-color: #00ff84;
}

.call-popup button.reject {
  background-color: #ff5252;
}



/* === SPLASH SCREEN === */

.splash-body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.splash-container {
  text-align: center;
  width: 80%;
  max-width: 300px;
}

.animated-icon {
  font-size: 80px;
  color: #FFD700;
  animation: spin 3s linear infinite;
  margin-bottom: 30px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-size: 18px;
  margin-bottom: 15px;
}

.loading-bar {
  width: 100%;
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #FFD700;
  border-radius: 5px;
  transition: width 0.3s ease;
}

/* === LOGIN PAGE === */

.login-body {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background-color: #111;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px #FFD700;
  width: 90%;
  max-width: 350px;
  text-align: center;
}

.login-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 6px;
  background-color: #222;
  color: #FFD700;
  font-size: 16px;
}

.login-form input::placeholder {
  color: #888;
}

.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #FFD700;
  color: #000;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.login-form button:hover {
  background-color: #e6c200;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #111;
  padding: 20px;
  border-radius: 10px;
}
.login-form label {
  color: #FFD700;
  font-weight: bold;
}

.login-form input,
.login-form select {
  padding: 10px;
  border-radius: 6px;
  border: none;
  background-color: #222;
  color: #fff;
}

.login-form input:focus,
.login-form select:focus {
  outline: 2px solid #FFD700;
}
.error-msg {
  color: red;
  margin-top: 10px;
  font-size: 14px;
}

/* === DASHBOARD PAGE === */

.dashboard-body {
  background-color: #000;
  color: #FFD700;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  padding: 20px;
}

.dashboard-container {
  max-width: 960px;
  margin: auto;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-subtitle {
  font-size: 18px;
  margin-top: 5px;
  color: #ccc;
}

.logout-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: #FFD700;
  color: #000;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.logout-btn:hover {
  background-color: #e6c200;
}

/* === ICON GRID DASHBOARD (Stylish, Animated, Linked) === */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  justify-items: center;
  padding: 10px;
}

@media (min-width: 1024px) {
  .icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.call-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #111;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 16px;
  text-decoration: none;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 0 transparent;
}

.call-box:hover {
  background-color: #FFD700;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 12px #FFD70088;
}

.icon-box {
  position: relative;
  width: 100%;
  max-width: 80px;
  aspect-ratio: 1 / 1;
  background-color: #111;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 16px;
  text-decoration: none;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease, transform 0.2s ease;
  box-shadow: 0 0 0 transparent;
}

.icon-box:hover {
  background-color: #FFD700;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 12px #FFD70088;
}

.icon-label {
  margin-top: 4px;
  font-size: 11px;
  color: inherit;
}

/* Tooltip on hover (above) */
.icon-box::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFD700;
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.icon-box:hover::before {
  opacity: 1;
}
/* === BOTTOM MOBILE MENU === */

.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  border-top: 1px solid #FFD70030;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  z-index: 1000;
}

.menu-item {
  color: #FFD700;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  flex: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 6px 0;
}

.menu-item:hover {
  background-color: #222;
}

.menu-item i {
  display: block;
  font-size: 20px;
}

.menu-item span {
  font-size: 11px;
  display: block;
  margin-top: 2px;
}

/* Highlight active menu item */
.menu-item.active {
  background-color: #FFD700;
  color: #000;
  font-weight: bold;
  border-top: 2px solid #FFD700;
}

/* Push content above bottom menu */
body {
  padding-bottom: 60px;
}
/* === USER LIST ADMIN PAGE === */

.user-actions {
  text-align: right;
  margin-bottom: 15px;
}

.action-btn {
  background-color: #FFD700;
  color: #000;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.action-btn:hover {
  background-color: #e6c200;
}

.user-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-card {
  background-color: #111;
  border: 1px solid #FFD70050;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.user-card:hover {
  background-color: #1a1a1a;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status {
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #000;
  font-weight: bold;
  width: fit-content;
}

.status.active {
  background-color: #FFD700;
}

.status.banned {
  background-color: #ff4d4d;
  color: #fff;
}

.user-actions-inline a {
  color: #FFD700;
  margin-left: 12px;
  font-size: 16px;
  transition: color 0.2s ease;
}

.user-actions-inline a:hover {
  color: #fff;
}
/* === User Role Badge === */
.role-label {
  font-size: 12px;
  background-color: #FFD70030;
  color: #FFD700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  display: inline-block;
}
.alert {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.alert.error {
  background-color: #ff4d4d;
  color: white;
}

.alert.success {
  background-color: #4CAF50;
  color: white;
}
input[readonly] {
  background-color: #222;
  color: #aaa;
  cursor: not-allowed;
}

.call-page {
  background: #000;
  color: #FFD700;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

/* Mobile App Call UI */
body.call-page {
  background-color: #000;
  color: #fff;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.mobile-call-wrapper {
  width: 100%;
  max-width: 400px;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.call-header {
  margin-bottom: 30px;
}

.call-header h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #f1c40f;
}

.call-status {
  font-size: 16px;
  color: #fff;
  margin-bottom: 5px;
}

.call-timer {
  font-size: 20px;
  color: #f1c40f;
  margin-top: 5px;
}

.call-actions {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.call-button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #222;
  color: white;
  transition: transform 0.2s;
  cursor: pointer;
}

.call-button span {
  font-size: 12px;
  margin-top: 5px;
}

.call-button:hover {
  transform: scale(1.1);
}

.call-button.mute {
  background-color: #f39c12;
}

.call-button.end {
  background-color: #e74c3c;
}

.profile-box {
  background: #222;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  margin: auto;
  color: #f1f1f1;
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.15);
}

.profile-box h2 {
  margin-bottom: 15px;
  color: #f1c40f;
}

.profile-detail {
  margin-bottom: 10px;
  font-size: 16px;
}

.small-btn {
  display: inline-block;
  margin-top: 15px;
  background: #f1c40f;
  color: #000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
}

.small-btn:hover {
  background: #ffd700;
}
.table-box {
  overflow-x: auto;
  background: #111;
  border-radius: 12px;
  padding: 15px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.data-table th,
.data-table td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.data-table th {
  background: #222;
  color: #f1c40f;
}

.data-table td a {
  margin-right: 10px;
  font-size: 16px;
}
.text-yellow { color: #f1c40f; }
.assign-form {
  padding: 10px;
}

.form-box {
  background: #111;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.section-title {
  color: #f1c40f;
  margin-bottom: 10px;
  font-size: 18px;
  text-align: center;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  padding: 5px;
}

.checkbox-label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  color: #fff;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkbox-custom {
  position: absolute;
  top: 3px;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #333;
  border: 2px solid #f1c40f;
  border-radius: 4px;
}

.checkbox-label input:checked ~ .checkbox-custom {
  background-color: #f1c40f;
}

.form-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn.yellow-btn {
  background-color: #f1c40f;
  color: #000;
}

.text-blue { color: #3498db; }
.text-red { color: #e74c3c; }
.text-green { color: #2ecc71; }

.dt-buttons .dt-button {
  background-color: #f1c40f !important;
  color: #000 !important;
  border: none;
  padding: 6px 12px;
  margin-right: 5px;
  font-size: 13px;
  border-radius: 5px;
}

.call-controls {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.call-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.status {
  font-size: 16px;
  margin-bottom: 20px;
}

.end-call-btn {
  background: #FFD700;
  color: #000;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.end-call-btn:hover {
  background-color: #fff200;
}
.btn-group {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.accept-btn {
  background-color: #4CAF50;
  color: white;
}

.reject-btn {
  background-color: #f44336;
  color: white;
}

.btn-action {
  color: #1abc9c;
  font-size: 18px;
  margin-right: 10px;
  text-decoration: none;
}

.settings-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  background: #111;
  border-radius: 8px;
}

.settings-form label {
  color: #f1c40f;
  font-weight: bold;
  margin-top: 10px;
  display: block;
}

.settings-form input,
.settings-form textarea {
  width: 100%;
  padding: 10px;
  margin: 6px 0 12px;
  background: #222;
  border: 1px solid #444;
  color: #eee;
  border-radius: 4px;
}

.logo-preview {
  height: 60px;
  display: block;
  margin-bottom: 10px;
}

.app-header {
  background-color: #000;
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid #222;
}

.header-logo {
  height: 100px;
  width: auto;
  display: inline-block;
  border-radius: 8px;
}


.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-title {
  font-size: 18px;
  font-weight: bold;
  color: #f1c40f;
}

.back-btn,
.menu-btn {
  background: none;
  border: none;
  color: #f1c40f;
  font-size: 20px;
  padding: 5px;
}


.success-msg {
  background: #2ecc71;
  color: white;
  padding: 10px;
  text-align: center;
  margin-bottom: 15px;
  border-radius: 4px;
}

.form-card {
  background: #111;
  padding: 20px;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 500px;
}

.form-card h2 {
  color: #f1c40f;
  text-align: center;
  margin-bottom: 15px;
}

.form-card label {
  color: #eee;
  display: block;
  margin: 10px 0 5px;
}

.table-wrapper {
  background: #111;
  padding: 10px;
  border-radius: 10px;
  overflow-x: auto;
}

table.dataTable {
  color: #fff;
  background: #000;
  border: none;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 5px;
}


.form-card input,
.form-card textarea {
  width: 100%;
  padding: 10px;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  border-radius: 5px;
  margin-bottom: 10px;
}

audio {
  width: 100%;
  max-width: 200px;
}

.btn-action:hover {
  color: #16a085;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.status-ringing {
  background-color: #f39c12;
  color: #000;
}
.status-accepted {
  background-color: #2ecc71;
  color: #fff;
}
.status-rejected {
  background-color: #e74c3c;
  color: #fff;
}
.status-ended {
  background-color: #7f8c8d;
  color: #fff;
}

