/* ============================================= */
/* Sticker Cropper - Clean 1920x1080 Layout      */
/* No scrolling • Neat & Balanced                */
/* ============================================= */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* Base */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #09090b;
  color: #f1f5f9;
  overflow: hidden;
  height: 100vh;
}

.app-wrapper {
  max-width: 1920px;
  max-height: 1080px;
  margin: 0 auto;
  height: 100vh;
  overflow: hidden;
  background-color: #09090b;
}

/* Header */
header {
  height: 64px;
  background-color: #18181b;
  border-bottom: 1px solid #27272a;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
}

/* Main Grid */
.main-content {
  flex: 1;
  padding: 2rem 2.5rem;
  display: grid;
  grid-template-columns: 7.5fr 4.5fr;
  gap: 2rem;
  overflow: hidden;
}

/* Left Side - Cropper */
.crop-area {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}

.crop-container {
  flex: 1;
  background-color: #18181b;
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

#crop-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Action Buttons */
.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.action-buttons button {
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.action-buttons button:hover {
  transform: translateY(-2px);
}

/* Right Sidebar - Compact & No Scroll */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  height: 100%;
  overflow: hidden;
}

/* Cards */
.card {
  background-color: #18181b;
  border-radius: 18px;
  padding: 1.25rem;
}

/* Preset Info */
#preset-name {
  font-size: 1.35rem;
  line-height: 1.2;
}

#preset-dimensions {
  font-size: 0.95rem;
  color: #a1a1aa;
}

/* DPI */
#dpi-options {
  gap: 0.75rem;
}

.dpi-btn {
  padding: 0.85rem 0.5rem;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.dpi-btn:hover {
  background-color: #27272a;
}

.dpi-btn.active {
  border-color: #4ade80;
  background-color: #18181b;
  color: #a3e6bb;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

/* Preview */
.preview-area {
  flex: 1;
  background-color: #18181b;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.preview-area h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

#preview-canvas {
  max-height: 100%;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

/* Live Dimensions */
.live-dimensions {
  background-color: #18181b;
  border-radius: 18px;
  padding: 1.25rem;
}

.live-dimensions h3 {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.live-dimensions input {
  background-color: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.live-dimensions input:focus {
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

/* Upload Area */
#upload-area {
  border: 3px dashed #3f3f46;
  border-radius: 24px;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#upload-area:hover {
  border-color: #4ade80;
  background-color: rgba(16, 185, 129, 0.05);
}

/* Modals */
.modal {
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Small adjustments for perfect fit */
@media (max-width: 1680px) {
  .main-content {
    gap: 1.5rem;
  }
}