/**
 * Framework CSS - Core Styles for All Apps
 * Clean, professional, configurable design system
 */

:root {
  /* Framework Base Colors */
  --framework-primary: #2563eb;
  --framework-secondary: #64748b;
  --framework-success: #10b981;
  --framework-warning: #f59e0b;
  --framework-danger: #ef4444;
  
  /* Background & Layout */
  --framework-bg: #ffffff;
  --framework-card-bg: #ffffff;
  --framework-border: #e2e8f0;
  --framework-shadow: 0 1px 3px rgba(0,0,0,0.1);
  --framework-shadow-lg: 0 4px 6px rgba(0,0,0,0.1);
  
  /* Typography */
  --framework-text-primary: #1e293b;
  --framework-text-secondary: #64748b;
  --framework-text-muted: #94a3b8;
  
  /* Spacing */
  --framework-border-radius: 12px;
  --framework-border-radius-sm: 8px;
}

/* Global Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--framework-bg);
  color: var(--framework-text-primary);
  line-height: 1.6;
}

/* Framework Card Component */
.framework-card {
  background: var(--framework-card-bg);
  border: 1px solid var(--framework-border);
  border-radius: var(--framework-border-radius);
  box-shadow: var(--framework-shadow);
  padding: 2rem;
}

/* Login/Auth Pages */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--framework-card-bg);
  border: 1px solid var(--framework-border);
  border-radius: var(--framework-border-radius);
  box-shadow: var(--framework-shadow-lg);
  padding: 2.5rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  max-height: 60px;
  width: auto;
}

.auth-logo h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--framework-primary);
  margin: 0.5rem 0 0 0;
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--framework-text-primary);
}

.auth-form .form-control {
  border-radius: var(--framework-border-radius-sm);
  border: 1px solid var(--framework-border);
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.auth-form .form-control:focus {
  border-color: var(--framework-primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.auth-form .btn-primary {
  background-color: var(--framework-primary);
  border-color: var(--framework-primary);
  border-radius: var(--framework-border-radius-sm);
  padding: 0.75rem 1rem;
  font-weight: 500;
  width: 100%;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--framework-primary);
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Create Account Split Layout */
.create-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.create-left {
  background: linear-gradient(135deg, var(--framework-primary) 0%, #1d4ed8 100%);
  color: white;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-right {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard Header */
.dashboard-header {
  background: var(--framework-primary);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.875rem;
}

/* Footer */
.framework-footer {
  background: #f8fafc;
  border-top: 1px solid var(--framework-border);
  padding: 2rem 0;
  margin-top: 3rem;
  color: var(--framework-text-secondary);
  font-size: 0.875rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--framework-text-primary);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: none;
}

.cookie-consent.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .create-left {
    display: none;
  }
  
  .create-right {
    padding: 1rem;
  }
}

/* Loading States */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--framework-text-secondary);
}

.loading .spinner-border {
  color: var(--framework-primary);
}

/* Alerts */
.alert {
  border-radius: var(--framework-border-radius-sm);
  border: none;
}

.alert-danger {
  background-color: #fef2f2;
  color: #dc2626;
}

.alert-success {
  background-color: #f0fdf4;
  color: #16a34a;
}

