/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4a90e2;
  --primary-hover: #357abd;
  --secondary-color: #6c757d;
  --secondary-hover: #5a6268;
  --background: #1a1a1a;
  --surface: #2a2a2a;
  --surface-light: #3a3a3a;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border: #444444;
  --success: #28a745;
  --error: #dc3545;
  --warning: #ffc107;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  text-align: center;
  padding: 30px 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 30px;
}

.header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary-color), #63b3ed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Input Section */
.input-section {
  width: 100%;
}

.drop-zone {
  border: 3px dashed var(--border);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  background-color: var(--surface);
  cursor: pointer;
  transition: all 0.3s ease;
}

.drop-zone:hover {
  border-color: var(--primary-color);
  background-color: var(--surface-light);
}

.drop-zone.drag-over {
  border-color: var(--primary-color);
  background-color: var(--surface-light);
  transform: scale(1.02);
}

.drop-zone-content {
  pointer-events: none;
}

.upload-icon {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.drop-zone-text {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drop-zone-hint {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.drop-zone-warning {
  font-size: 0.8rem;
  color: #ff9800;
  margin-top: 10px;
}

/* Control Section */
.control-section {
  width: 100%;
}

/* Button Styles */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover:not(:disabled) {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

/* Preview Section */
.preview-section {
  width: 100%;
  margin-bottom: 30px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  border-top: 2px solid var(--border);
  margin-top: 30px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Status Message */
.status-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 24px;
  border-radius: 8px;
  background-color: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  max-width: 400px;
  transition: all 0.3s ease;
}

.status-message.hidden {
  display: none;
}

.status-message.success {
  background-color: var(--success);
  color: white;
}

.status-message.error {
  background-color: var(--error);
  color: white;
}

.status-message.warning {
  background-color: var(--warning);
  color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .drop-zone {
    padding: 40px 20px;
  }

  .container {
    padding: 15px;
  }
}
