﻿/* components.css - UI component styles extracted from inline styles */

/* Cascading list components */
.dropdown-header {
  transition: background-color 0.2s ease;
}

  .dropdown-header:hover {
    background-color: #f8f9fa !important;
  }

.dropdown-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.fa-chevron-down {
  transition: transform 0.2s ease;
}

/* Project attribute dropdown */
.project-attribute-dropdown {
  position: relative;
}

  .project-attribute-dropdown .remove-dropdown {
    margin-top: 2rem;
  }

/* Search components */
.search-tag {
  display: inline-block;
  background-color: #e9ecef;
  padding: 2px 8px;
  margin: 2px;
  border-radius: 4px;
  font-size: 0.9em;
}

.remove-tag {
  margin-left: 4px;
  cursor: pointer;
  font-weight: bold;
}

.search-text {
  visibility: hidden;
}

.visible-input {
  background: transparent !important;
}

.show-more-link {
  display: block;
  cursor: pointer;
  color: blue;
  text-decoration: underline;
}

/* Options dropdown */
.options {
  cursor: pointer;
  position: center;
  text-align: center;
  vertical-align: middle;
  padding: 10px;
}


.dropdown a {
  padding: 8px 12px;
  text-decoration: none;
  display: block;
  color: black;
}

  .dropdown a:hover {
    background-color: #f1f1f1;
  }

/* Document options */
#Documentoption {
  position: relative;
  display: inline-block;
}

  #Documentoption .more-icon {
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    user-select: none;
  }

#Documentdropdown {
  display: none;
  position: absolute;
  right: 0;
  min-width: 160px;
  background-color: #f9f9f9;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  margin-top: 5px;
}

  #Documentdropdown.active {
    display: block;
  }

  #Documentdropdown .dropdown-item {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
  }

    #Documentdropdown .dropdown-item:hover {
      background-color: #f1f1f1;
    }

/* Navigation links */
.New-nav-link {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

  .New-nav-link:hover {
    background-color: #f1f1f1;
  }

/* Hover effects */
.hover-bg-light:hover {
  background-color: #f8f9fa;
}

.hover-bg-dark-subtle:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease;
}

/* Disabled state */
.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Options popup */
.options-popup {
  min-width: 160px;
  background: white;
  padding: 4px 0;
  display: none;
}

  .options-popup a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #333;
  }

  .options-popup .p-2 {
    background-color: #ffffff;
  }

  .options-popup a:hover {
    background-color: #f8f9fa;
  }

  .options-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
  }

/* Swap icons */
.swap-icons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Tab navigation */
.nav-tabs .nav-link.active {
  position: relative;
  top: 1px;
  border-bottom: 3px solid #fff;
}

/* Badges for statuses */
.badge-approved {
  background-color: #20c997;
  color: white;
  opacity: 1;
}

.badge-rejected {
  background-color: #dc3545;
  color: white;
  opacity: 1;
}

.badge-pending {
  background-color: #ffc107;
  color: #212529;
  opacity: 1;
}

/* Notification component */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1050;
  min-width: 250px;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.notification.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* Navigation links styling */
.navbar-nav .nav-link.active {
  font-weight: bold;
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link.active:hover {
  background-color: var(--primary-color-hover);
}
.navbar-nav .nav-link.active {
  font-weight: bold;
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* Responsive adjustments */
@media (max-width: 576px) {
  .notification {
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 400px;
    margin: 0 auto;
  }
}
