html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* File Selected Area Styles */
.file-selected-area {
  background: #f8f9fa;
  border: 2px dashed #28a745;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
}

.file-selected-area .file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  gap: 15px;
}

.file-selected-area .file-icon {
  font-size: 2rem;
}

.file-selected-area .file-details h5 {
  margin: 0;
  color: #333;
  font-weight: 600;
}

.file-selected-area .file-details p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
}

.file-selected-area .btn {
  min-width: 150px;
}

/* Upload area improvements */
.upload-area .file-types {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: #6c757d;
  word-wrap: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
}

/* Tools info padding */
.tool-info {
  padding: 10px;
}

.tool-info .info-grid {
  padding: 10px;
}

.tool-info .info-card {
  padding: 10px;
}

/* PDF Merge file list styles */
.files-list {
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  cursor: move;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: #f8f9fa;
  border-color: #007bff;
}

.file-item.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-icon {
  font-size: 1.2rem;
}

.file-name {
  font-weight: 500;
  color: #333;
}

.file-size {
  color: #6c757d;
  font-size: 0.9rem;
}

.file-actions {
  display: flex;
  gap: 5px;
}

.merge-controls {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* PDF Compress additional styles */
.compression-info {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 15px;
}

.compression-info .info-card {
  background: white;
  border-radius: 5px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.compression-info h6 {
  color: #1976d2;
  margin-bottom: 10px;
}

.compression-info ul li {
  margin-bottom: 5px;
  color: #424242;
}

.compression-details {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
}

.detail-card {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 10px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-card strong {
  display: block;
  color: #495057;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.detail-card span {
  color: #007bff;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Options Grid Styles */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.option-group .form-control {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.option-group .form-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-group .form-check-input {
  margin: 0;
}

.option-group .form-check-label {
  margin: 0;
  font-weight: 500;
}