/* Modern Theme for Macleod Trail Toyota */

:root {
  --primary: #cc0000;
  --primary-dark: #a00000;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --light-bg: #f8f9fa;
  --card-shadow: 0 2px 15px rgba(0,0,0,0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #333;
  background-color: #f5f6fa;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.navbar-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 0.5rem 0;
}

.navbar-dark .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.7rem 1rem !important;
  transition: var(--transition);
  border-radius: 6px;
  margin: 0 2px;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.1);
}

.navbar .form-control {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

.navbar .form-control::placeholder {
  color: rgba(255,255,255,0.5);
}

.navbar .form-control:focus {
  background: rgba(255,255,255,0.15);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(204,0,0,0.25);
}

.navbar .btn-outline-light {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
}

/* Top Header Bar */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 0.5rem 0;
}

.site-header h1 {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--secondary);
  margin: 0;
}

.site-header .welcome-text {
  color: #666;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, rgba(26,26,46,0.85), rgba(22,33,62,0.9)), url('/img/pooringoil.jpg');
  background-size: cover;
  background-position: center 70%;
  padding: 100px 0;
  text-align: center;
  color: #fff;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero-section p {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 2rem;
}

.hero-form .form-control {
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}

.hero-form .form-control::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-form .form-control:focus {
  border-color: var(--primary);
  background: rgba(255,255,255,0.15);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(204,0,0,0.3);
}

.hero-form .btn-primary {
  background: var(--primary);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}

.hero-form .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(204,0,0,0.3);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  overflow: hidden;
}

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

.card-header {
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
}

/* Links Section */
.links-section {
  padding: 60px 0;
  background: #fff;
}

.links-section h2 {
  font-weight: 800;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.links-section .section-divider {
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.1rem;
  margin-bottom: 0.5rem;
  background: var(--light-bg);
  border-radius: 10px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.link-card i {
  font-size: 1.2rem;
  margin-right: 0.75rem;
  color: var(--primary);
  width: 24px;
  text-align: center;
}

.link-card:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

/* Tables - Modern */
.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
}

.table thead th,
.table .TopRow th {
  background: linear-gradient(135deg, #1a1a2e, #16213e) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.45rem 0.6rem;
  border: none !important;
}

.table tbody td {
  padding: 0.3rem 0.6rem;
  vertical-align: middle;
  border-color: #eee;
  font-size: 0.85rem;
  line-height: 1.3;
}

.table tbody td small {
  font-size: 0.75rem;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: #fafbfc;
}

.table-hover tbody tr:hover {
  background-color: #f0f4ff;
}

/* Status Colors */
.danger, tr.danger { background-color: #fff5f5 !important; }
.warning, tr.warning { background-color: #fff8e1 !important; }
.success, tr.success { background-color: #f0fff4 !important; }

/* Modals - Modern */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-header {
  border-bottom: 1px solid #eee;
  padding: 1.25rem 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: var(--secondary);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #eee;
  padding: 1rem 1.5rem;
}

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  transition: var(--transition);
}

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

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

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

/* Alerts */
.alert {
  border-radius: 10px;
  border: none;
  font-weight: 500;
}

.alerts {
  border-radius: 8px;
  margin-bottom: 8px;
  height: auto;
  min-height: 40px;
  line-height: 40px;
  padding: 0 15px;
}

/* Progress Bar */
.progress {
  height: 24px;
  border-radius: 12px;
  background: #e9ecef;
  overflow: hidden;
}

.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: width 0.4s ease;
}

/* Form Controls */
.form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0.6rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.15);
}

/* Service Summary Page - Compact */
.service-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}

.service-header h1 {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0;
}

.service-header p {
  font-size: 0.8rem;
}

.section-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--secondary);
  padding-bottom: 0.3rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  margin-bottom: 0.4rem;
}

.text-danger {
  color: var(--primary) !important;
  font-size: 0.8rem;
}

/* Footer area */
.site-footer {
  background: var(--secondary);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  margin-top: 3rem;
}

/* Print styles */
@media print {
  .pagebreak { page-break-before: always; }
  h1, h3 { font-size: 17px; }
  th { font-size: 12px; text-align: center; }
  body { font-size: 10px; padding: 0; background: #fff; }
  .d-print-none, .navbar, .site-header, .site-footer { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .table thead th, .table .TopRow th { background: #333 !important; }
}

/* Loading animation */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-text {
  animation: pulse 1.5s infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section { padding: 60px 0; }
  .hero-section h1 { font-size: 2rem; }
  .links-section { padding: 40px 0; }
}
