/* PhotosDrive Dashboard Styles */



/* Cards hover effect */
.card-img-top {
  object-fit: cover;
  height: 200px;
}

/* Badges styling */
.badge-tag {
  font-size: 0.8em;
  font-weight: 500;
}

/* Sign-in Page specific styles */
.form-signin {
  max-width: 330px;
  padding: 1rem;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* Navbar */
.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  /* Removed fixed background-color to respect theme */
  /* background-color: rgba(0, 0, 0, .25); */
  /* Lighter shadow */
  /* No background or shadow separator */
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
}

/* Ensure icons take text color */
.theme-icon-active,
.theme-icon {
  fill: currentColor;
}

/* Fix Mobile Dropdown Overflow */
@media (max-width: 991.98px) {
  .navbar .dropdown-menu {
    position: absolute;
    /* Force absolute instead of static default in collapsed navbar */
    right: 0;
    left: auto;
    float: none;
    margin-top: 0;
  }
}

/* Offcanvas adjustments removed to allow custom widths */

/* Dark Mode Overrides */
[data-bs-theme="dark"] .navbar-brand {
  /* Adaptive background for brand in dark mode if needed, or transparent */
  background-color: transparent;
  /* Removed separator shadow */
  /* box-shadow: inset -1px 0 0 rgba(255, 255, 255, .1); */
}

/* Photo Card Styles */
.photo-card {
  transition: transform 0.2s;
  position: relative;
  /* Ensure z-index works */
}

.photo-card:hover {
  transform: translateY(-2px);
  z-index: 100;
  /* Lift above other cards */
}

/* Bulk Edit Mode Styles */
.bulk-checkbox {
  display: none !important;
  /* Force hidden by default */
  z-index: 10;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

/* When body has .bulk-mode-active, show checkboxes */
body.bulk-mode-active .bulk-checkbox {
  display: block !important;
}

/* Highlight selected card */
.photo-card.selected {
  border-color: var(--bs-primary) !important;
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Bulk Action Bar Animation */
#bulkActionBar {
  transition: transform 0.3s ease-in-out;
  transform: translateY(100%);
  z-index: 1050;
  /* Above most things */
}

/* 
 * Grid View Specifics:
 * Hide details and date, show only buttons
 * Note: .list-view styles removed as we now use #photoTable
 */
#photoGrid .photo-body-details,
#photoGrid .mt-auto small {
  display: none !important;
}

#photoGrid .card-body {
  padding: 0.5rem !important;
  /* Reduced padding from default 1rem */
}

#photoGrid .mt-auto {
  justify-content: center !important;
  padding-top: 0 !important;
  /* Remove top padding to bring icons closer */
  margin-top: 0 !important;
  /* Override mt-auto if needed for compactness */
}

/* Offcanvas Responsive Widths */
#photoRenameOffcanvas,
#photoDetailsOffcanvas {
  transition: width 0.3s ease-in-out;
}

/* Mobile: Full Width */
@media (max-width: 767.98px) {

  #photoRenameOffcanvas,
  #photoDetailsOffcanvas,
  #sidebarMenu {
    width: 100% !important;
  }
}

/* Desktop: Wider than default */
@media (min-width: 768px) {

  #photoRenameOffcanvas,
  #photoDetailsOffcanvas {
    width: 500px !important;
  }
}

/* Documentation Sidebar Mobile Fix */
@media (max-width: 767.98px) {
  #doc-nav {
    position: fixed !important;
    top: 56px;
    /* Below navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 56px);
    z-index: 1050;
    /* Above content */
    background-color: var(--bs-body-bg);
    /* Enforce background */
  }
}