/* Denly Dark Theme */

:root {
  --bg: #0b0f12;
  --panel: #0f1416;
  --muted: #9aa4ad;
  --accent: #6ee7b7;
  --glass: rgba(255,255,255,0.03);
}

/* Reset and base styles */
* {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}
 
body {
  background: linear-gradient(180deg, #0b0f12 0%, #071018 50%, #0a0d10 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-attachment: fixed;
  color: #e6eef3;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 50%, rgba(110, 231, 183, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(110, 231, 183, 0.02) 0%, transparent 50%),
              radial-gradient(circle at 40% 0%, rgba(110, 231, 183, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #e6eef3;
  font-weight: 600;
}

p, li, span {
  color: #e6eef3;
}

code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Layout */
.app {
  max-width: 880px;
  margin: 48px auto;
  padding: 24px;
}

@media (max-width: 600px) {
  .app {
    margin: 20px;
    padding: 14px;
  }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 48px;
  height: 48px;
}

.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 0.9rem;
}

/* Card / Panel */
.card {
  margin-top: 22px;
  background: var(--panel);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(2,6,10,0.6);
}

/* Form Label / File Input */
.fileLabel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 10px;
  background: var(--glass);
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
}

.fileLabel input {
  display: none;
}

.fileLabel span {
  color: var(--muted);
}

/* Image Preview */
.preview {
  margin-top: 12px;
}

.preview img {
  max-width: 96px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
}

/* Buttons */
.btn {
  background: linear-gradient(180deg, #1f2a2a, #142222);
  color: #dff8f0;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1em;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn:active {
  opacity: 0.8;
}

.btn.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
}

.btn.ghost:hover {
  background: var(--glass);
}

/* Message / Alert Area */
.message {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Glass effect */
.glass {
  background: var(--glass);
  backdrop-filter: blur(8px);
}

/* Borders */
.border {
  border-color: rgba(255,255,255,0.04);
}

/* Text utilities */
.text-muted {
  color: var(--muted);
}

.text-secondary {
  color: #9aa4ad;
  font-size: 0.9rem;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
  background: var(--panel);
  color: #e6eef3;
  border: 1px solid rgba(255,255,255,0.04);
  padding: 10px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1em;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

label {
  display: block;
  margin-bottom: 6px;
  color: #e6eef3;
  font-weight: 500;
}

/* Icon utilities */
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
