/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

/* Custom Dashboard Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
}

/* Font Awesome icon fixes */
.fas, .far, .fab, .fal, .fad, .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.sidebar {
  transition: all 0.3s ease;
}

.sidebar .nav-link {
  border-radius: 8px;
  margin-bottom: 4px;
  padding: 12px 16px;
  color: #6c757d;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.sidebar .nav-link.active {
  background-color: #0d6efd;
  color: white;
}

.sidebar .nav-link i {
  width: 20px;
  text-align: center;
}

.card {
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon {
  flex-shrink: 0;
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
}

.badge {
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
}

.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 16px;
}

.dropdown-menu {
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  padding: 8px;
  z-index: 1050 !important; /* Ensure dropdowns appear above all other content */
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 2px;
}

/* Fix for Bootstrap dropdown z-index issues */
.dropdown {
  position: relative;
}

.dropdown .dropdown-menu {
  z-index: 1050 !important;
}

/* Ensure user menu and notifications dropdowns are always on top */
.user-menu .dropdown-menu,
.notifications .dropdown-menu {
  z-index: 1060 !important;
}

/* Fix sticky elements that might interfere with dropdowns */
.sticky-top {
  z-index: 1020 !important; /* Lower than dropdowns but higher than normal content */
}

.avatar {
  font-size: 14px;
}

.chart-placeholder {
  border: 2px dashed #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .main-content,
  .header {
    margin-left: 0 !important;
  }
}

/* Custom scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Devise Link Styling - Geeks UI Style */
.devise-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  line-height: 1.5;
  color: #0d6efd !important;
}

.devise-links a:hover {
  background-color: rgba(13, 110, 253, 0.1);
  transform: translateX(2px);
  color: #0b5ed7 !important;
}

/* Make FullCalendar blend with Bootstrap cards and backgrounds */
#calendar .fc {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
  padding: 1rem;
}

#calendar .fc-toolbar-title {
  color: #212529;
  font-weight: 600;
}

/* Make FullCalendar buttons look like Bootstrap buttons */
.fc .fc-button, .fc .fc-button-primary {
  background-color: #0d6efd !important;   /* Bootstrap primary */
  border: none !important;
  color: #fff !important;
  border-radius: 0.25rem !important;
  padding: 0.375rem 0.75rem !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: background-color 0.15s;
}

.fc .fc-button-primary:not(:disabled):active, 
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background-color: #0b5ed7 !important;
}

.fc .fc-button-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25) !important;
}

.fc .fc-button-primary:disabled {
  background-color: #6c757d !important;
  color: #fff !important;
  opacity: 0.65 !important;
}

#calendar .fc-daygrid-day.fc-day-today {
  background-color: #e7f1ff;
}

#calendar .fc-daygrid-day:hover {
  background-color: #b2c0cf;
  cursor: pointer;
}

#calendar .fc-daygrid-day.fc-day-past {
  background-color: #f8f9fa;
}

#calendar .fc-scrollgrid {
  border-radius: 0.5rem;
  overflow: hidden;
}

#calendar .fc {
  border: none;
  box-shadow: none;
}

.calendar-wrapper #calendar {
  min-height: 500px; /* Adjust as needed */
  max-width: 100%;
  max-height: 400px;
  
}

.fc-daygrid-day.blocked {
  color: #701f1f !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 0.7;
}

.fc-daygrid-day.blocked a {
  color: #b0b0b0 !important;              /* Gray out the link text */
  pointer-events: none !important;
  text-decoration: none;
}


.email-badge {
  display: block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-all;
} 