.file-info {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.file-details {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-icon {
  font-size: 3rem;
  color: var(--primary-color);
}

.file-text h3 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.password-protected {
  color: #dc3545;
  font-weight: 600;
  background: rgba(220, 53, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.privacy-public {
  color: #28a745;
  font-weight: 600;
  background: rgba(40, 167, 69, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.privacy-private {
  color: #ffc107;
  font-weight: 600;
  background: rgba(255, 193, 7, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.password-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.password-form .form-group {
  margin-bottom: 1rem;
}

.password-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  background: white;
  transition: border-color 0.2s;
}

.password-form .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.1);
}

.doc-alternative {
  text-align: center;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  border: 2px dashed var(--border-color);
}

.doc-alternative p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Countdown Timer Styles */
.countdown-container {
  text-align: center;
  padding: 2rem;
}

.countdown-timer {
  margin-bottom: 1rem;
}

.countdown-timer span {
  font-size: 4rem;
  font-weight: bold;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse 1s infinite;
}

.countdown-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.media-preview {
  text-align: center;
  margin: 1.5rem 0;
}

.preview-image {
  max-width: 100%;
  max-height: 600px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-md);
}

.audio-player, .video-player {
  width: 100%;
  max-width: 600px;
  border-radius: 0.5rem;
}

.pdf-viewer, .office-viewer {
  width: 100%;
  height: 600px;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.text-viewer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: left;
  max-height: 600px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.loading {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
}

.media-actions, .file-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-url-container {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  padding: 1rem;
}

.share-url {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.share-url-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-family: monospace;
  font-size: 0.875rem;
  background: white;
}

@media (max-width: 768px) {
  .file-details {
    flex-direction: column;
    text-align: center;
  }
  
  .media-actions, .file-actions {
    flex-direction: column;
  }
  
  .share-url {
    flex-direction: column;
  }
  
  .pdf-viewer, .office-viewer {
    height: 400px;
  }
  
  .countdown-timer span {
    font-size: 3rem;
  }
}

.file-preview {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.file-icon {
    color: var(--primary-color);
    opacity: 0.8;
}

.file-info h4 {
    margin: 0 0 1rem 0;
    word-break: break-all;
}

.file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-secondary);
}

.video-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border-left: 4px solid #2196f3;
}

.video-notice i {
    color: #2196f3;
    font-size: 1.2rem;
    margin-top: 0.15rem;
}

.video-notice p {
    margin: 0;
    color: #1565c0;
    line-height: 1.5;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.media-preview {
    padding: 2rem;
    text-align: center;
}

.preview-image {
    max-width: 100%;
    max-height: 600px;
    border-radius: 0.5rem;
}

.audio-player,
.video-player,
.pdf-viewer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 0.5rem;
}

.video-player {
    max-height: 70vh;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.pdf-viewer {
    height: 800px;
}

.text-viewer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: left;
    max-height: 600px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.media-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.share-report-actions {
    text-align: right;
    margin-top: 1rem;
}

.is-hidden {
    display: none !important;
}

.unlock-button {
    margin-top: 0.5rem;
}

.media-error {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.preview-image-fallback {
    border: 1px solid #ddd;
    padding: 20px;
}

@media (max-width: 768px) {
    .file-preview {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .file-meta {
        justify-content: center;
    }
    
    .media-actions {
        flex-direction: column;
    }
    
    .pdf-viewer {
        height: 400px;
    }
}
