/* CVision Global Styles - Import this in all pages */

/* Global font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global CSS custom properties and base styles */
:root {
  /* CVision Brand Colors */
  --primary-50: #f0f4ff;
  --primary-100: #e0e7ff;
  --primary-500: #667eea;
  --primary-600: #5a67d8;
  --primary-700: #4c51bf;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

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

/* Base body styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global utility classes */
.gradient-bg {
  background: var(--gradient-primary);
  min-height: 100vh;
}

.gradient-secondary {
  background: var(--gradient-secondary);
}

.glass {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Global component styles */
.btn-gradient {
  background: var(--gradient-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-gradient:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-gradient:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-gradient .button-text,
.btn-gradient .loading-spinner {
  transition: opacity 0.2s ease;
}

.btn-gradient.loading .button-text {
  opacity: 0;
}

.btn-gradient.loading .loading-spinner {
  display: inline-block;
}

/* Form input focus styles */
.form-input-focus:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Loading spinner */
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Error Messages */
.error-message {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error-message.hidden {
  display: none;
}

/* Toast animations */
.toast-enter {
  transform: translateX(100%);
  opacity: 0;
}

.toast-enter-active {
  transform: translateX(0);
  opacity: 1;
  transition: all 0.3s ease;
}

.toast-exit {
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
}

/* Modal animations */
.modal-enter {
  opacity: 0;
  transform: scale(0.9) translateY(-50px);
}

.modal-enter-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  transition: all 0.3s ease;
}

/* Message Box Styles */
.message-box {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-width: 1px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-box.success {
  background-color: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

.message-box.error {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

.message-box.info {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #1e40af;
}

.message-box.hidden {
  display: none;
}

/* Auth page specific styles */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-container .max-w-6xl {
  width: 100%;
  max-width: 72rem;
}

.auth-container .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 1024px) {
  .auth-container .grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    justify-items: stretch;
  }
}

.auth-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

@media (min-width: 768px) {
  .auth-card {
    padding: 3rem;
  }
}

/* Navigation styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

/* Feature cards */
.feature-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Dashboard specific styles */
.dashboard-container {
  min-height: 100vh;
  background: #f8fafc;
}

.dashboard-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 1rem 0;
}

.dashboard-content {
  padding: 2rem 0;
}

/* File upload styles */
.file-upload-zone {
  border: 2px dashed #cbd5e0;
  border-radius: 0.75rem;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--primary-500);
  background-color: rgba(102, 126, 234, 0.05);
}

/* Document cards */
.document-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.document-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Social Login Buttons */
button[type="button"]:hover,
button[id*="google"]:hover,
button[id*="linkedin"]:hover {
  background-color: #f9fafb;
}

/* Checkbox Styles */
input[type="checkbox"]:focus {
  ring-color: var(--primary-500);
  ring-width: 2px;
}

/* Link Styles */
a {
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Responsive utilities */
@media (max-width: 768px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
}