* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #1e1e1e;
}

/* Import Source Sans Pro font */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

/* Modal Styles */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

/* Special styling for session terminated modal */
#session-terminated-modal {
  background-color: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
}

.modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
  width: 90%;
  border: 1px solid #e5e7eb;
}

.modal-content h2 {
  color: #1f2937;
  margin-bottom: 30px;
  font-size: 26px;
  font-weight: 600;
}

#userName {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#userName:focus {
  outline: none;
  border-color: #007acc;
}

/* Session Options */
.session-options {
  margin-top: 20px;
}

.primary-btn, .secondary-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn {
  background: #007acc;
  color: white;
  margin-bottom: 15px;
}

.primary-btn:hover {
  background: #005a9e;
}

.primary-btn:disabled {
  background: #4a4a4a;
  cursor: not-allowed;
}

.secondary-btn {
  background: #4caf50;
  color: white;
}

.secondary-btn:hover {
  background: #45a049;
}

.secondary-btn:disabled {
  background: #4a4a4a;
  cursor: not-allowed;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider span {
  background: #2d2d2d;
  padding: 0 15px;
  color: #888;
  position: relative;
  font-size: 14px;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #3a3a3a;
}

.join-session {
  display: flex;
  gap: 10px;
}

#sessionId {
  flex: 1;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  background: #1e1e1e;
  color: #ffffff;
  transition: border-color 0.3s;
}

#sessionId:focus {
  outline: none;
  border-color: #4caf50;
}

/* Role-based Landing Styles */
.landing-content {
  max-width: 800px;
  width: 90%;
}

.subtitle {
  color: #888;
  margin-top: -10px;
  margin-bottom: 30px;
  font-size: 16px;
}

.modal-subtitle {
  color: #888;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.role-selection {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
}

.role-card {
  flex: 1;
  padding: 30px;
  background: #1e1e1e;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #3a3a3a;
  transition: all 0.3s;
  cursor: pointer;
}

.role-card:hover {
  border-color: #007acc;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 122, 204, 0.2);
}

.role-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.role-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 20px;
}

.role-card p {
  color: #888;
  font-size: 14px;
  margin-bottom: 20px;
}

.role-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}

.candidate-btn {
  background: #4caf50;
  color: white;
}

.candidate-btn:hover {
  background: #45a049;
}

.admin-btn {
  background: #007acc;
  color: white;
}

.admin-btn:hover {
  background: #005a9e;
}

.role-divider {
  width: 1px;
  height: 200px;
  background: #3a3a3a;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  transition: border-color 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #007acc;
}

.form-group small {
  display: block;
  margin-top: 5px;
  color: #888;
  font-size: 12px;
}

/* Back Button */
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s;
}

.back-btn:hover {
  color: #fff;
}

/* Error Message */
.error-message {
  margin-top: 15px;
  padding: 10px;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid #f44336;
  border-radius: 4px;
  color: #f44336;
  font-size: 14px;
  text-align: center;
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #3a3a3a;
}

.logout-btn {
  padding: 8px 16px;
  background: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.logout-btn:hover {
  background: #d32f2f;
}

.session-management h3 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 18px;
}

.action-buttons {
  margin-bottom: 30px;
}

.join-existing {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.join-existing input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #3a3a3a;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
}

.active-session {
  padding: 20px;
  background: #1e1e1e;
  border-radius: 8px;
  border: 1px solid #3a3a3a;
}

.active-session h4 {
  color: #4caf50;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Sessions Modal - Modern, Professional Design */
.sessions-modal-content {
  max-width: 1400px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  color: #1f2937;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e5e7eb;
  background: #ffffff;
}

.modal-header h2 {
  color: #1f2937;
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal-btn:hover {
  color: #f44336;
}

.sessions-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  padding: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 10px;
  border: 1px solid #bbf7d0;
}

.stat-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.stat-label {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

.stat-value {
  color: #059669;
  font-size: 24px;
  font-weight: bold;
}

/* Bulk Actions - Consistent Button Sizing */
.bulk-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  align-items: center;
  flex-wrap: wrap;
}

.bulk-actions button {
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.select-all-btn {
  background-color: #3b82f6;
  color: white;
}

.select-all-btn:hover {
  background-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.end-selected-btn {
  background-color: #f59e0b;
  color: white;
}

.end-selected-btn:hover:not(:disabled) {
  background-color: #d97706;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.end-selected-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

.end-all-btn {
  background-color: #ef4444;
  color: white;
  margin-left: auto;
}

.end-all-btn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Session checkbox */
.session-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Session tabs - Professional Design */
.session-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 8px 8px 0 0;
  padding: 4px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #6b7280;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.03);
}

.tab-btn.active {
  color: #059669;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background-color: #4caf50;
  color: white;
}

.status-in-progress {
  background-color: #2196F3;
  color: white;
}

.status-expired {
  background-color: #ff9800;
  color: white;
}

.status-ended {
  background-color: #f44336;
  color: white;
}

.status-archived {
  background-color: #666;
  color: white;
}

/* Sessions Table - Improved spacing and readability */
.sessions-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.sessions-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.sessions-table th {
  text-align: left;
  padding: 14px 16px;
  color: #111827;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sessions-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  background: white;
}

.sessions-table tbody tr:hover {
  background-color: #f9fafb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sessions-table td {
  padding: 16px;
  color: #374151;
  font-size: 14px;
  vertical-align: middle;
}

.session-code-cell {
  font-weight: 600;
  color: #059669;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  background: #f0fdf4;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.participants-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.participant-name {
  color: #4b5563;
  font-weight: 500;
}

.participant-admin {
  color: #059669;
  font-weight: 600;
}

.session-time {
  color: #999;
  font-size: 13px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.action-buttons button {
  min-height: 32px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.join-btn {
  background-color: #10b981;
  color: white;
}

.join-btn:hover {
  background-color: #059669;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.terminate-btn {
  background-color: #ef4444;
  color: white;
}

.terminate-btn:hover {
  background-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
  font-size: 12px;
}

.terminate-btn:hover {
  background-color: #d32f2f;
}

.delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.delete-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.6;
}

.no-sessions-message {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 16px;
}

/* Admin tools section - Professional Design */
.admin-tools {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: center;
}

.session-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.session-info p {
  color: #ccc;
  font-size: 14px;
}

.session-info strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
}

.copy-btn {
  padding: 6px 16px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.3s;
}

.copy-btn:hover {
  background: #005a9e;
}


/* Main Container */
#main-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #1e1e1e;
}

/* Top Bar */
#top-bar {
  background: #2d2d2d;
  border-bottom: 1px solid #3a3a3a;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 50px;
}

.left-controls, .right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.center-info {
  flex: 1;
  text-align: center;
  color: #cccccc;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.user-count {
  background: #3a3a3a;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  color: #4caf50;
  font-weight: 500;
}

#top-bar select {
  padding: 6px 10px;
  background: #1e1e1e;
  color: #cccccc;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.3s;
  min-width: 120px;
}

#language-selector {
  min-width: 150px;
  max-width: 180px;
}

#template-selector {
  min-width: 160px;
  max-width: 200px;
  margin-left: 5px;
}

#theme-selector {
  min-width: 120px;
}

#fontSize-selector {
  min-width: 80px;
}

#top-bar select optgroup {
  background: #2a2a2a;
  color: #888;
  font-weight: bold;
  font-size: 12px;
}

#top-bar select option {
  background: #1e1e1e;
  color: #cccccc;
  padding: 2px 4px;
}

#top-bar select:hover {
  border-color: #007acc;
}

#top-bar select:focus {
  outline: none;
  border-color: #007acc;
  box-shadow: 0 0 0 2px rgba(0, 122, 204, 0.2);
}

#share-btn, #run-btn {
  padding: 6px 16px;
  background: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

#share-btn:hover, #run-btn:hover {
  background: #005a9e;
}

#run-btn {
  background: #4caf50;
}

#run-btn:hover {
  background: #45a049;
}

#run-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

/* End Session Button */
.end-session-button, #end-session-btn {
  background-color: #f44336 !important;
  color: white !important;
  border: none !important;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.3s;
  display: inline-block;
  vertical-align: middle;
}

.end-session-button:hover, #end-session-btn:hover {
  background-color: #d32f2f !important;
}

/* Users List */
#users-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: #3a3a3a;
  border-radius: 12px;
  font-size: 13px;
  color: #ffffff;
}

.user-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  margin-right: 6px;
}

.user-badge.current-user {
  background: #007acc;
}

/* Editor Wrapper */
#editor-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Split Container */
#split-container {
  display: flex;
  height: 100%;
}

#firepad-container {
  flex: 1;
  height: 100%;
  min-width: 300px;
}

/* Output Panel */
#output-panel {
  width: 40%;
  background: #1e1e1e;
  border-left: 2px solid #3a3a3a;
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

#output-header {
  background: #2d2d2d;
  padding: 10px;
  border-bottom: 1px solid #3a3a3a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cccccc;
  font-size: 14px;
  font-weight: 500;
}

#output-header button {
  background: none;
  border: none;
  color: #cccccc;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.3s;
}

#output-header button:hover {
  background: #3a3a3a;
}

#close-output {
  font-size: 20px;
  line-height: 1;
}

#output-content {
  flex: 1;
  overflow: auto;
  padding: 15px;
  background: #1e1e1e;
}

#output-text {
  margin: 0;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
  font-size: 13px;
  line-height: 1.5;
  color: #cccccc;
  white-space: pre-wrap;
  word-wrap: break-word;
}

#output-text.error {
  color: #f48771;
}

#output-text.success {
  color: #4caf50;
}

/* Input Section */
#input-section {
  border-top: 1px solid #3a3a3a;
  padding: 10px;
  background: #2d2d2d;
}

#input-section label {
  display: block;
  color: #cccccc;
  font-size: 12px;
  margin-bottom: 5px;
}

#stdin-input {
  width: 100%;
  min-height: 60px;
  background: #1e1e1e;
  border: 1px solid #3a3a3a;
  color: #cccccc;
  padding: 8px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 12px;
  resize: vertical;
  border-radius: 4px;
}

#stdin-input:focus {
  outline: none;
  border-color: #007acc;
}

/* Override Firepad styles */
.firepad {
  background: #1e1e1e;
}

.firepad-userlist {
  background: #2d2d2d;
  border-left: 1px solid #3a3a3a;
}

.firepad-userlist-user {
  border-bottom: 1px solid #3a3a3a;
}

.firepad-userlist-color-indicator {
  border: 1px solid #3a3a3a;
}

/* Status Bar */
#status-bar {
  background: #007acc;
  color: white;
  padding: 4px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  min-height: 22px;
}

#connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

#connection-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
}

#connection-status.disconnected::before {
  background: #f44336;
}

/* Hide Firepad branding */
a.powered-by-firepad {
  display: none !important;
}

/* ACE Editor Custom Styles */
.ace_editor {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
}

/* Responsive Design */
@media (max-width: 768px) {
  #top-bar {
    flex-wrap: wrap;
    padding: 8px;
  }
  
  .left-controls, .right-controls {
    flex-wrap: wrap;
  }
  
  .center-info {
    width: 100%;
    order: -1;
    margin-bottom: 8px;
  }
  
  #top-bar select, #share-btn {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #4a4a4a;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

/* User Join/Leave Notifications */
.user-notification {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: #2d2d2d;
  border: 1px solid #3a3a3a;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  z-index: 10002;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounceIn 0.5s ease;
}

.user-notification.join {
  border-left: 4px solid #4caf50;
}

.user-notification.leave {
  border-left: 4px solid #ff9800;
}

.user-notification .icon {
  font-size: 18px;
}

/* Animations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes bounceIn {
  0% {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  50% {
    transform: translateX(-50%) translateY(5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.loading {
  animation: pulse 1.5s infinite;
}

/* ==================== ATOMTICKETS INSPIRED STYLES ==================== */

/* Atom Landing Page Styles */
.atom-landing {
  background: linear-gradient(135deg, #018ef5 0%, #0062aa 100%);
  overflow: hidden;
}

.atom-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.atom-gradient {
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 80%, rgba(1, 142, 245, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 98, 170, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(79, 195, 247, 0.2) 0%, transparent 50%);
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-5%, -5%) rotate(120deg); }
  66% { transform: translate(5%, -5%) rotate(240deg); }
}

/* Floating Shapes Animation */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #FFF 0%, rgba(255, 255, 255, 0.5) 100%);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #4FC3F7 0%, rgba(79, 195, 247, 0.5) 100%);
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #FFF 0%, rgba(255, 255, 255, 0.3) 100%);
  bottom: 20%;
  left: 30%;
  animation-delay: 10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #29B6F6 0%, rgba(41, 182, 246, 0.5) 100%);
  top: 30%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(20px, 30px) scale(1.05); }
}

/* Atom Card Styles */
.atom-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: none;
  max-width: 900px;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Atom Logo Section */
.atom-logo-section {
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.atom-logo {
  display: inline-block;
  margin-bottom: 20px;
  animation: atomSpin 3s ease-in-out infinite;
}

@keyframes atomSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
}

.atom-title {
  color: #018ef5;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.atom-subtitle {
  color: #666;
  font-size: 16px;
  font-weight: 400;
}

/* Atom Role Cards */
.atom-roles {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

.atom-role-card {
  background: #FAFAFA;
  border: 2px solid #F5F5F5;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.atom-role-card:hover {
  background: #FFF;
  border-color: #018ef5;
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(1, 142, 245, 0.15);
}

.atom-role-card h3 {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.atom-role-card p {
  color: #666;
  font-size: 14px;
  margin-bottom: 20px;
}

.atom-icon {
  margin-bottom: 20px;
  display: inline-block;
  animation: iconPulse 2s ease infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Atom Buttons */
.atom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0.3px;
}

.atom-btn-primary {
  background: linear-gradient(135deg, #018ef5 0%, #0062aa 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(1, 142, 245, 0.3);
}

.atom-btn-primary:hover {
  background: linear-gradient(135deg, #01538f 0%, #018ef5 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 142, 245, 0.4);
}

.atom-btn-secondary {
  background: #FFF;
  color: #018ef5;
  border: 2px solid #018ef5;
}

.atom-btn-secondary:hover {
  background: #018ef5;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 142, 245, 0.3);
}

.atom-btn svg {
  transition: transform 0.3s ease;
}

.atom-btn:hover svg {
  transform: translateX(3px);
}

/* Atom Divider */
.atom-divider {
  position: relative;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atom-divider span {
  background: #FFF;
  padding: 8px 12px;
  color: #999;
  font-weight: 600;
  font-size: 14px;
  border-radius: 20px;
  border: 2px solid #F5F5F5;
  z-index: 1;
}

.atom-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2px;
  height: 150px;
  background: linear-gradient(to bottom, transparent, #E0E0E0, transparent);
}

/* Atom Features */
.atom-features {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding-top: 30px;
  border-top: 1px solid #F0F0F0;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  transition: color 0.3s ease;
}

.feature-item:hover {
  color: #018ef5;
}

.feature-item svg {
  transition: transform 0.3s ease;
}

.feature-item:hover svg {
  transform: scale(1.2) rotate(5deg);
}

/* Atom Footer */
.atom-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
  color: white;
  font-size: 14px;
}

.footer-content p {
  margin-bottom: 10px;
}

.atom-link {
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.atom-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

.atom-link:hover::after {
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .atom-roles {
    flex-direction: column;
  }
  
  .atom-divider {
    width: 100%;
    height: 40px;
  }
  
  .atom-divider::before {
    width: 150px;
    height: 2px;
  }
  
  .atom-features {
    flex-direction: column;
    gap: 15px;
  }
  
  .atom-title {
    font-size: 24px;
  }
}


/* Interviewer Notes Panel */
#notes-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  border-left: 2px solid #018ef5;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

#notes-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #018ef5 0%, #0176d3 100%);
  border-bottom: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  color: white;
  font-size: 16px;
}

#close-notes {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s;
}

#close-notes:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

#notes-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0,0,0,0.2);
}

.notes-rating-section,
.notes-tags-section,
.notes-text-section,
.notes-recommendation-section {
  margin-bottom: 25px;
  padding: 15px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
}

.notes-rating-section label,
.notes-tags-section label,
.notes-text-section label,
.notes-recommendation-section label {
  display: block;
  margin-bottom: 10px;
  color: #018ef5;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 28px;
  justify-content: center;
  padding: 10px 0;
}

.rating-stars span {
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.rating-stars span:hover {
  transform: scale(1.2);
}

.rating-stars span.active {
  color: #ffc107;
}

.rating-stars span.filled {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255,193,7,0.5);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-btn {
  background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
  border: 1px solid #555;
  color: #ccc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.tag-btn:hover {
  background: linear-gradient(135deg, #4a4a4a, #3a3a3a);
  border-color: #777;
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.tag-btn.selected {
  background: linear-gradient(135deg, #018ef5, #0176d3);
  border-color: #018ef5;
  color: white;
  box-shadow: 0 2px 8px rgba(1,142,245,0.3);
}

#interview-notes-text {
  width: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #1a1a1a, #252525);
  border: 1px solid #444;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

#interview-notes-text:focus {
  outline: none;
  border-color: #018ef5;
  box-shadow: 0 0 0 2px rgba(1,142,245,0.2), inset 0 2px 4px rgba(0,0,0,0.3);
}

#notes-recommendation {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #1a1a1a, #252525);
  border: 1px solid #444;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

#notes-recommendation:focus {
  outline: none;
  border-color: #018ef5;
  box-shadow: 0 0 0 2px rgba(1,142,245,0.2), inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Color code recommendations */
#notes-recommendation option[value='STRONG_HIRE'] { background: #4caf50; }
#notes-recommendation option[value='HIRE'] { background: #8bc34a; }
#notes-recommendation option[value='PROCEED_TO_NEXT_ROUND'] { background: #2196f3; }
#notes-recommendation option[value='MAYBE'] { background: #ff9800; }
#notes-recommendation option[value='NO_HIRE'] { background: #f44336; }

.save-notes-btn {
  background: linear-gradient(135deg, #018ef5, #0176d3);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
  box-shadow: 0 4px 8px rgba(1,142,245,0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.save-notes-btn:hover {
  background: linear-gradient(135deg, #0176d3, #0166b8);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(1,142,245,0.4);
}

.save-notes-btn:disabled {
  background: linear-gradient(135deg, #555, #444);
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.notes-button {
  background: #3a3a3a;
  color: #fff;
  border: 1px solid #555;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  margin-right: 10px;
}

.notes-button:hover {
  background: #4a4a4a;
  border-color: #666;
}

.notes-button.active {
  background: #018ef5;
  border-color: #018ef5;
}

/* Save status indicator */
#save-status {
  padding: 5px 10px;
  font-size: 12px;
  color: #4caf50;
  text-align: center;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.3s;
}

#save-status.visible {
  opacity: 1;
}

/* Slack Integration Styles */
.slack-share-btn {
  background: linear-gradient(135deg, #4a154b, #611f69);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slack-share-btn:hover {
  background: linear-gradient(135deg, #611f69, #7d2a7f);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.slack-share-btn svg {
  width: 20px;
  height: 20px;
}

.slack-config-content {
  padding: 20px;
}

.slack-webhook-section label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-weight: 600;
}

.slack-preview-section h3 {
  color: #ccc;
  margin-bottom: 10px;
}

#slackMessagePreview {
  max-height: 300px;
  overflow-y: auto;
}

#slackPreviewContent div {
  margin: 8px 0;
  line-height: 1.5;
}

#notes-save-status {
  color: #4caf50;
  font-style: italic;
}

/* Adjust firepad container when notes panel is visible */
#firepad-container.with-notes {
  margin-right: 350px;
}

/* Hiring recommendation badge in admin view */
.recommendation-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.recommendation-badge.strong-hire {
  background: #4caf50;
  color: white;
}

.recommendation-badge.hire {
  background: #8bc34a;
  color: white;
}

.recommendation-badge.proceed {
  background: #2196f3;
  color: white;
}

.recommendation-badge.maybe {
  background: #ff9800;
  color: white;
}

.recommendation-badge.no-hire {
  background: #f44336;
  color: white;
}

/* Session Details Modal */
.session-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.session-detail-header h3 {
  color: #1f2937;
  margin: 0;
  font-size: 20px;
}

.detail-recommendation {
  font-size: 16px;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
}

.detail-recommendation.strong-hire {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
}

.detail-recommendation.hire {
  background: linear-gradient(135deg, #8bc34a, #7cb342);
  color: white;
  box-shadow: 0 2px 4px rgba(139, 195, 74, 0.2);
}

.detail-recommendation.proceed {
  background: linear-gradient(135deg, #2196f3, #1e88e5);
  color: white;
  box-shadow: 0 2px 4px rgba(33, 150, 243, 0.2);
}

.detail-recommendation.maybe {
  background: linear-gradient(135deg, #ff9800, #fb8c00);
  color: white;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.2);
}

.detail-recommendation.no-hire {
  background: linear-gradient(135deg, #f44336, #e53935);
  color: white;
  box-shadow: 0 2px 4px rgba(244, 67, 54, 0.2);
}

.session-detail-tabs {
  display: flex;
  border-bottom: 2px solid #e5e7eb;
  background: #f8f9fa;
  padding: 0 20px;
}

.detail-tab {
  background: none;
  border: none;
  color: #6b7280;
  padding: 14px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  margin-bottom: -2px;
}

.detail-tab:hover {
  color: #374151;
  background: rgba(1, 142, 245, 0.05);
}

.detail-tab.active {
  color: #018ef5;
  border-bottom-color: #018ef5;
  background: white;
}

.tab-content {
  padding: 24px;
  min-height: 300px;
  background: #ffffff;
}

/* Session Details Modal Content */
#sessionDetailsModal .modal-content {
  background: #ffffff !important;
  color: #1f2937 !important;
}

#sessionDetailsContent {
  background: #ffffff;
  color: #1f2937;
  border-radius: 8px;
}

.notes-display {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.notes-display > div {
  margin-bottom: 24px;
}

.notes-display-rating {
  font-size: 20px;
  color: #1f2937;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.notes-display-rating::before {
  content: "⭐";
  font-size: 24px;
}

.notes-display-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.notes-display-tags .tag {
  display: inline-block;
  background: linear-gradient(135deg, #018ef5 0%, #0178d4 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(1, 142, 245, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notes-display-tags .tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(1, 142, 245, 0.25);
}

.notes-display-content {
  background: #ffffff;
  color: #1f2937;
  padding: 24px;
  border-radius: 12px;
  margin-top: 16px;
  white-space: pre-wrap;
  min-height: 150px;
  font-size: 16px;
  line-height: 1.8;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.notes-display-content:empty::before {
  content: "No notes available for this session";
  color: #9ca3af;
  font-style: italic;
}

.notes-display-meta {
  color: #6b7280;
  font-style: italic;
  margin-top: 16px;
  font-size: 14px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.session-info-display p {
  margin: 10px 0;
  font-size: 14px;
}

.session-info-display strong {
  color: #018ef5;
  margin-right: 10px;
}


/* Responsive Design for Professional UI */
@media (max-width: 768px) {
  .sessions-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
  }
  
  .sessions-table {
    font-size: 12px;
  }
  
  .sessions-table th,
  .sessions-table td {
    padding: 8px 6px;
  }
  
  .action-buttons button {
    font-size: 12px;
    padding: 8px 12px;
    min-height: 36px;
  }
  
  .bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .bulk-actions button {
    width: 100%;
  }
  
  .session-tabs {
    flex-wrap: wrap;
  }
  
  .join-existing {
    flex-direction: column;
  }
  
  .join-existing input,
  .join-existing button {
    width: 100%;
  }
  
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .logout-btn {
    width: 100%;
  }
  
  .interviewer-name-section {
    margin-bottom: 16px !important;
    padding: 12px !important;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 20px;
  }
  
  .sessions-stats {
    flex-direction: column;
    gap: 12px;
  }
  
  .hide-mobile {
    display: none !important;
  }
  
  .action-buttons {
    padding: 16px;
  }
  
  .sessions-table {
    display: block;
    overflow-x: auto;
  }
}

/* Modern Dashboard Redesign */
.dashboard-modal-content {
  max-width: 900px;
  width: 95%;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.dashboard-header-modern {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 32px;
  color: white;
}

.dashboard-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: white;
}

.dashboard-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.logout-btn-modern {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.logout-btn-modern:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.dashboard-body {
  padding: 32px;
  background: #f8f9fa;
}

/* Interviewer Card */
.interviewer-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.card-content {
  flex: 1;
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.modern-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: white;
  color: #111827;
}

.modern-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #9ca3af;
}

/* Quick Actions Section */
.quick-actions-section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 20px 0;
}

.action-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.action-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.primary-action {
  border-left: 4px solid #10b981;
}

.secondary-action {
  border-left: 4px solid #667eea;
}

.action-icon {
  width: 64px;
  height: 64px;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.primary-action .action-icon {
  background: linear-gradient(135deg, #d4f4e7 0%, #bbf7d0 100%);
  color: #10b981;
}

.secondary-action .action-icon {
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  color: #667eea;
}

.action-content {
  flex: 1;
}

.action-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 6px 0;
}

.action-content p {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px 0;
}

.action-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.join-session-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.session-code-input {
  flex: 1;
  max-width: 150px;
  padding: 12px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  background: white;
  color: #111827;
}

.session-code-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.action-btn-secondary {
  padding: 12px 24px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn-secondary:hover {
  background: #5a67d8;
  transform: translateY(-2px);
}

/* Active Session Display */
.active-session-modern {
  position: relative;
  padding: 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 32px;
  text-align: center;
}

.session-status-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

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

.active-session-modern h4 {
  font-size: 16px;
  color: #059669;
  margin: 0 0 16px 0;
}

.session-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.code-text {
  font-size: 32px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 4px;
  font-family: 'Courier New', monospace;
}

.copy-btn-modern {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: white;
  border: 2px solid #10b981;
  color: #10b981;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.copy-btn-modern:hover {
  background: #10b981;
  color: white;
}

/* Management Tools */
.management-tools {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: white;
  border: 2px solid #e5e7eb;
  color: #374151;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.tool-btn:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tool-badge {
  padding: 2px 8px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dashboard-modal-content {
    width: 100%;
    border-radius: 0;
  }
  
  .dashboard-header-content {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .logout-btn-modern {
    width: 100%;
  }
  
  .action-card {
    flex-direction: column;
    text-align: center;
  }
  
  .join-session-group {
    flex-direction: column;
  }
  
  .session-code-input {
    max-width: 100%;
  }
  
  .session-code-display {
    flex-direction: column;
  }
}

/* Modern Action Buttons for Session Management */
.action-buttons-modern {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f5f5f5;
  color: #333;
  position: relative;
  min-width: fit-content;
  white-space: nowrap;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* View button */
.action-btn.view-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.action-btn.view-btn:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Slack button */
.action-btn.slack-btn {
  background: linear-gradient(135deg, #4A154B 0%, #611f69 100%);
  color: white;
}

.action-btn.slack-btn:hover {
  background: linear-gradient(135deg, #611f69 0%, #4A154B 100%);
  box-shadow: 0 4px 12px rgba(74, 21, 75, 0.3);
}

/* Join button */
.action-btn.join-btn {
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  color: white;
}

.action-btn.join-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* End button */
.action-btn.end-btn {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
}

.action-btn.end-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Delete Forever button */
.action-btn.delete-forever-btn {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  color: white;
}

.action-btn.delete-forever-btn:hover {
  background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Coming Soon buttons */
.action-btn.coming-soon {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.7;
  position: relative;
  padding-right: 48px;
}

.coming-soon-badge {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #ff9800;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Movie Posters Grid Background */
.movie-posters-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 20px;
  overflow: hidden;
  opacity: 0.15;
  animation: scrollGrid 60s linear infinite;
}

@keyframes scrollGrid {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(0, -50%, 0);
  }
}

.movie-poster-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  animation: fadeInPoster 0.5s ease forwards;
  opacity: 0;
}

@keyframes fadeInPoster {
  to {
    opacity: 1;
  }
}

.movie-poster-tile:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(1, 142, 245, 0.3);
  opacity: 1 !important;
  z-index: 10;
}

.movie-poster-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.movie-poster-tile:hover img {
  transform: scale(1.1);
}

.poster-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  padding: 10px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.movie-poster-tile:hover .poster-overlay {
  transform: translateY(0);
}

.poster-title {
  color: white;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.poster-rating {
  background: rgba(1, 142, 245, 0.8);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

.poster-year {
  font-weight: 500;
}

/* Fallback colored tiles */
.movie-poster-tile.fallback {
  animation: fadeInPoster 0.5s ease forwards, pulse 3s ease infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.25;
  }
}

/* Ensure the grid is behind the modal content */
.atom-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.atom-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(1, 142, 245, 0.95) 0%, 
    rgba(102, 126, 234, 0.95) 50%, 
    rgba(118, 75, 162, 0.95) 100%);
  z-index: 2;
}

.modal-content.landing-content {
  position: relative;
  z-index: 3;
}

/* Animated Code Particles */
.code-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.code-particle {
  position: absolute;
  font-family: 'Monaco', 'Courier New', monospace;
  color: rgba(24, 143, 245, 0.6);
  white-space: nowrap;
  animation: float-particle 20s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(24, 143, 245, 0.3);
  user-select: none;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  25% {
    transform: translateY(-30px) translateX(20px) rotate(5deg);
  }
  50% {
    transform: translateY(20px) translateX(-30px) rotate(-5deg);
  }
  75% {
    transform: translateY(-20px) translateX(30px) rotate(3deg);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .code-particle {
    font-size: 8px !important;
  }
}

/* Security Tab Styles */
.security-info-display {
  padding: 20px;
  color: #fff;
}

.security-info-display h4 {
  margin: 20px 0 10px;
  color: #00ff00;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.security-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.security-table th {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  padding: 10px;
  text-align: left;
  border: 1px solid #444;
  font-size: 12px;
}

.security-table td {
  padding: 8px;
  border: 1px solid #444;
  color: #fff;
  font-size: 11px;
}

.security-table tbody tr:hover {
  background: rgba(0, 255, 0, 0.05);
}

#security-alerts-list {
  list-style: none;
  padding: 0;
}

#security-alerts-list li {
  background: rgba(255, 0, 0, 0.1);
  border-left: 3px solid #ff0000;
  padding: 10px;
  margin: 5px 0;
  color: #ffaaaa;
}

#security-alerts-list li.warning {
  background: rgba(255, 255, 0, 0.1);
  border-left-color: #ffff00;
  color: #ffffaa;
}

#security-alerts-list li.info {
  background: rgba(0, 100, 255, 0.1);
  border-left-color: #0064ff;
  color: #aaccff;
}

.loading-message {
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 20px;
}

.security-flag {
  display: inline-block;
  padding: 2px 6px;
  margin: 0 2px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: bold;
}

.security-flag.vpn {
  background: #ff4444;
  color: white;
}

.security-flag.proxy {
  background: #ff8800;
  color: white;
}

.security-flag.datacenter {
  background: #ffaa00;
  color: black;
}

.security-flag.suspicious {
  background: #ff0000;
  color: white;
}
