
/* =============== ФОРМА ЗАГРУЗКИ =============== */
#add-form .form-group {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

#add-form .form-group .form-label {
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #495057;
  display: block;
}

#add-form .form-group .form-control {
  flex-grow: 0;
  width: 100%;
  height: 40px;
  line-height: 1.5;
  padding: 0.375rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 1rem;
  color: #212529;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

#add-form .form-group .form-control:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#add-form .form-group .form-text {
  flex-shrink: 0;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

#add-form .col-md-3 .d-flex {
  height: 100%;
  min-height: calc(100% - 24px);
}

/* Обеспечиваем одинаковую высоту всех полей */
#add-form .row {
  align-items: stretch;
  margin-bottom: 0;
}

/* =============== BOOTSTRAP DROPDOWN КАК SELECT =============== */
#add-form .category-dropdown-wrapper {
  width: 100%;
  height: 40px;
}

#add-form .category-dropdown-wrapper .dropdown-toggle {
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.375rem 0.75rem;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  color: #212529;
  font-size: 1rem;
  transition: all 0.2s ease;
}

#add-form .category-dropdown-wrapper .dropdown-toggle:hover {
  background-color: #f8f9fa;
  border-color: #b6d4fe;
}

#add-form .category-dropdown-wrapper .dropdown-toggle:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#add-form .category-dropdown-wrapper .dropdown-toggle::after {
  margin-left: 0.5rem;
  vertical-align: middle;
  border-top-color: #495057;
}

#add-form .category-dropdown-wrapper .dropdown-toggle.show::after {
  border-top-color: #e72254;
  transform: rotate(180deg);
}

#add-form .category-dropdown-wrapper .dropdown-menu {
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 0.25rem;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#add-form .category-dropdown-wrapper .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #212529;
  white-space: normal;
  word-wrap: break-word;
  border-bottom: 1px solid #f8f9fa;
}

#add-form .category-dropdown-wrapper .dropdown-item:last-child {
  border-bottom: none;
}

#add-form .category-dropdown-wrapper .dropdown-item:hover {
  background-color: #f8f9fa;
  color: #e72254;
}

#add-form .category-dropdown-wrapper .dropdown-item.active,
#add-form .category-dropdown-wrapper .dropdown-item:active {
  background-color: #e72254;
  color: white;
}

#add-form .category-dropdown-wrapper .dropdown-item.selected {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #e72254;
}

/* Стили для выбранного значения */
#selected-category-display {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #495057;
}

#selected-category-display.placeholder {
  color: #6c757d;
  font-style: italic;
}

/* Мобильная версия */
@media (max-width: 768px) {
  #add-form .category-dropdown-wrapper {
    height: 38px;
  }
  
  #add-form .category-dropdown-wrapper .dropdown-toggle {
    padding: 0.375rem 0.75rem;
    font-size: 16px;
  }
  
  #add-form .category-dropdown-wrapper .dropdown-menu {
    max-height: 250px;
  }
}

/* =============== КНОПКИ =============== */
/* Основная кнопка загрузки - цвет #e72254 */
#add-batch-btn {
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e72254 !important;
  border-color: #e72254 !important;
  color: white !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

#add-batch-btn:hover {
  background-color: #d41c4a !important;
  border-color: #d41c4a !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 34, 84, 0.3);
}

#add-batch-btn:active {
  background-color: #c11842 !important;
  border-color: #c11842 !important;
  transform: translateY(0);
}

#add-batch-btn:focus {
  background-color: #e72254 !important;
  border-color: #e72254 !important;
  box-shadow: 0 0 0 0.25rem rgba(231, 34, 84, 0.5) !important;
}

#add-batch-btn:disabled {
  background-color: #e72254 !important;
  border-color: #e72254 !important;
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#add-batch-btn.btn-success {
  background-color: #e72254 !important;
  border-color: #e72254 !important;
}

#add-batch-btn.btn-secondary {
  background-color: #e72254 !important;
  border-color: #e72254 !important;
  opacity: 0.6;
}

#cancel-batch-btn {
  width: 100%;
  height: 40px;
  background-color: transparent;
  border-color: #6c757d;
  color: #6c757d;
  transition: all 0.3s ease;
}

#cancel-batch-btn:hover {
  background-color: #f8f9fa;
  border-color: #e72254;
  color: #e72254;
}

/* Мобильная версия */
@media (max-width: 768px) {
  #add-form .form-group {
    height: auto;
    margin-bottom: 1rem;
  }
  
  #add-form .col-md-3 .d-flex {
    height: auto;
    margin-top: 0;
  }
  
  #add-form .col-md-3 {
    margin-bottom: 1rem;
  }
  
  #add-form .form-control {
    height: 38px;
  }
  
  #add-batch-btn,
  #cancel-batch-btn {
    height: 38px;
  }
}

/* =============== DRAG & DROP ЗОНА =============== */
#drop-zone {
  border: 3px dashed #dee2e6;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #f8f9fa;
  margin-bottom: 30px;
  position: relative;
}

#drop-zone:hover {
  border-color: #e72254;
  background-color: #fff9fa;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 34, 84, 0.1);
}

#drop-zone.dragover {
  border-color: #e72254;
  background-color: #fff5f8;
  transform: scale(1.02);
}

#drop-zone i {
  font-size: 64px;
  color: #e72254;
  margin-bottom: 20px;
  display: block;
  transition: transform 0.3s ease;
}

#drop-zone.dragover i {
  transform: scale(1.1);
}

#drop-zone p {
  font-size: 16px;
  color: #6c757d;
  margin: 10px 0 0;
}

#drop-zone p strong {
  color: #495057;
  font-weight: 600;
}

#drop-zone .subtext {
  font-size: 14px;
  color: #adb5bd;
  margin-top: 8px;
}

/* =============== ПРЕДПРОСМОТР ФОТО =============== */
#preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 25px;
  justify-content: center;
  min-height: 60px;
}

.preview-item {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.preview-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-item .preview-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 10px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.remove-preview {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(231, 34, 84, 0.95);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.remove-preview:hover {
  background: #d41c4a;
  transform: scale(1.1);
}

/* =============== ПРОГРЕСС БАР =============== */
#upload-progress {
  margin-top: 25px;
  display: none;
}

#upload-progress.show {
  display: block;
}

.progress {
  height: 28px;
  border-radius: 14px;
  background-color: #f1f3f5;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #e72254, #ff6b9d);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.4s ease;
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 40px 40px;
}

/* =============== АДАПТИВНОСТЬ =============== */
@media (max-width: 768px) {
  #drop-zone {
    padding: 30px 20px;
  }

  #drop-zone i {
    font-size: 48px;
  }

  .preview-item {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 576px) {
  #drop-zone {
    padding: 25px 15px;
  }

  .preview-item {
    width: 120px;
    height: 120px;
  }

  .remove-preview {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}

/* =============== ОБЩИЕ СТИЛИ ФОРМ =============== */
.category-select-container {
  width: 100%;
}

/* Для мобильных устройств - общие стили */
@media (max-width: 768px) {
  .col-md-3, .col-md-2 {
    margin-bottom: 1rem;
  }
  
  .d-flex.gap-2 {
    width: 100%;
  }
}

/* УДАЛЯЕМ ВСЕ СТАРЫЕ СТИЛИ ДЛЯ КАСТОМНОГО SELECT */
.custom-select-wrapper,
.custom-select-arrow,
#add-form #batch-category.form-select {
  display: none !important;
}
/* Видео секция полной ширины */
.rr-video-fullwidth {
    overflow: hidden;
}

/* Полноэкранный видео блок */
.rr-video-hero {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0;
}

.rr-video-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.rr-video-title-box {
    max-width: 500px;
}

.rr-video-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
}

.rr-video-subtitle {
    color: #e72254;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rr-video-description {
    color: rgba(255,255,255,0.8);
    font-size: 18px;
    line-height: 1.6;
}

/* Кнопка воспроизведения */
.video-play-btn-large {
    width: 120px;
    height: 120px;
    background: rgba(231, 34, 84, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    transition: all 0.3s ease;
    border: 4px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.video-play-btn-large:hover {
    background: #e72254;
    transform: scale(1.1);
    border-color: rgba(255,255,255,0.4);
}

.video-play-btn-large i {
    margin-left: 5px;
}

/* Карточки видео */
.rr-video-card {
    transition: all 0.3s ease;
    height: 100%;
}

.rr-video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.video-card-img {
    height: 200px;
    position: relative;
}

.video-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.rr-video-card:hover .video-card-img img {
    transform: scale(1.1);
}

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(231, 34, 84, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    opacity: 0;
}

.video-card-img:hover .video-card-play {
    opacity: 1;
}

.video-card-play:hover {
    background: #e72254;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    font-size: 12px;
    font-weight: 500;
}

.video-card-content h6 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    margin-bottom: 5px;
}

/* Адаптивность */
@media (max-width: 1199px) {
    .rr-video-title {
        font-size: 36px;
    }
    
    .video-card-img {
        height: 180px;
    }
}

@media (max-width: 991px) {
    .rr-video-content {
        min-height: 400px;
        padding: 40px 30px !important;
    }
    
    .rr-video-preview {
        min-height: 400px !important;
    }
    
    .rr-video-title {
        font-size: 32px;
    }
    
    .video-play-btn-large {
        width: 100px;
        height: 100px;
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .rr-video-fullwidth {
        padding-top: 60px !important;
        padding-bottom: 60px !important;
    }
    
    .rr-video-hero .row {
        flex-direction: column;
    }
    
    .rr-video-content {
        min-height: 350px;
        text-align: center;
    }
    
    .rr-video-preview {
        min-height: 300px !important;
    }
    
    .rr-video-title {
        font-size: 28px;
    }
    
    .video-play-btn-large {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .rr-video-title {
        font-size: 24px;
    }
    
    .video-card-img {
        height: 160px;
    }
    
    .video-card-play {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .video-duration {
        font-size: 10px;
        padding: 2px 6px !important;
        margin: 10px !important;
    }
}
