/* 
 * Teaching Management System - Scoped CSS Architecture
 * Design tokens remain global, component styles are scoped to .app-scope
 * This prevents CSS conflicts while maintaining consistent theming
 */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   These remain global for consistency
   ======================================== */

:root {
  /* Brand Colors */
  --app-primary: #667eea;
  --app-primary-dark: #5a67d8;
  --app-secondary: #764ba2;

  /* Background Gradients */
  --app-bg-gradient: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 50%, #f0fff4 100%);
  --app-navbar-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --app-card-gradient: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);

  /* Typography */
  --app-font-family: 'Poppins', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Shadows */
  --app-shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --app-shadow-md: 0 4px 16px rgba(0,0,0,0.15);
  --app-shadow-lg: 0 8px 32px rgba(0,0,0,0.2);

  /* Border Radius */
  --app-radius: 12px;
  --app-radius-lg: 16px;
}

/* ========================================
   BASE STYLES (MINIMAL GLOBAL OVERRIDES)
   ======================================== */

body {
  font-family: var(--app-font-family);
  background: var(--app-bg-gradient);
  line-height: 1.6;
}

/* Remove any text shadows or effects that might hide text */
* {
  text-shadow: none !important;
}

/* ========================================
   SCOPED APPLICATION STYLES
   All component styles are scoped to .app-scope
   ======================================== */

.app-scope .navbar,
.app-scope.navbar,
.app-navbar {
  background: var(--app-navbar-gradient) !important;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  height: 70px;
  box-shadow: 0 2px 20px rgba(102, 126, 234, 0.2);
  z-index: 1000;
}

.app-scope .navbar-brand,
.app-navbar .navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  color: white !important;
  text-decoration: none;
}

.app-scope .navbar-nav .nav-link,
.app-navbar .nav-link {
  color: rgba(255,255,255,0.95) !important;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.app-scope .navbar-nav .nav-link:hover,
.app-navbar .nav-link:hover {
  color: white !important;
  background: rgba(255,255,255,0.15);
  transform: translateY(-1px);
}

.app-scope .navbar-nav .nav-link:focus,
.app-navbar .nav-link:focus {
  color: white !important;
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
}

/* Dropdown menu visibility - Enhanced */
.app-scope .dropdown-menu {
  background-color: white;
  border: 1px solid #e9ecef;
  box-shadow: var(--app-shadow-md);
  border-radius: var(--app-radius);
}

.app-scope .dropdown-item {
  color: #212529 !important;
  font-weight: 400 !important;
  padding: 0.75rem 1.25rem;
}

.app-scope .dropdown-item:hover,
.app-scope .dropdown-item:focus {
  background-color: rgba(118, 75, 162, 0.15) !important;
  color: #212529 !important;
}

.app-scope .dropdown-item.active {
  background-color: rgba(118, 75, 162, 0.25) !important;
  color: #212529 !important;
}

.app-scope .dropdown-divider {
  border-top: 1px solid #dee2e6;
}

/* Navbar toggler visibility */
.app-scope .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  background-color: rgba(255,255,255,0.1);
}

.app-scope .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.app-scope .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* App Cards */
.app-card {
  border-radius: var(--app-radius);
  border: none;
  box-shadow: var(--app-shadow-sm);
  transition: all 0.3s ease;
  background: white;
}

.app-card:hover {
  box-shadow: var(--app-shadow-md);
  transform: translateY(-2px);
}

.app-card .card-header {
  background: var(--app-card-gradient);
  border-bottom: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--app-radius-lg) var(--app-radius-lg) 0 0 !important;
  padding: 1.5rem 2rem;
  font-weight: 600;
  color: #212529 !important;
}

/* Class code card header - improved visibility */
#class-detail .card .card-header h5 {
  color: #212529 !important;
  font-weight: 700 !important;
}

#class-detail .card .card-header .btn-primary {
  background-color: #0d6efd !important;
  border-color: #0d6efd !important;
  color: white !important;
  font-weight: 600 !important;
}

#class-detail .card .card-header .btn-primary:hover {
  background-color: #0a58ca !important;
  border-color: #0a58ca !important;
}

/* Session notes - button styling for better visibility */
#add-note-form .btn-group .btn-outline-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
  font-weight: 600 !important;
}

#add-note-form .btn-group .btn-outline-secondary:hover {
  background-color: #5c636a !important;
  border-color: #565e64 !important;
}

#add-note-form .btn-group .btn-check:checked + .btn-outline-secondary {
  background-color: #495057 !important;
  border-color: #495057 !important;
  color: white !important;
}

/* Note card backgrounds based on save option */
.note-card.note-type-normal {
  background-color: rgba(108, 117, 125, 0.08) !important;
}

.note-card.note-type-next-session {
  background-color: rgba(13, 202, 240, 0.08) !important;
}

.note-card.note-type-todo {
  background-color: rgba(13, 110, 253, 0.08) !important;
}

/* Dashboard cards with colored backgrounds need white text */
.dashboard-main-card h3,
.dashboard-main-card .card-title,
.dashboard-main-card .card-header {
  color: white !important;
}

.dashboard-main-card .badge {
  color: white !important;
}

/* Ensure card header titles are dark for readability */
.card-header h5,
.card-header .mb-0,
.card-header h4,
.card-header h3 {
  color: #212529 !important;
}

/* Ensure buttons in card headers are visible */
.card-header .btn-outline-light {
  border-color: #6c757d;
  color: #212529;
}

.card-header .btn-outline-light:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.app-card .card-body {
  padding: 2rem;
}

.app-card .card-footer {
  background: #ffffff;
  border-top: 1px solid #e5e5e5;
  border-radius: 0 0 var(--app-radius) var(--app-radius) !important;
  padding: 1.5rem 2rem;
}

/* App Buttons */
.app-btn-primary {
  background: var(--app-primary);
  border-color: var(--app-primary);
  color: white;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.app-btn-primary:hover {
  background: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-sm);
}

.app-btn-secondary {
  background: linear-gradient(45deg, #e91e63, #f06292);
  border-color: #e91e63;
  color: white;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
}

.app-btn-secondary:hover {
  background: linear-gradient(45deg, #c2185b, #e91e63);
  border-color: #c2185b;
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--app-shadow-sm);
}

/* Glass Button Styles - Enhanced Contrast */
.btn-glass-blue {
  background: rgba(13, 110, 253, 0.1) !important;
  border: 1.5px solid #0d6efd !important;
  color: #0d6efd !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-glass-blue:hover {
  background: rgba(13, 110, 253, 0.2) !important;
  border-color: #0a58ca !important;
  color: #0a58ca !important;
  transform: translateY(-1px);
}

.btn-glass-green {
  background: rgba(25, 135, 84, 0.1) !important;
  border: 1.5px solid #198754 !important;
  color: #198754 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-glass-green:hover {
  background: rgba(25, 135, 84, 0.2) !important;
  border-color: #146c43 !important;
  color: #146c43 !important;
  transform: translateY(-1px);
}

.btn-glass-orange {
  background: rgba(253, 126, 20, 0.1) !important;
  border: 1.5px solid #fd7e14 !important;
  color: #fd7e14 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-glass-orange:hover {
  background: rgba(253, 126, 20, 0.2) !important;
  border-color: #e8680f !important;
  color: #e8680f !important;
  transform: translateY(-1px);
}

.btn-glass-red {
  background: rgba(220, 53, 69, 0.1) !important;
  border: 1.5px solid #dc3545 !important;
  color: #dc3545 !important;
  font-weight: 600 !important;
  transition: all 0.3s ease;
}

.btn-glass-red:hover {
  background: rgba(220, 53, 69, 0.2) !important;
  border-color: #bb2d3b !important;
  color: #bb2d3b !important;
  transform: translateY(-1px);
}

/* App Tables */
.app-table {
  border-radius: var(--app-radius);
  overflow: hidden;
  box-shadow: var(--app-shadow-sm);
}

.app-table thead th {
  background: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #495057;
  padding: 1rem;
}

.app-table tbody tr:nth-child(odd) {
  background-color: white;
}

.app-table tbody tr:nth-child(even) {
  background-color: #f0f8ff;
}

.app-table tbody tr:hover {
  background-color: #e6f3ff !important;
}

/* App Modals - Enhanced Contrast */
.app-scope .modal-content {
  border-radius: var(--app-radius);
  border: none;
  box-shadow: var(--app-shadow-lg);
  background-color: white;
  z-index: 1100;
}

.app-scope .modal-header {
  background: var(--app-card-gradient);
  border-bottom: 1px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--app-radius) var(--app-radius) 0 0;
  color: #495057;
}

.app-scope .modal-title {
  color: #343a40;
  font-weight: 600;
}

.app-scope .modal-body {
  background-color: white;
  color: #212529;
  padding: 1.5rem;
}

.app-scope .modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  color: #6c757d;
  border-radius: 0 0 var(--app-radius) var(--app-radius);
}

/* Modal backdrop with better visibility */
.app-scope .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Close button visibility */
.app-scope .btn-close {
  background-color: transparent;
  opacity: 0.8;
}

.app-scope .btn-close:hover {
  opacity: 1;
}

/* App Alerts */
.app-alert {
  border-radius: var(--app-radius);
  border: none;
  font-weight: 500;
}

/* ========================================
   BOOTSTRAP SEMANTIC CLASS FIXES (SCOPED)
   ======================================== */

/* Badge Visibility Fixes - Enhanced Contrast */
.app-scope .badge {
  font-weight: 700 !important;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  text-shadow: none;
}

.app-scope .bg-secondary, 
.app-scope .badge.bg-secondary {
  background-color: #495057 !important;
  color: white !important;
  border: 1px solid #343a40;
}

.app-scope .bg-primary, 
.app-scope .badge.bg-primary {
  background-color: var(--app-primary) !important;
  color: white !important;
}

.app-scope .bg-success, 
.app-scope .badge.bg-success {
  background-color: #198754 !important;
  color: white !important;
}

.app-scope .bg-warning, 
.app-scope .badge.bg-warning {
  background-color: #ffc107 !important;
  color: #000 !important;
}

.app-scope .bg-danger, 
.app-scope .badge.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.app-scope .bg-info, 
.app-scope .badge.bg-info {
  background-color: #0dcaf0 !important;
  color: #000 !important;
}

/* Text Color Fixes - Enhanced Contrast */
.app-scope .text-muted {
  color: #495057 !important;
}

.app-scope .text-secondary {
  color: #495057 !important;
}

.app-scope small, 
.app-scope .small {
  color: #495057 !important;
}

.app-scope .card-text.text-muted,
.app-scope .card .text-muted,
.app-scope .card-footer .text-muted {
  color: #343a40 !important;
}

/* Navbar school name visibility */
.app-scope .navbar .text-muted,
.app-scope .navbar-nav .text-muted {
  color: rgba(255, 255, 255, 0.9) !important;
}

.app-scope .card .small.text-muted,
.app-scope .card small.text-muted {
  color: #495057 !important;
  font-weight: 500;
}

.app-scope .text-primary {
  color: var(--app-primary) !important;
}

.app-scope .text-success {
  color: #198754 !important;
}

.app-scope .text-warning {
  color: #ffc107 !important;
}

.app-scope .text-danger {
  color: #dc3545 !important;
}

.app-scope .text-info {
  color: #0dcaf0 !important;
}

/* Button Visibility Fixes */
.app-scope .btn-secondary {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

.app-scope .btn-secondary:hover {
  background-color: #5c636a !important;
  border-color: #565e64 !important;
  color: white !important;
}

.app-scope .btn-outline-secondary {
  color: #6c757d !important;
  border-color: #6c757d !important;
}

.app-scope .btn-outline-secondary:hover {
  background-color: #6c757d !important;
  border-color: #6c757d !important;
  color: white !important;
}

/* Table Styling Fixes - Enhanced for Maximum Readability */
.app-scope .table {
  color: #212529;
  background-color: white;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--app-radius);
  overflow: hidden;
  box-shadow: var(--app-shadow-sm);
}

.app-scope .table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-scope .table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #343a40;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 3px solid var(--app-primary);
  border-top: none;
  padding: 1rem 0.75rem;
  text-align: left;
}

.app-scope .table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.app-scope .table tbody tr:nth-child(odd) {
  background-color: white;
}

.app-scope .table tbody tr:nth-child(even) {
  background-color: #f8f9ff;
}

.app-scope .table tbody tr:hover {
  background-color: #e6f3ff !important;
  box-shadow: inset 0 0 0 1px var(--app-primary);
}

.app-scope .table tbody td {
  color: #212529;
  vertical-align: middle;
  padding: 0.875rem 0.75rem;
  font-weight: 500;
  border-top: none;
}

.app-scope .table-responsive {
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
}

.app-scope .table-striped tbody tr:nth-of-type(odd) {
  background-color: white;
}

.app-scope .table-striped tbody tr:nth-of-type(even) {
  background-color: #f0f8ff;
}

.app-scope .table-hover tbody tr:hover {
  background-color: #e6f3ff !important;
}

/* Special styling for Todo table */
.app-scope .app-table.todo-table {
  margin-bottom: 0;
}

.app-scope .app-table.todo-table tbody tr {
  cursor: pointer;
}

.app-scope .app-table.todo-table tbody tr.completed {
  opacity: 0.7;
  background-color: #f8f9fa !important;
}

.app-scope .app-table.todo-table tbody tr.completed td {
  text-decoration: line-through;
  color: #6c757d;
}

.app-scope .table .btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  margin: 0 0.125rem;
}

.app-scope .table th,
.app-scope .table td {
  border-color: #e9ecef !important;
}

.app-scope .table-dark th,
.app-scope .table-dark td {
  border-color: #495057 !important;
}

/* Homework Tracker Enhancements */
.app-scope .homework-tracker-table {
  border-collapse: separate;
  border-spacing: 0;
}

.app-scope .homework-grid-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
}

.app-scope .homework-grid-scroll::-webkit-scrollbar {
  height: 10px;
}

.app-scope .homework-grid-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.app-scope .homework-grid-scroll::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.app-scope .homework-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Assignment Header Card Styling */
.app-scope .assignment-header-card {
  padding: 0.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 8px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-scope .assignment-title-multi-line {
  font-weight: 600;
  font-size: 0.875rem;
  color: #212529;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  line-height: 1.3;
  cursor: help;
  word-break: break-word;
}

.app-scope .assignment-date-row {
  font-size: 0.75rem;
  color: #6c757d;
  padding-top: 0.25rem;
  border-top: 1px solid #e9ecef;
}

.app-scope .assignment-header-column {
  vertical-align: top !important;
  padding: 0.75rem !important;
  background: white;
}

/* Sticky student column */
.app-scope .student-column {
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.app-scope .student-name-cell {
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
  font-weight: 600;
  color: #212529;
}

/* Student header box styling */
.app-scope .student-header-box {
  padding: 0.5rem;
}

.app-scope .student-header-title {
  font-weight: 700;
  font-size: 0.875rem;
  color: #212529;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.app-scope .student-sort-option {
  font-size: 0.65rem;
}

.app-scope .sort-label {
  color: #6c757d;
  font-size: 0.65rem;
  white-space: nowrap;
}

/* Dropdown menu styling for assignment actions */
.app-scope .assignment-header-card .dropdown-menu {
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.app-scope .assignment-header-card .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.app-scope .assignment-header-card .dropdown-item:hover {
  background-color: #f8f9fa;
}

.app-scope .assignment-header-card .dropdown-item i {
  width: 20px;
  text-align: center;
}

/* Alert Visibility Fixes */
.app-scope .alert {
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.app-scope .alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.app-scope .alert-info {
  color: #055160;
  background-color: #d1ecf1;
  border-color: #b8daff;
}

.app-scope .alert-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.app-scope .alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* Focus States */
.app-scope .btn:focus,
.app-scope .form-control:focus,
.app-scope .form-select:focus {
  outline: 2px solid var(--app-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Card Text Visibility - Enhanced */
.app-scope .card {
  color: #212529;
}

.app-scope .card-header {
  color: #343a40;
  font-weight: 600;
}

.app-scope .card-body {
  color: #212529;
}

.app-scope .card-body h1, 
.app-scope .card-body h2, 
.app-scope .card-body h3, 
.app-scope .card-body h4, 
.app-scope .card-body h5, 
.app-scope .card-body h6 {
  color: #212529 !important;
}

.app-scope .card-footer {
  color: #495057;
}

.app-scope .card-title {
  color: #212529 !important;
  font-weight: 600;
}

.app-scope .card-subtitle {
  color: #495057 !important;
  font-weight: 500;
}

.app-scope .card .text-center strong {
  color: #212529 !important;
}

.app-scope .card .text-center span {
  color: #495057 !important;
  font-weight: 500;
}

/* Department Text Styling */
.department-text {
  font-weight: 600 !important;
  color: white !important;
  padding: 0.25rem 0.5rem !important;
  border-radius: 4px !important;
  font-size: 0.85rem !important;
}

/* Department color styles */
.department-mathematics { background: rgba(0, 123, 255, 0.9) !important; }
.department-science, .department-sciences { background: rgba(23, 162, 184, 0.9) !important; }
.department-english { background: rgba(40, 167, 69, 0.9) !important; }
.department-history { background: rgba(255, 193, 7, 0.9) !important; color: #212529 !important; }
.department-geography { background: rgba(220, 53, 69, 0.9) !important; }
.department-modernlanguages { background: rgba(111, 66, 193, 0.9) !important; }
.department-physicaleducation { background: rgba(253, 126, 20, 0.9) !important; }
.department-artanddesign { background: rgba(214, 51, 132, 0.9) !important; }
.department-music { background: rgba(233, 30, 99, 0.9) !important; }
.department-computing { background: rgba(33, 37, 41, 0.9) !important; }
.department-religiouseducation { background: rgba(102, 16, 242, 0.9) !important; }
.department-designandtechnology { background: rgba(32, 201, 151, 0.9) !important; }
.department-languages { background: rgba(111, 66, 193, 0.9) !important; }
.department-humanities { background: rgba(156, 39, 176, 0.9) !important; }
.department-artsandcreativesubjects { background: rgba(214, 51, 132, 0.9) !important; }
.department-businessandeconomics { background: rgba(76, 175, 80, 0.9) !important; }
.department-vocationalandappliedsubjects { background: rgba(255, 152, 0, 0.9) !important; }
.department-learningsupport { background: rgba(63, 81, 181, 0.9) !important; }
.department-administration { background: rgba(96, 125, 139, 0.9) !important; }
.department-other { background: rgba(108, 117, 125, 0.9) !important; }

/* ========================================
   DASHBOARD PAGE STYLING
   ======================================== */

.hero-dashboard {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  padding: 3rem 2rem;
  border-radius: var(--app-radius);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.2rem;
  color: #6c757d;
  margin-bottom: 2rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.dashboard-main-card {
  background: white;
  padding: 2rem;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.dashboard-main-card:hover {
  box-shadow: var(--app-shadow-md);
  transform: translateY(-5px);
}

.dashboard-main-card .card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.dashboard-main-card h3 {
  color: #212529;
  font-weight: 600;
  margin-bottom: 1rem;
}

.dashboard-main-card p {
  color: #6c757d;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.features-section {
  background: white;
  padding: 3rem 2rem;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-sm);
}

.features-title {
  text-align: center;
  color: #212529;
  font-weight: 700;
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-group h4 {
  color: #212529;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  color: #6c757d;
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.feature-list li:before {
  content: "✓";
  color: var(--app-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Todo List Action Buttons */
.action-btn {
  border: 2px solid #333 !important;
  border-radius: 4px !important;
  padding: 0.375rem 0.5rem !important;
  font-size: 1rem !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
  min-width: 36px !important;
  min-height: 36px !important;
}

.btn-complete {
  background-color: #c8e6c9 !important;
  color: #2e7d32 !important;
  border-color: #333 !important;
}

.btn-complete:hover {
  background-color: #a5d6a7 !important;
  color: #1b5e20 !important;
  border-color: #333 !important;
}

.btn-edit {
  background-color: #fff9c4 !important;
  color: #f57f17 !important;
  border-color: #333 !important;
}

.btn-edit:hover {
  background-color: #fff59d !important;
  color: #ef6c00 !important;
  border-color: #333 !important;
}

.btn-delete {
  background-color: #ffcdd2 !important;
  color: #c62828 !important;
  border-color: #333 !important;
}

.btn-delete:hover {
  background-color: #ef9a9a !important;
  color: #b71c1c !important;
  border-color: #333 !important;
}

/* Todo List Content Styling */
.todo-task-description {
  font-size: calc(1rem - 4pt) !important;
  color: #666 !important;
  margin-top: 0.25rem !important;
  line-height: 1.4 !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  .app-card .card-body {
    padding: 1.5rem;
  }

  .app-card .card-header,
  .app-card .card-footer {
    padding: 1rem 1.5rem;
  }

  .app-navbar {
    height: auto;
    min-height: 70px;
  }
}
