/* ===== DOTHOS Global Styles ===== */
:root {
  --primary-black: #1a1a1a;
  --primary-red: #c8102e;
  --primary-red-hover: #a50d25;
  --dark-gray: #333333;
  --mid-gray: #666666;
  --light-gray: #999999;
  --bg-gray: #f5f5f5;
  --bg-light: #fafafa;
  --white: #ffffff;
  --border: #e0e0e0;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== NAVBAR ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--dark-gray);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-red); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-red);
}
.nav-cta {
  background: var(--primary-red);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav-cta:hover { background: var(--primary-red-hover); transform: translateY(-1px); }
.mobile-toggle { display: none; font-size: 24px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-black) 0%, #2d2d2d 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}
.hero h1 span { color: var(--primary-red); }
.hero p {
  font-size: 18px;
  color: #ccc;
  margin-bottom: 35px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}
.btn-primary { background: var(--primary-red); color: var(--white); }
.btn-primary:hover { background: var(--primary-red-hover); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(200,16,46,0.3); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-black); }
.btn-dark { background: var(--primary-black); color: var(--white); }
.btn-dark:hover { background: #333; }
.btn-lg { padding: 15px 40px; font-size: 16px; }
.btn-sm { padding: 6px 15px; font-size: 13px; }
.btn-danger { background: #dc3545; color: white; }
.btn-success { background: var(--success); color: white; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-gray); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-black);
  margin-bottom: 15px;
}
.section-header h2 span { color: var(--primary-red); }
.section-header p { color: var(--mid-gray); font-size: 17px; max-width: 600px; margin: 0 auto; }
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-red);
  margin: 15px auto 0;
}

/* ===== SERVICE CARDS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-top-color: var(--primary-red);
}
.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-red), #e8384f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 20px;
  color: white;
}
.service-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--primary-black); }
.service-card p { color: var(--mid-gray); font-size: 14px; line-height: 1.7; }

/* ===== FEATURES / WHY US ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.feature-item {
  text-align: center;
  padding: 30px 20px;
}
.feature-item .icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}
.feature-item h4 { font-size: 18px; margin-bottom: 10px; color: var(--primary-black); }
.feature-item p { color: var(--mid-gray); font-size: 14px; }

/* ===== STATS ===== */
.stats-bar {
  background: var(--primary-black);
  color: var(--white);
  padding: 60px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  text-align: center;
}
.stat-item h3 {
  font-size: 42px;
  font-weight: 700;
  color: var(--primary-red);
  margin-bottom: 8px;
}
.stat-item p { color: #ccc; font-size: 15px; }

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  position: relative;
}
.step-item {
  text-align: center;
  position: relative;
}
.step-number {
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 15px;
}
.step-item h4 { font-size: 17px; margin-bottom: 8px; color: var(--primary-black); }
.step-item p { color: var(--mid-gray); font-size: 14px; }

/* ===== FORMS ===== */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-container-wide { max-width: 700px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark-gray);
  font-size: 14px;
}
.form-group label .required { color: var(--primary-red); }
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,0.1);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--mid-gray); }
.form-footer a { color: var(--primary-red); font-weight: 600; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary-black), #2d2d2d);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.page-header h1 { font-size: 38px; margin-bottom: 10px; }
.page-header p { color: #ccc; font-size: 16px; }
.breadcrumb { margin-top: 15px; font-size: 14px; color: #999; }
.breadcrumb a { color: var(--primary-red); }

/* ===== DASHBOARD ===== */
.dashboard-layout { display: flex; min-height: calc(100vh - 70px); }
.sidebar {
  width: 250px;
  background: var(--primary-black);
  color: white;
  padding: 30px 0;
  flex-shrink: 0;
}
.sidebar-user {
  padding: 0 25px 25px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}
.sidebar-user h4 { color: white; font-size: 16px; }
.sidebar-user p { color: #999; font-size: 13px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 25px;
  color: #ccc;
  transition: var(--transition);
  font-size: 14px;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(200,16,46,0.15);
  color: white;
  border-left: 3px solid var(--primary-red);
}
.dashboard-main {
  flex: 1;
  padding: 30px;
  background: var(--bg-gray);
  overflow-x: auto;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.dashboard-header h2 { font-size: 26px; color: var(--primary-black); }

/* ===== DASHBOARD CARDS ===== */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.dash-card {
  background: white;
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 15px;
}
.dash-card-icon {
  width: 55px;
  height: 55px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.dash-card-info h4 { font-size: 28px; color: var(--primary-black); }
.dash-card-info p { font-size: 13px; color: var(--mid-gray); }

/* ===== TABLES ===== */
.table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.table-container table { width: 100%; border-collapse: collapse; }
.table-container th {
  background: var(--primary-black);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table-container td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table-container tr:hover { background: var(--bg-light); }
.table-container tr:last-child td { border-bottom: none; }

/* ===== STATUS BADGES ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-confirmed { background: #d1ecf1; color: #0c5460; }
.badge-inspection_scheduled { background: #cce5ff; color: #004085; }
.badge-inspection_in_progress { background: #e2e3e5; color: #383d41; }
.badge-report_pending { background: #fff0e6; color: #8a4d00; }
.badge-completed { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }
.badge-unread { background: #f8d7da; color: #721c24; }
.badge-read { background: #d4edda; color: #155724; }
.badge-active { background: #d4edda; color: #155724; }
.badge-disabled { background: #f8d7da; color: #721c24; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-image {
  background: linear-gradient(135deg, var(--primary-black), var(--primary-red));
  border-radius: var(--radius);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-text h2 { font-size: 32px; margin-bottom: 20px; color: var(--primary-black); }
.about-text p { color: var(--mid-gray); margin-bottom: 15px; line-height: 1.8; }
.about-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.about-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-info-item .icon { font-size: 24px; flex-shrink: 0; }
.about-info-item h5 { font-size: 14px; color: var(--primary-black); margin-bottom: 3px; }
.about-info-item p { font-size: 13px; color: var(--mid-gray); margin: 0; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}
.contact-info-card {
  background: var(--primary-black);
  color: white;
  padding: 40px;
  border-radius: var(--radius);
}
.contact-info-card h3 { font-size: 24px; margin-bottom: 25px; }
.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}
.contact-info-item .icon {
  width: 45px;
  height: 45px;
  background: rgba(200,16,46,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-item h5 { font-size: 14px; color: #ccc; margin-bottom: 3px; }
.contact-info-item p { font-size: 15px; color: white; margin: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-black);
  color: #999;
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-red);
}
.footer-col p { font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 14px; color: #999; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary-red); }
.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}
.footer-logo img { height: 35px; margin-bottom: 15px; filter: brightness(0) invert(1); }

/* ===== ALERTS ===== */
.alert {
  padding: 12px 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  max-width: 600px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { font-size: 20px; color: var(--primary-black); }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--mid-gray);
}

/* ===== SERVICE DETAIL ===== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}
.service-detail:nth-child(even) { direction: rtl; }
.service-detail:nth-child(even) > * { direction: ltr; }
.service-detail-image {
  background: var(--bg-gray);
  border-radius: var(--radius);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  border: 1px solid var(--border);
}
.service-detail-content h3 { font-size: 26px; margin-bottom: 15px; color: var(--primary-black); }
.service-detail-content p { color: var(--mid-gray); margin-bottom: 15px; line-height: 1.8; }
.service-detail-content ul { margin: 15px 0; }
.service-detail-content ul li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--mid-gray);
  font-size: 14px;
}
.service-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-red);
  font-weight: 700;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-red), #a50d25);
  color: white;
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { font-size: 32px; margin-bottom: 15px; }
.cta-banner p { font-size: 17px; margin-bottom: 25px; opacity: 0.9; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--light-gray);
}
.empty-state .icon { font-size: 60px; margin-bottom: 15px; }
.empty-state h4 { font-size: 18px; margin-bottom: 10px; color: var(--mid-gray); }

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar select {
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: white; flex-direction: column; padding: 20px; box-shadow: var(--shadow); gap: 15px; }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 32px; }
  .about-hero, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { flex-direction: column; }
  .sidebar { width: 100%; padding: 15px 0; }
  .sidebar-nav { display: flex; overflow-x: auto; }
  .sidebar-nav a { white-space: nowrap; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 50px 0; }
}
