/* jobs page */

/* Add this CSS to your main.css file for the job page styles */

/*--------------------------------------------------------------
# Jobs Section Styles
--------------------------------------------------------------*/
.jobs {
  padding: 80px 0;
}

/* Filter Sidebar */
.filter-sidebar {
  position: sticky;
  top: 120px;
}

.filter-card {
  background: var(--surface-color);
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.filter-header {
  background: var(--accent-color);
  color: var(--contrast-color);
  padding: 1.5rem;
  margin: 0;
}

.filter-header h4 {
  color: var(--contrast-color);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.filter-body {
  padding: 1.5rem;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.filter-group .form-select {
  border-color: color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.filter-group .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Search Section */
.search-section {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-input-group {
  display: flex;
  gap: 0;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.search-input-group .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 0;
  background: #fff;
  flex: 1;
}

.search-input-group .form-control:focus {
  box-shadow: none;
  border-color: transparent;
}

.search-input-group .search-btn {
  border: none;
  padding: 1rem 2rem;
  border-radius: 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: all 0.3s ease;
}

.search-input-group .search-btn:hover {
  background: color-mix(in srgb, var(--accent-color), black 15%);
}

/* Job Cards */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: var(--surface-color);
  border-radius: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: color-mix(in srgb, var(--accent-color), transparent 70%);
}

.job-card-body {
  padding: 2rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.job-title-section {
  flex: 1;
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 0.9rem;
}

.job-meta-item i {
  color: var(--accent-color);
  font-size: 1rem;
}

.job-badge {
  margin-left: 1rem;
}

.job-badge .badge {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
}

.job-description {
  margin-bottom: 1.5rem;
}

.job-description p {
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  line-height: 1.6;
  margin-bottom: 0;
}

.job-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.read-more-btn {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border: none;
  background: none;
  padding: 0;
}

.read-more-btn:hover {
  color: color-mix(in srgb, var(--accent-color), black 20%);
}

.apply-btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Themed Apply Buttons */
#applyFiltersBtn,
.apply-btn {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  box-shadow: 0 4px 18px rgba(40, 167, 69, 0.10);
  transition: all 0.2s cubic-bezier(.4,0,.2,1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

#applyFiltersBtn:hover,
.apply-btn:hover {
  background: color-mix(in srgb, var(--accent-color), black 12%);
  color: var(--contrast-color);
  box-shadow: 0 8px 28px rgba(40, 167, 69, 0.18);
  transform: translateY(-2px) scale(1.03);
}

#applyFiltersBtn:active,
.apply-btn:active {
  background: color-mix(in srgb, var(--accent-color), black 20%);
  color: var(--contrast-color);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.10);
  transform: scale(0.98);
}

#applyFiltersBtn:focus,
.apply-btn:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

#applyFiltersBtn .spinner-border {
  vertical-align: middle;
}

/* Pagination */
.jobs-pagination .pagination {
  gap: 0.5rem;
}

.jobs-pagination .page-link {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  color: var(--default-color);
  transition: all 0.3s ease;
}

.jobs-pagination .page-link:hover,
.jobs-pagination .page-item.active .page-link {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}

/* Modal Styles */
.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.modal-header {
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem 2rem;
  border-bottom: none;
}

.modal-title {
  color: var(--contrast-color);
  font-weight: 600;
}

.modal-header .btn-close {
  background: none;
  opacity: 1;
  filter: invert(1);
}

.modal-body {
  padding: 2rem;
}

.modal-body .form-label {
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.modal-body .form-control,
.modal-body .form-select {
  border-color: color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.modal-body .btn-primary {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.modal-body .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* Add this to your main.css file for animated gradient hero background */

/* Job Page Hero Section with Animated Gradient */
.job-page-hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 100px;
  background: linear-gradient(45deg, #28a745, #34ce57, #20c997, #28a745);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  overflow: hidden;
}

.job-page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.8), rgba(52, 206, 87, 0.6), rgba(32, 201, 151, 0.8), rgba(40, 167, 69, 0.9));
  background-size: 300% 300%;
  animation: gradientShift 12s ease infinite reverse;
  pointer-events: none;
}

.job-page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  animation: floatingOrbs 15s ease-in-out infinite;
  pointer-events: none;
}

/* Animated floating shapes */
.job-page-hero .floating-shape {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
}

.job-page-hero .floating-shape-1 {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  animation: float1 6s ease-in-out infinite;
}

.job-page-hero .floating-shape-2 {
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  top: 60%;
  right: 10%;
  animation: float2 8s ease-in-out infinite;
}

.job-page-hero .floating-shape-3 {
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: 30%;
  right: 30%;
  animation: float3 7s ease-in-out infinite;
}

.job-page-hero .floating-shape-4 {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20% 80% 20% 80% / 80% 20% 80% 20%;
  bottom: 20%;
  left: 20%;
  animation: float4 9s ease-in-out infinite;
}

/* Hero content styling for job page */
.job-page-hero .hero-content {
  position: relative;
  z-index: 10;
  color: white;
}

.job-page-hero .company-badge {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
}

.job-page-hero h1 {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.job-page-hero .accent-text {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.job-page-hero .hero-description {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Keyframe animations */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatingOrbs {
  0%, 100% {
    transform: translateY(0px) scale(1);
  }
  33% {
    transform: translateY(-20px) scale(1.1);
  }
  66% {
    transform: translateY(10px) scale(0.9);
  }
}

@keyframes float1 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

@keyframes float2 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate(-40px, -20px) rotate(180deg) scale(1.1);
  }
}

@keyframes float3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -40px) scale(1.2);
  }
  66% {
    transform: translate(-30px, 10px) scale(0.8);
  }
}

@keyframes float4 {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(15px, -25px) rotate(90deg);
  }
  50% {
    transform: translate(-10px, -15px) rotate(180deg);
  }
  75% {
    transform: translate(-25px, 10px) rotate(270deg);
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .filter-sidebar {
    position: static;
    margin-bottom: 2rem;
  }
  
  .job-header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .job-badge {
    margin-left: 0;
    align-self: flex-start;
  }
  
  .job-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .apply-btn {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .job-card-body {
    padding: 1.5rem;
  }
  
  .job-title {
    font-size: 1.25rem;
  }
  
  .job-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .search-input-group {
    flex-direction: column;
    border-radius: 1rem;
  }
  
  .search-input-group .form-control,
  .search-input-group .search-btn {
    border-radius: 0.5rem;
  }
  
  .modal-body {
    padding: 1.5rem;
  }
  
  .job-page-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .job-page-hero .floating-shape {
    display: none;
  }
}

.submission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.submission-overlay.show {
  opacity: 1;
  visibility: visible;
}

.submission-card {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.3s ease;
}

.submission-overlay.show .submission-card {
  transform: scale(1) translateY(0);
}

/* Animation Container */
.submission-animation {
  position: relative;
  margin-bottom: 2rem;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Upload Icon Animation */
.upload-icon {
  animation: float 3s ease-in-out infinite;
}

.upload-circle {
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  animation: circle-progress 2s ease-in-out infinite;
}

.upload-arrow {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: arrow-draw 2s ease-in-out infinite;
}

.upload-dot {
  animation: dot-pulse 1.5s ease-in-out infinite;
}

/* Checkmarks Animation */
.checkmarks-container {
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkmark {
  opacity: 0;
  transform: scale(0);
}

.checkmark-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke: #28a745;
  stroke-width: 2;
  stroke-miterlimit: 10;
  fill: none;
}

.checkmark-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #28a745;
  stroke-width: 3;
  stroke-miterlimit: 10;
  fill: none;
}

.checkmark.animate {
  opacity: 1;
  transform: scale(1);
  animation: checkmark-appear 0.6s ease-out;
}

.checkmark.animate .checkmark-circle {
  animation: circle-fill 0.6s ease-in-out;
}

.checkmark.animate .checkmark-check {
  animation: check-draw 0.3s ease-in-out 0.3s both;
}

/* Content Styles */
.submission-content h3 {
  color: #198754;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.submission-steps {
  margin-bottom: 2rem;
}

.step-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.step-item.active {
  background: #e8f5e8;
  opacity: 1;
  border-left: 4px solid #28a745;
}

.step-item.completed {
  background: #d4edda;
  opacity: 1;
  border-left: 4px solid #28a745;
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.step-item.active .step-icon {
  background: #28a745;
  animation: pulse-icon 2s ease-in-out infinite;
}

.step-item.completed .step-icon {
  background: #28a745;
}

.step-item.completed .step-icon::before {
  content: '✓';
}

.step-text {
  font-size: 0.95rem;
  color: #495057;
  font-weight: 500;
}

.step-item.active .step-text {
  color: #198754;
  font-weight: 600;
}

/* Warning Section */
.submission-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: #856404;
  font-size: 0.9rem;
}

.submission-warning i {
  color: #f39c12;
  font-size: 1.1rem;
}

/* Progress Bar */
.submission-progress {
  margin-top: 1rem;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(45deg, #28a745, #20c997);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.progress-text {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* Success State */
.submission-overlay.success .submission-card {
  border-top: 5px solid #28a745;
}

.submission-overlay.success .upload-icon {
  animation: success-bounce 0.6s ease-out;
}

/* Keyframe Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes circle-progress {
  0% { stroke-dashoffset: 283; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 283; }
}

@keyframes arrow-draw {
  0% { stroke-dashoffset: 60; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 60; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes checkmark-appear {
  0% { opacity: 0; transform: scale(0) rotate(180deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes circle-fill {
  0% { stroke-dashoffset: 166; }
  100% { stroke-dashoffset: 0; }
}

@keyframes check-draw {
  0% { stroke-dashoffset: 48; }
  100% { stroke-dashoffset: 0; }
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes success-bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .submission-card {
    padding: 2rem 1.5rem;
    max-width: 95%;
  }
  
  .submission-animation {
    height: 100px;
  }
  
  .upload-icon {
    width: 60px;
    height: 60px;
  }
  
  .checkmarks-container {
    right: -20px;
  }
  
  .checkmark {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   TAGS MULTI-SELECT FOR JOB APPLICATION
   ============================================ */

.tags-multiselect-wrapper {
    position: relative;
    width: 100%;
}

/* Selected tags container */
.selected-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 0;
}

.selected-tags-container:empty {
    display: none;
}

/* Selected tag chip */
.selected-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    background: var(--accent-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: tagAppear 0.2s ease-out;
}

.selected-tag-chip.custom-tag {
    background: linear-gradient(135deg, #6f42c1, #9b59b6);
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.selected-tag-chip .tag-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s;
}

.selected-tag-chip .tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dropdown trigger */
.tags-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 0.5rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tags-dropdown-trigger:hover {
    border-color: var(--accent-color);
}

.tags-dropdown-trigger.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.tags-dropdown-trigger .placeholder-text {
    color: #6c757d;
    font-size: 0.95rem;
}

.tags-dropdown-trigger i {
    color: #6c757d;
    transition: transform 0.3s;
}

.tags-dropdown-trigger.active i {
    transform: rotate(180deg);
}

/* Dropdown menu */
.tags-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
    max-height: 400px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.tags-dropdown-menu.show {
    display: flex;
}

/* Search box */
.tags-search-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tags-search-box i {
    color: #6c757d;
    font-size: 1rem;
}

.tags-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    outline: none;
}

.tags-search-box input::placeholder {
    color: #adb5bd;
}

/* Add custom tag row */
.add-custom-tag-row {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #fff3cd;
}

.add-custom-tag-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px dashed #6f42c1;
    border-radius: 8px;
    background: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-custom-tag-btn:hover {
    background: rgba(111, 66, 193, 0.2);
    border-color: #6f42c1;
}

/* Tags list container */
.tags-list-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    max-height: 280px;
}

/* Category group */
.tags-category-group {
    margin-bottom: 1rem;
}

.tags-category-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.tags-category-header .category-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* Tag item in dropdown */
.tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    margin-bottom: 2px;
}

.tag-item:hover {
    background: #f1f3f5;
}

.tag-item.selected {
    background: rgba(40, 167, 69, 0.1);
}

.tag-item .tag-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ced4da;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tag-item.selected .tag-checkbox {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.tag-item.selected .tag-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
}

.tag-item .tag-color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-item .tag-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

/* Dropdown footer */
.tags-dropdown-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    text-align: center;
}

/* No results message */
.no-tags-message {
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
}

.no-tags-message i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .tags-dropdown-menu {
        max-height: 300px;
    }
    
    .tags-list-container {
        max-height: 200px;
    }
}