.card  {
    border: 2px solid #dee2e6;
    background-color: #313043;
}


.service-card {
    height: 100%;
    transition: transform 0.2s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.category-nav .list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}
.category-nav .list-group-item:first-child {
    border-top: none;
}
.category-nav .list-group-item.active {
    background-color: #007bff;
    border-color: #007bff;
}
.category-link {
    color: inherit;
    text-decoration: none;
    display: block;
    padding-right: 10px;
}
.category-link:hover {
    text-decoration: none;
    color: inherit;
}
.active .category-link {
    color: white;
}
.toggle-icon {
    cursor: pointer;
    transition: transform 0.3s;
    display: inline-block;
    width: 20px;
    text-align: center;
}
.toggle-icon.open {
    transform: rotate(180deg);
}
.subcategory {
    padding-left: 2rem !important;
    background-color: #f8f9fa;
}
.subcategory.active {
    background-color: #007bff !important;
    color: white !important;
}

/* List view styles */
.service-list-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.service-list-item:last-child {
    border-bottom: none;
}
.view-mode-toggle .btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.category-description {
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

.category-description .card-body {
    font-size: 1.1rem;
    line-height: 1.6;
}

.unavailable-message {
    background-color: #fff3cd;
    border-radius: 4px;
    padding: 0;
    overflow: hidden;
    flex-grow: 1;
    margin-right: 15px;
    max-width: 80%;
}

.unavailable-content {
    display: flex;
    align-items: center;
}

.unavailable-icon {
    background-color: #ffeeba;
    color: #856404;
    padding: 0.5rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unavailable-text {
    padding: 0.5rem;
    color: #856404;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-index h1 {
        font-size: 1.8rem;
    }
    
    .category-description .card-body {
        font-size: 1rem;
    }
    
    .unavailable-content {
        flex-direction: row;
        align-items: center;
    }
    
    .unavailable-icon {
        padding: 0.5rem;
        width: auto;
    }
    
    .unavailable-text {
        padding: 0.5rem;
    }
    
    /* Скрытие переключателя вида на мобильных */
    .view-mode-toggle {
        display: none;
    }
}

/* Правило для современных браузеров */
.link-input::placeholder {
    color: #a0a0a0; /* Задайте нужный цвет */
    opacity: 1;     /* Устанавливаем непрозрачность, если нужно */
  }
  
  /* Правило для Chrome, Safari, Opera (старые версии) */
  .link-input::-webkit-input-placeholder {
    color: #a0a0a0;
  }
  
  /* Правила для Internet Explorer 10-11, Edge до 2020 */
  .link-input:-ms-input-placeholder {
    color: #a0a0a0;
  }
  .link-input::-ms-input-placeholder {
    color: #a0a0a0;
  }