/* ==========================================================================
   ASTRO WAY OF LIFE - Dashboard & Portal Styling
   Admin Dashboard & Astrologer Voice Recording Workspace
   ========================================================================== */

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 270px;
  background: #090e1c;
  border-right: 1px solid var(--border-gold);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dashboard-main {
  flex: 1;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.dashboard-topbar {
  padding: 1rem 2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dashboard-content {
  padding: 2.2rem;
  flex: 1;
}

/* Sidebar Nav */
.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 2rem;
}

.sidebar-item a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-item a:hover, .sidebar-item.active a {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border-left: 3px solid var(--gold-primary);
}

.sidebar-badge {
  margin-left: auto;
  background: var(--gold-primary);
  color: #0b0f1a;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

/* Stats Metrics Cards */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.metric-card:hover {
  border-color: var(--gold-border);
  box-shadow: var(--shadow-sm);
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.metric-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

/* Dashboard Table */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.table-header-bar {
  padding: 1.25rem 1.8rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.data-table th {
  background: rgba(10, 14, 26, 0.8);
  padding: 1rem 1.2rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1.1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.status-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.status-assigned {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.status-recorded {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-badge.status-ready {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.status-paid {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold-primary);
}

/* Astrologer Voice Recording Studio Card */
.recording-studio-box {
  background: linear-gradient(145deg, #10172e 0%, #0a0e1c 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.record-btn-large {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, #ef4444 0%, #b91c1c 100%);
  border: 4px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  transition: var(--transition);
}

.record-btn-large:hover {
  transform: scale(1.08);
  box-shadow: 0 0 45px rgba(239, 68, 68, 0.6);
}

.record-btn-large.recording {
  animation: pulseRecording 1.4s infinite;
  background: radial-gradient(circle, #dc2626 0%, #991b1b 100%);
}

@keyframes pulseRecording {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
  50% { transform: scale(1.1); box-shadow: 0 0 45px rgba(239, 68, 68, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 20px rgba(239, 68, 68, 0.5); }
}

.record-timer {
  font-family: monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.live-visualizer {
  width: 100%;
  height: 60px;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

/* Kundali Details Panel */
.kundali-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  background: rgba(10, 14, 26, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}

.kundali-detail-item {
  display: flex;
  flex-direction: column;
}

.kundali-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.kundali-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}
