/* ============================================
   THE ATTINGER GROUP - Admin Dashboard Styles
   ============================================ */

/* Active nav link */
.nav-active {
  color: #fff !important;
}

/* ---------- FORM SECTION ---------- */
.form-section {
  padding: 80px 0 100px;
  background: #0a0a0a;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.form-wrapper-wide {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
}

.form-header-bar {
  margin-bottom: 32px;
}

.form-header-bar h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.form-header-bar p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
}

/* ---------- FORM INFO SIDE ---------- */
.form-info h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.form-info > p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(239,169,55,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EFA937;
}

.info-icon svg {
  width: 22px;
  height: 22px;
}

.info-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.info-item p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}

/* ---------- STYLED FORM ---------- */
.styled-form fieldset {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  background: rgba(255,255,255,0.03);
}

.styled-form legend {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  margin-bottom: 8px;
}

.fieldset-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  line-height: 1.6;
}
.field-hint {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
  margin-top: -2px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.required {
  color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #000;
  color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #EFA937;
  box-shadow: 0 0 0 3px rgba(239,169,55,0.12);
}

.form-group textarea {
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Radio groups */
.radio-group {
  display: flex;
  gap: 20px;
  padding-top: 4px;
}

.radio-label {
  display: flex !important;
  align-items: center;
  gap: 6px;
  font-weight: 400 !important;
  font-size: 0.9rem !important;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #EFA937;
}

/* ---------- FILE UPLOAD ---------- */
.file-upload-area {
  border: 2px dashed rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
  color: rgba(255,255,255,0.55);
}

.file-upload-area:hover,
.file-upload-area.drag-over {
  border-color: #EFA937;
  background: rgba(239,169,55,0.04);
}

.file-upload-area svg {
  color: #EFA937;
  margin-bottom: 12px;
}

.file-upload-area p {
  font-size: 0.9rem;
}

.upload-link {
  color: #EFA937;
  font-weight: 600;
  text-decoration: underline;
}

.file-input {
  display: none;
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 0.85rem;
}

.file-name {
  flex: 1;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  color: rgba(255,255,255,0.55);
  font-size: 0.8rem;
}

.file-remove {
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* ---------- BUTTONS ---------- */
.btn-full {
  width: 100%;
  text-align: center;
}

/* ---------- FORM STATUS ---------- */
.form-status {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(26,138,74,0.15);
  color: #4ade80;
  border: 1px solid rgba(74,222,128,0.25);
}

.form-status.error {
  display: block;
  background: rgba(192,57,43,0.15);
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.25);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .styled-form fieldset {
    padding: 20px;
  }
}

/* ============================================
   ADMIN STYLES
   ============================================ */

/* ---------- LOGIN ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.login-box {
  background: #0a0a0a;
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.login-box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}

.login-box .login-sub {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.login-box .form-group {
  margin-bottom: 16px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-logo .logo-icon {
  font-size: 36px;
  color: #EFA937;
}

.login-logo svg {
  height: 80px;
  width: auto;
  margin-bottom: 12px;
}

.login-logo .logo-text {
  font-size: 16px;
  display: block;
  margin-top: 8px;
}

.login-logo .logo-sub {
  color: rgba(255,255,255,0.55);
}

/* ---------- ADMIN LAYOUT ---------- */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #0a0a0a;
  color: #fff;
  padding: 24px 0 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
  color: #fff;
}

.sidebar-logo svg {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: rgba(239,169,55,0.08);
}

.sidebar-nav a.active {
  border-right: 3px solid #EFA937;
}

.sidebar-nav a svg,
.sidebar-nav .settings-toggle svg:first-child {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- SIDEBAR SETTINGS ---------- */
.sidebar-settings-group {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

.settings-toggle {
  position: relative;
}

.settings-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.sidebar-settings-group.open .settings-chevron {
  transform: rotate(180deg);
}

.settings-sub {
  transition: max-height 0.3s ease;
}

.settings-sub a {
  padding-left: 40px !important;
  font-size: 0.85rem !important;
}

/* ---------- SIDEBAR UNREAD BADGE ---------- */
.nav-badge {
  margin-left: auto;
  background: #e74c3c;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  line-height: 1;
}

/* ---------- SIDEBAR BOTTOM ---------- */
.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 24px;
}

.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 16px;
  transition: color 0.2s ease;
}

.sidebar-bottom > a:hover {
  color: #EFA937;
}

/* ---------- SIDEBAR PROFILE ---------- */
.sidebar-profile {
  position: relative;
}

.sidebar-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}

.sidebar-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239,169,55,0.2);
  color: #EFA937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.sidebar-profile-name {
  font-size: 0.85rem;
  color: #fff;
  flex: 1;
}

.sidebar-profile-popup {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.sidebar-profile-popup.visible {
  opacity: 1;
  transform: translateY(0);
}

.profile-popup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.profile-popup-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.profile-popup-item svg {
  width: 16px;
  height: 16px;
}

.profile-popup-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 4px 0;
}

.profile-popup-signout {
  color: #e74c3c !important;
}

/* ---------- ADMIN MAIN ---------- */
.admin-main {
  flex: 1;
  margin-left: 260px;
  background: #000;
  min-height: 100vh;
}

.admin-topbar {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-topbar h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.admin-content {
  padding: 32px;
}

/* ---------- DASHBOARD STATS ---------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.dash-stat {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
}

.dash-stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.dash-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.dash-stat-value.highlight {
  color: #EFA937;
}

/* ---------- DATA TABLES ---------- */
.data-table-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.data-table-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.data-table-search {
  padding: 8px 14px;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.data-table-search:focus {
  border-color: #EFA937;
}

.data-table-search::placeholder {
  color: rgba(255,255,255,0.35);
}

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

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.data-table td {
  padding: 12px 16px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: rgba(255,255,255,0.04);
}

/* ---------- BADGES ---------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-unread { background: rgba(239,169,55,0.15); color: #EFA937; }
.badge-read { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.badge-replied { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-pending { background: rgba(239,169,55,0.15); color: #EFA937; }
.badge-approved { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-rejected { background: rgba(248,113,113,0.15); color: #f87171; }
.badge-admin { background: rgba(239,169,55,0.15); color: #EFA937; }
.badge-manager { background: rgba(96,165,250,0.15); color: #60a5fa; }
.badge-member, .badge-viewer { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); }
.badge-active { background: rgba(74,222,128,0.15); color: #4ade80; }
.badge-deactivated { background: rgba(248,113,113,0.15); color: #f87171; }

/* ---------- DETAIL PANEL ---------- */
.detail-panel {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 32px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 40px;
}

.detail-field {
  margin-bottom: 8px;
}

.detail-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.5;
}

.detail-value a {
  color: #EFA937;
  transition: opacity 0.2s ease;
}

.detail-value a:hover {
  opacity: 0.8;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- SMALL BUTTONS ---------- */
.btn-sm {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.btn-action {
  background: #EFA937;
  color: #000;
}

.btn-action:hover {
  opacity: 0.88;
}

.btn-back {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-back:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.btn-approve {
  background: rgba(74,222,128,0.15);
  color: #4ade80;
}

.btn-approve:hover {
  background: rgba(74,222,128,0.25);
}

.btn-reject {
  background: rgba(248,113,113,0.15);
  color: #f87171;
}

.btn-reject:hover {
  background: rgba(248,113,113,0.25);
}

.btn-delete {
  background: rgba(248,113,113,0.1);
  color: #f87171;
}

.btn-delete:hover {
  background: rgba(248,113,113,0.2);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: rgba(255,255,255,0.4);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: rgba(255,255,255,0.2);
}

.empty-state h4 {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ---------- MESSAGE DOTS ---------- */
.msg-new-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EFA937;
  margin-right: 6px;
  vertical-align: middle;
}

/* ---------- CONVERSATION / CHAT ---------- */
.conversation-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid rgba(255,255,255,0.08);
}

.conversation-container {
  max-height: 400px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  margin-bottom: 16px;
}

.chat-bubble-row {
  margin-bottom: 16px;
}

.chat-bubble-row.incoming {
  text-align: left;
}

.chat-bubble-row.outgoing {
  text-align: right;
}

.chat-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 4px;
}

.chat-bubble {
  display: inline-block;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.incoming .chat-bubble {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-bottom-left-radius: 2px;
}

.outgoing .chat-bubble {
  background: rgba(239,169,55,0.12);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.chat-timestamp {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

.chat-attachments {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chat-attachments a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(239,169,55,0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #EFA937;
  text-decoration: none;
}

/* ---------- REPLY FORM ---------- */
.reply-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.reply-form textarea {
  width: 100%;
  padding: 16px;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  min-height: 100px;
  resize: vertical;
}

.reply-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.reply-form-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: background 0.2s ease;
}

.reply-attach-btn:hover {
  background: rgba(255,255,255,0.1);
}

.reply-file-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

.reply-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(239,169,55,0.1);
  border: 1px solid rgba(239,169,55,0.2);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #EFA937;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: background 0.2s ease;
}

.reply-ai-btn:hover {
  background: rgba(239,169,55,0.18);
}

/* ---------- AI SUGGESTIONS ---------- */
.ai-suggestions-panel {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.ai-suggestions-panel h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #EFA937;
  margin-bottom: 12px;
}

.ai-suggestion-option {
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.5;
}

.ai-suggestion-option:hover {
  background: rgba(239,169,55,0.08);
  border-color: rgba(239,169,55,0.2);
}

/* ---------- PROFILE ---------- */
.profile-grid {
  display: grid;
  gap: 24px;
}

.profile-card {
  display: flex;
  align-items: center;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(239,169,55,0.15);
  color: #EFA937;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---------- ROLE SELECT ---------- */
.role-select {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  outline: none;
}

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

.modal h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

/* ---------- FILE VIEWER ---------- */
.file-viewer-overlay {
  z-index: 2000;
}

.file-viewer-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  width: 90vw;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.file-viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.file-viewer-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.file-viewer-name {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.file-viewer-counter {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.file-viewer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-viewer-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.file-viewer-media {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.file-viewer-pdf {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

.file-viewer-unsupported {
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.file-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.file-viewer-nav:hover {
  background: rgba(255,255,255,0.2);
}

.file-viewer-prev { left: 12px; }
.file-viewer-next { right: 12px; }

/* ---------- FILES BUTTON ---------- */
.files-cell { text-align: center; }
.files-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.files-btn:hover { color: #EFA937; }
.files-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #EFA937;
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- ANALYTICS ---------- */
.analytics-bar {
  transition: height 0.3s ease;
  position: relative;
}

.analytics-bar:hover {
  opacity: 0.8;
}

.analytics-pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---------- ADMIN RESPONSIVE ---------- */
@media (max-width: 900px) {
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .dash-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .dash-stats {
    grid-template-columns: 1fr;
  }

  .admin-content {
    padding: 20px;
  }

  .data-table-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}
