/* Progressly Custom Theme - Welsh Curriculum Platform */
:root {
  --primary: #2A9D8F;
  --secondary: #264653;
  --accent: #E9C46A;
  --success: #90BE6D;
  --error: #E76F51;
  --background: #F4F4F4;
  --text: #333333;
  
  /* Bootstrap overrides */
  --bs-primary: #2A9D8F;
  --bs-secondary: #264653;
  --bs-success: #90BE6D;
  --bs-warning: #E9C46A;
  --bs-danger: #E76F51;
    
  /* Additional shades */
  --primary-light: #3fb3a3;
  --primary-dark: #236b61;
  --secondary-light: #2e5766;
  --secondary-dark: #1e3a45;
}

/* Body and main backgrounds */
body {
  background-color: var(--background);
  color: var(--text);
}

/* Ensure text is dark and readable */
.text-muted {
  color: #000000 !important;
}

.lead.text-muted {
  color: #000000 !important;
  font-weight: 500;
}

/* Make all main text content black for maximum visibility */
p, .lead, h1, h2, h3, h4, h5, h6 {
  color: #000000 !important;
}

/* Exception for footer - allow white text */
footer p, footer h1, footer h2, footer h3, footer h4, footer h5, footer h6 {
  color: #ffffff !important;
}

/* Dashboard text visibility fixes */
.welcome-message, .dashboard-header {
  color: #000000 !important;
  font-weight: 600 !important;
}

/* Override any Bootstrap text classes that might be too light */
.text-secondary, .text-muted, .text-light {
  color: #000000 !important;
}

/* Footer specific styling - allow white text in footer */
footer .text-muted,
footer p,
footer h6,
footer li,
footer small {
  color: #ffffff !important;
}

/* Card titles and text visibility */
.card-title, .card-text {
  color: #000000 !important;
}

/* Feature cards specific styling */
.feature-card .card-title,
.feature-card .card-text {
  color: #000000 !important;
  font-weight: 500;
}

/* All Bootstrap card content should be black */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.card p, .card span, .card div {
  color: #000000 !important;
}

/* Form styling for better visibility */
.form-label {
  color: #000000 !important;
  font-weight: bold !important;
}

.assignment-form-input, 
.form-control {
  color: #000000 !important;
  background-color: #ffffff !important;
  border: 1px solid #cccccc !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.assignment-form-input:focus,
.form-control:focus {
  color: #000000 !important;
  background-color: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25) !important;
}

/* Select dropdown styling */
select.assignment-form-input option {
  color: #000000 !important;
  background-color: #ffffff !important;
}

/* Textarea styling */
textarea.assignment-form-input {
  color: #000000 !important;
  background-color: #ffffff !important;
}

/* Navigation styling */
.navbar-dark {
  background-color: var(--secondary) !important;
}

.navbar-brand {
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--accent) !important;
}

/* Button styling */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
}

.btn-success {
  background-color: var(--success);
  border-color: var(--success);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Cards and panels */
.card {
  background-color: white;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card-header {
  background-color: var(--primary);
  color: white;
  border-bottom: none;
}

/* Badges */
.badge.bg-primary {
  background-color: var(--primary) !important;
}

.badge.bg-secondary {
  background-color: var(--secondary) !important;
}

.badge.bg-success {
  background-color: var(--success) !important;
}

.badge.bg-info {
  background-color: var(--accent) !important;
  color: var(--text) !important;
}

/* Text colors */
.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-success {
  color: var(--success) !important;
}

.text-warning {
  color: var(--accent) !important;
}

/* Alerts */
.alert-success {
  background-color: rgba(144, 190, 109, 0.1);
  border-color: var(--success);
  color: var(--secondary);
}

.alert-danger {
  background-color: rgba(231, 111, 81, 0.1);
  border-color: var(--error);
  color: var(--secondary);
}

.alert-info {
  background-color: rgba(233, 196, 106, 0.1);
  border-color: var(--accent);
  color: var(--secondary);
}

/* Forms */
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(42, 157, 143, 0.25);
}

/* Progress bars */
.progress-bar {
  background-color: var(--primary);
}

/* Links */
a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

/* Footer */
footer.bg-dark {
  background-color: var(--secondary) !important;
}

/* Welsh curriculum specific styling */
.aole-badge {
  background-color: var(--accent);
  color: var(--text);
}

.principles-card {
  border-left: 4px solid var(--primary);
}

.grade-excellent {
  color: var(--success);
  font-weight: bold;
}

.grade-good {
  color: var(--primary);
  font-weight: bold;
}

.grade-developing {
  color: var(--accent);
  font-weight: bold;
}

.grade-early {
  color: var(--error);
  font-weight: bold;
}

/* Dashboard cards */
.dashboard-stat-card {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
}

.dashboard-stat-card .card-body {
  padding: 1.5rem;
}

/* Chart styling */
.chart-container {
  background-color: white;
  border-radius: 0.375rem;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hover effects */
.card:hover {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease;
}

/* Feature cards on homepage */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* Welsh curriculum accent elements */
.curriculum-highlight {
  background: linear-gradient(135deg, var(--accent), #f4d17a);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  margin: 0.25rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }
  
  .dashboard-stat-cards .col-md-3 {
    margin-bottom: 1rem;
  }
}