/* Google Forms Proctoring Platform - Custom Styles */

:root {
  --primary-color: #2563eb;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #06b6d4;
  --light-color: #f1f5f9;
  --dark-color: #1e293b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
}

.card {
  border: none;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08) !important;
}

.shadow {
  box-shadow: 0 4px 6px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08) !important;
}

.btn {
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.navbar {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.badge {
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
}

.alert {
  border-radius: 10px;
  border: none;
}

.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  transition: all 0.2s;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.table {
  background: white;
  border-radius: 10px;
  overflow: hidden;
}

footer {
  margin-top: auto;
}

/* Monitoring Dashboard Specific */
#activity-feed {
  max-height: 500px;
  overflow-y: auto;
}

.activity-item {
  padding: 0.75rem;
  border-left: 3px solid var(--primary-color);
  background: white;
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.activity-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.violation {
  border-left-color: var(--danger-color);
}

/* Session Active Page */
#google-form-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 600px;
}

#google-form-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.session-timer {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  #google-form-container {
    height: calc(100vh - 150px);
  }
}
