/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Import Geist and Poltawski Nowy fonts */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Poltawski+Nowy:wght@600;700&display=swap");

/* Design System Variables */
:root {
  /* Colors */
  --color-bg-primary: #121212;
  --color-bg-secondary: #242424;
  --color-fg-primary: #fdfdfd;
  --color-fg-secondary: #b5b5b5;
  --color-border: #696969;
  --color-border-input: dimgrey;
  --color-button-primary: #0b6e4f;
  --color-link: #5e85ff;
  --color-input-bg: rgba(253, 255, 254, 0.08);

  /* Status Colors */
  --color-status-success: #51e5b7;
  --color-status-error: #ee809b;
  --color-status-warning: #f99247;

  /* Typography */
  --font-body: "Geist", sans-serif;
  --font-heading: "Poltawski Nowy", serif;

  /* Spacing */
  --spacing-unit-100: 8px;
  --spacing-unit-200: 16px;
  --spacing-unit-300: 24px;
  --spacing-unit-500: 40px;
  --spacing-unit-800: 64px;

  /* Radius */
  --radius-medium: 8px;
  --radius-large: 16px;
}

/* Base Styles */
body {
  margin: 0px;
  font-family: var(--font-body);
}

/* Form Components */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-fg-secondary);
  margin: 0;
}

.form-input {
  background-color: var(--color-input-bg);
  border: 1px solid var(--color-border-input);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: white;
  width: 100%;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-link);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* Buttons */
.btn-primary {
  background-color: var(--color-button-primary);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.32px;
  color: var(--color-fg-primary);
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.btn-primary:hover {
  background-color: #0d8360;
}

.btn-primary:active {
  background-color: #095a42;
}

/* Links */
.form-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  color: var(--color-link);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.form-link:hover {
  text-decoration: underline;
}

/* Flash Messages */
.flash-alert {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
}

.flash-notice {
  color: #51cf66;
  background-color: rgba(81, 207, 102, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 14px;
}

/* Navbar */
.app-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

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

.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar-links {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-right: 24px;
}

.nav-button {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-fg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.32px;
  white-space: nowrap;
}

.nav-button:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* button_to generates a form, so we need to style it */
.nav-logout {
  background: none;
  border: none;
  cursor: pointer;
}

.nav-icon {
  width: 24px;
  height: 24px;
}

/* Confirmation Banner */
.confirmation-banner {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border-bottom: 2px solid #F59E0B;
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.confirmation-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.confirmation-banner-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #92400E;
  font-size: 0.875rem;
  font-weight: 500;
}

.confirmation-banner-icon {
  flex-shrink: 0;
  color: #F59E0B;
}

.confirmation-banner-button {
  background: #F59E0B;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.confirmation-banner-button:hover {
  background: #D97706;
}
