/* Дополнительные стили для страницы отчетов */
.report-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
  }
  
  .report-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  }
  
  .report-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-right: 20px;
    flex-shrink: 0;
  }
  
  .report-icon.pdf {
    background: linear-gradient(135deg, #dc3545, #f56565);
  }
  
  .report-icon.word {
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
  }
  
  .report-icon.excel {
    background: linear-gradient(135deg, #107c41, #0b5e30);
  }
  
  .report-icon.csv {
    background: linear-gradient(135deg, #217346, #134c2d);
  }
  
  .report-icon.txt {
    background: linear-gradient(135deg, #495057, #343a40);
  }
  
  .report-icon.text {
    background: linear-gradient(135deg, #198754, #10b981);
  }
  
  .report-icon.photos {
    background: linear-gradient(135deg, #fd7e14, #f59e0b);
  }
  
  .report-icon.mixed {
    background: linear-gradient(135deg, #6f42c1, #9333ea);
  }
  
  .report-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
  }
  
  .report-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .report-description {
    color: #6c757d;
    margin-bottom: 15px;
  }
  
  .report-action {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--accent-color);
    transition: all 0.3s ease;
    margin-right: 15px;
  }
  
  .report-action i {
    margin-right: 5px;
  }
  
  .report-action:hover {
    color: var(--primary-color);
  }
  
  .report-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
  }
  
  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .photo-item {
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .photo-item:hover img {
    transform: scale(1.05);
  }
  
  .photo-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
  }
  
  .photo-count i {
    margin-right: 5px;
  }
  
  .content-divider {
    margin: 15px 0;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
  }
  
  .file-name {
    font-size: 0.85rem;
    color: #6c757d;
    margin-left: 5px;
  }
  
  .modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid rgba(15, 76, 129, 0.1);
  }
  
  .modal-title {
    color: var(--accent-color);
    font-weight: 700;
  }
  
  .report-content-preview {
    max-height: 150px;
    overflow: hidden;
    position: relative;
  }
  
  .report-content-preview:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 50px;
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  }

  /* Стили для списка файлов */
  .files-list {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
  }

  .file-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
  }

  .file-icon {
    font-size: 1.4rem;
    margin-right: 12px;
    color: #6c757d;
  }

  .file-icon.pdf {
    color: #dc3545;
  }

  .file-icon.word {
    color: #0d6efd;
  }

  .file-icon.excel, .file-icon.csv {
    color: #198754;
  }

  .file-icon.txt {
    color: #495057;
  }

  .file-icon.image {
    color: #6f42c1;
  }

  .file-icon.video {
    color: #fd7e14;
  }

  .file-icon.audio {
    color: #20c997;
  }

  .file-info {
    flex-grow: 1;
  }

  .file-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 3px;
  }

  .file-description {
    font-size: 0.8rem;
    color: #6c757d;
  }

  .file-size {
    font-size: 0.75rem;
    color: #888;
    margin-left: 10px;
  }

  .file-download {
    margin-left: 10px;
    color: var(--accent-color);
    transition: all 0.2s ease;
  }

  .file-download:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
  }

  /* Стили для модального окна со списком файлов */
  .file-modal-list {
    margin-top: 20px;
  }

  .file-modal-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
  }

  .file-modal-item:hover {
    background-color: #e9ecef;
  }

  .file-modal-icon {
    font-size: 2rem;
    margin-right: 15px;
  }

  .file-modal-info {
    flex-grow: 1;
  }

  .file-modal-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 5px;
  }

  .file-modal-description {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
  }

  .file-modal-details {
    font-size: 0.8rem;
    color: #888;
  }

  .file-modal-download {
    margin-left: 15px;
  }
  
  /* Mobile Enhancements for Reports Page */
  /* Base improvements for all screen sizes */
  .report-card {
    display: flex;
    flex-direction: column;
  }

  .report-icon {
    transition: all 0.3s ease;
  }

  .report-content-preview {
    max-height: 120px;
  }

  .file-download {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
  }

  .report-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* Tablet and smaller screens */
  @media (max-width: 991px) {
    .report-card .d-flex {
      flex-direction: column;
    }
    
    .report-icon {
      width: 50px;
      height: 50px;
      font-size: 1.5rem;
      margin-bottom: 15px;
      margin-right: 0;
    }
    
    .report-title {
      font-size: 1.2rem;
      margin-top: 5px;
    }
    
    .photo-grid {
      grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .photo-item {
      height: 80px;
    }
  }

  /* Mobile specific styles */
  @media (max-width: 767px) {
    .section-title {
      font-size: 1.5rem;
    }
    
    .report-card {
      padding: 15px !important;
    }
    
    .report-card .p-4 {
      padding: 0 !important;
    }
    
    .report-icon {
      margin: 0 auto 15px;
      width: 60px;
      height: 60px;
    }
    
    .report-title {
      text-align: center;
      font-size: 1.1rem;
    }
    
    .report-date {
      text-align: center;
      margin-bottom: 10px;
    }
    
    .report-description {
      text-align: center;
    }
    
    .photo-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
    
    .photo-item {
      height: 120px;
    }
    
    .file-item {
      padding: 12px;
      margin-bottom: 10px;
    }
    
    .file-icon {
      font-size: 1.6rem;
    }
    
    .report-actions {
      justify-content: center;
      margin-top: 20px;
    }
    
    .report-action {
      padding: 8px 15px;
      background-color: var(--light-bg);
      border-radius: 50px;
      margin: 5px;
      font-size: 0.9rem;
    }
    
    .file-download {
      width: 40px;
      height: 40px;
    }
    
    /* Modal improvements */
    .modal-header {
      padding: 15px;
    }
    
    .modal-title {
      font-size: 1.1rem;
    }
    
    .modal-body {
      padding: 15px;
    }
    
    .carousel-item img {
      border-radius: 8px;
    }
    
    .file-modal-item {
      flex-direction: column;
      align-items: flex-start;
      padding: 15px;
    }
    
    .file-modal-icon {
      margin-bottom: 10px;
      margin-right: 0;
    }
    
    .file-modal-info {
      margin-bottom: 10px;
      width: 100%;
    }
    
    .file-modal-download {
      width: 100%;
      margin-left: 0;
    }
    
    .file-modal-download .btn {
      width: 100%;
    }
    
    /* Pagination adjustments */
    .pagination .page-link {
      width: 35px;
      height: 35px;
      font-size: 0.9rem;
    }
    
    /* Additional styles for very small screens */
    @media (max-width: 375px) {
      .photo-grid {
        grid-template-columns: 1fr;
      }
      
      .photo-item {
        height: 180px;
      }
      
      .report-action {
        width: 100%;
        text-align: center;
        justify-content: center;
        margin: 5px 0;
      }
    }
  }
</style>