/* Import Inter font for consistency with splash page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0066ff;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #ffffff, #ffe2cc);
  color: #333;
}

/* Custom navbar styling to match splash page */
.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: #333 !important;
  text-decoration: none;
}

.navbar-brand:hover {
  color: #0066ff !important;
}

.navbar-brand img {
  height: 40px;
  margin-right: 0.5rem;
}

.navbar-light .navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: #0066ff !important;
  background-color: rgba(0, 102, 255, 0.1);
}

.navbar-light .navbar-nav .nav-link.active {
  color: #0066ff !important;
  background-color: rgba(0, 102, 255, 0.15);
}

/* Custom dropdown styling */
.dropdown {
  position: relative;
  z-index: 9999;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 0.75rem;
  padding: 0.5rem;
  z-index: 10000 !important;
  position: absolute !important;
}

/* Document card dropdown fix - ensure dropdowns appear above all content */
.document-item .dropdown {
  position: relative;
  z-index: 1050 !important;
}

.document-item .dropdown-menu {
  z-index: 1051 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}

.document-item .card {
  position: relative;
  z-index: 1;
}

/* Specific navbar dropdown styling */
.navbar .dropdown-menu {
  z-index: 10001 !important;
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  left: auto !important;
}

.navbar .dropdown {
  z-index: 10000 !important;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: #333;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: rgba(0, 102, 255, 0.1);
  color: #0066ff;
}

/* Custom button styling */
.btn-primary {
  background-color: #0066ff;
  border-color: #0066ff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: #0052cc;
  border-color: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-outline-primary {
  color: #0066ff;
  border-color: #0066ff;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: #0066ff;
  border-color: #0066ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Card styling */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  border-radius: 1rem 1rem 0 0 !important;
  font-weight: 600;
  color: #333;
}

/* Page headers */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: #333;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

/* Form styling */
.form-control {
  border-radius: 0.5rem;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #0066ff;
  box-shadow: 0 0 0 0.2rem rgba(0, 102, 255, 0.25);
}

.form-label {
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

/* Table styling */
.table {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  color: #333;
  padding: 1rem;
}

.table tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
}

/* Badge styling */
.badge {
  font-weight: 500;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.badge.bg-success {
  background-color: #28a745 !important;
}

.badge.bg-warning {
  background-color: #ffc107 !important;
  color: #212529 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
}

/* Footer styling */
.footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand img {
    height: 35px;
  }
  
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Custom utility classes */
.text-primary-custom {
  color: #0066ff !important;
}

.bg-primary-custom {
  background-color: #0066ff !important;
}

.border-primary-custom {
  border-color: #0066ff !important;
}

/* Animation for page transitions */
.container {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom navbar background */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  position: relative;
  z-index: 1040;
}

/* Icon styling in navigation */
.nav-link i {
  font-size: 1rem;
  margin-right: 0.5rem;
}

/* Status indicators */
.status-active {
  color: #28a745;
  font-weight: 600;
}

.status-archived {
  color: #ffc107;
  font-weight: 600;
}

.status-inactive {
  color: #6c757d;
  font-weight: 600;
}
