/* Rotate Tool Styles */

.rotate-upload-area {
  border: 2px dashed #ccc;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
  margin-top: 20px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}

.rotate-upload-area:hover {
  border-color: var(--primary-color);
}

.rotate-upload-area input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.rotate-workspace {
  margin-top: 30px;
}

.rotate-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.page-card {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.3s ease;
}

.page-preview {
  width: 150px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background: white;
}

.page-info {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.page-actions {
  display: flex;
  gap: 8px;
}

.rotate-btn {
  background: white;
  border: 1px solid #ddd;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.rotate-btn:hover {
  background: #eee;
}

.rotate-actions {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
