/* MNR Construction Company Theme - Modern & Fun */

:root {
  --primary-blue: #2563eb;
  --secondary-blue: #3b82f6;
  --accent-blue: #1d4ed8;
  --fun-blue: #0ea5e9;
  --light-blue: #e0f2fe;
  --white: #ffffff;
  --off-white: #fafafa;
  --light-gray: #f1f5f9;
  --border-gray: #e2e8f0;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;
}

/* Global Theme */
.company-theme {
  background-color: var(--off-white);
  color: var(--text-dark);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar Styling */
.navbar-dark.bg-primary {
  background: var(--primary-blue) !important;
  box-shadow: none;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white) !important;
  letter-spacing: 0.12em;
}

.navbar-brand:hover {
  color: var(--white) !important;
}

/* Company Logo Styling */
.navbar-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

/* Responsive logo sizing */
@media (max-width: 768px) {
  .navbar-logo {
    height: 36px;
    max-width: 150px;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 32px;
    max-width: 120px;
  }
}

.nav-link {
  color: var(--white) !important;
  font-weight: 600;
  padding: 0.55rem 0.85rem !important;
  margin: 0 0.1rem;
  border-radius: 0;
  text-decoration: none !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--white) !important;
  background-color: transparent;
  text-decoration: none !important;
}

.navbar-nav .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:active,
.navbar-nav .nav-link:visited {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.navbar .nav-link.btn-link {
  padding: 0.55rem 0.85rem !important;
}

/* Remove list styling from navigation */
.navbar-nav {
  list-style: none !important;
  list-style-type: none !important;
}

.navbar-nav li {
  list-style: none !important;
  list-style-type: none !important;
}

.navbar-nav .nav-item {
  list-style: none !important;
  list-style-type: none !important;
}

/* Override base.css ul > li rule for navigation */
.navbar-nav > li {
  list-style: none !important;
  list-style-type: none !important;
}

/* Additional specificity to override base.css */
.navbar .navbar-nav > li {
  list-style: none !important;
  list-style-type: none !important;
}

.navbar .navbar-nav > li > a {
  list-style: none !important;
  list-style-type: none !important;
}

/* Card Styling */
.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.card-header {
  background: var(--primary-blue);
  color: var(--white);
  border-radius: 16px 16px 0 0 !important;
  border: none;
  font-weight: 700;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  letter-spacing: -0.25px;
}

.card-body {
  padding: 1.75rem;
}

/* Table Styling */
.table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.table thead th {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  font-weight: 700;
  padding: 1.25rem 1rem;
  font-size: 0.95rem;
  letter-spacing: -0.25px;
}

.table tbody tr {
  border-bottom: 1px solid var(--border-gray);
}

.table tbody tr:last-child {
  border-bottom: none;
}

.table tbody td {
  padding: 1.25rem 1rem;
  border-color: var(--border-gray);
  vertical-align: middle;
  font-weight: 500;
}

/* Button Styling */
.btn-primary {
  background: var(--primary-blue);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  letter-spacing: -0.25px;
}

.btn-primary:hover {
  background: var(--accent-blue);
}

.btn-success {
  background: var(--success-green);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.875rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.25px;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Secondary Button Styling */
.btn-secondary {
  background: var(--text-muted);
  border: none;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.875rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.25px;
  color: var(--white) !important;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.4);
  color: var(--white) !important;
}

/* Report type selector cards */
.form-widget .card-title {
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Alert Styling */
.alert {
  border: none;
  border-radius: 12px;
  font-weight: 600;
  padding: 1rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: currentColor;
  opacity: 0.3;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid var(--success-green);
}

.alert-danger {
  background: #fef2f2;
  color: #991b1b;
  border-left: 4px solid var(--error-red);
}

.alert-info {
  background: var(--light-blue);
  color: var(--primary-blue);
  border-left: 4px solid var(--fun-blue);
}

/* Form Styling */
.form-control {
  border: 2px solid var(--border-gray);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  transition: all 0.3s ease;
  font-weight: 500;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  background: var(--white);
}

.form-label {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  letter-spacing: -0.25px;
}

/* Weather Widget */
#weather-widget {
  background: var(--light-blue);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#weather-widget::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

#weather-widget p {
  margin-bottom: 0.75rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

#weather-temp {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  position: relative;
  z-index: 1;
}

/* Calendar Section */
.calendar-container {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.calendar-embed {
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Announcements Section */
.announcements-container {
  max-height: 500px;
  overflow-y: auto;
}

.announcement-item {
  border-left: 4px solid var(--primary-blue) !important;
  background: var(--light-blue) !important;
}

.announcement-item h6 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.announcement-item p {
  color: var(--text-muted);
  line-height: 1.5;
}

.badge {
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}

.badge.bg-danger {
  background: var(--error-red) !important;
}

.badge.bg-warning {
  background: var(--warning-orange) !important;
}

.badge.bg-info {
  background: var(--fun-blue) !important;
}

/* Reports Page Styling */
.list-group-item {
  border: none;
  border-bottom: 1px solid var(--border-gray);
}

.list-group-item:last-child {
  border-bottom: none;
}

.badge.rounded-pill {
  font-size: 0.75rem;
  font-weight: 600;
}

/* Table improvements for reports */
.table tbody tr td {
  vertical-align: middle;
}

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

/* Multiselect styling */
select[multiple] {
  min-height: 120px;
}

select[multiple] option {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-gray);
  transition: all 0.2s ease;
}

select[multiple] option:hover {
  background-color: var(--light-blue);
}

select[multiple] option:checked {
  background-color: var(--primary-blue);
  color: var(--white);
}

/* Team management styling */
.team-card {
  /* Removed hover effects for uniformity */
}

/* Remove hover effects from daily report sections */
.daily-report-section {
  transition: none !important;
}

.daily-report-section:hover {
  transform: none !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

/* Auto-expanding textarea styling */
.auto-expand {
  resize: none;
  overflow: hidden;
  min-height: 80px;
  transition: height 0.2s ease;
}

.auto-expand:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.25rem;
  }

  .card-body {
    padding: 1.25rem;
  }

  .table thead th,
  .table tbody td {
    padding: 1rem 0.75rem;
  }

  .btn-primary,
  .btn-success {
    padding: 0.75rem 1.5rem;
  }

  .card-header {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }

  .form-widget .card-title {
    font-size: 1.35rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-gray);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-blue);
  border-radius: 5px;
  border: 2px solid var(--light-gray);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Modern Icons */
.fas {
  transition: none;
}

/* Glassmorphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Login page */
.login-page {
  min-height: 100vh;
  background: var(--white);
}

.login-accent {
  height: 4px;
  background: var(--primary-blue);
}

.login-wrap {
  max-width: 320px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
}

.login-mark {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary-blue);
  margin-bottom: 0.35rem;
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.login-page .btn-primary {
  width: 100%;
}

/* Submit report choices */
.submit-report-page {
  max-width: 640px;
  margin: 1rem auto 3rem;
}

.submit-report-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
}

.report-choice {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-gray);
  color: var(--text-dark);
  text-decoration: none;
}

.report-choice:hover,
.report-choice:focus {
  color: var(--text-dark);
  text-decoration: none;
}

.report-choice-bar {
  width: 3px;
  align-self: stretch;
  min-height: 2.5rem;
  background: var(--primary-blue);
  border-radius: 2px;
}

.report-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.report-choice-name {
  font-weight: 700;
}

.report-choice-detail {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.report-choice-open {
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
}
