:root {
  --blue: #0044b1;
  --blue-dark: #002d73;
  --white: #ffffff;
  --grey: #f3f5f8;
  --black1: #1a1a1a;
  --black2: #8a8a8a;
  --orange: #F28500;
  --radius: 10px;
  --soft-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --soft-shadow-hover: 0 15px 40px rgba(0,0,0,0.12);
}

* {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--grey);
  color: var(--black1);
}

/* =======================
   TOP BAR
======================= */

.title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), #ff9c2b);
  color: white;
  font-size: 1.5rem;
  padding: 12px;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.title span {
  font-weight: 600;
  letter-spacing: 0.4px;
}

.title button {
  position: absolute;
  left: 20px;
}

.hamburger {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hamburger:hover {
  transform: scale(1.1);
}

/* =======================
   NAVIGATION
======================= */

.navigation {
  width: 250px;
  background: linear-gradient(180deg, var(--blue), var(--blue-dark));
  color: white;
  position: fixed;
  top: 48px;
  bottom: 0;
  overflow-y: auto;
  transition: all 0.4s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.navigation.collapsed {
  width: 60px;
}

.navigation ul {
  list-style: none;
  padding: 10px 0;
  margin: 0;
}

.navigation li {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  border-radius: 8px;
  margin: 4px 10px;
}

.navigation li:hover {
  background: rgba(255,255,255,0.12);
  transform: translateX(4px);
}

.navigation a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  font-size: 0.95rem;
}

.navigation.collapsed li span {
  display: none;
}

/* =======================
   OVERLAY
======================= */

.nav-overlay {
  display: none;
}

/* =======================
   FORM AREA
======================= */

.form-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 20px 40px;
  margin-left: 250px;
  background: linear-gradient(180deg, #f4f6fb, #eef1f7);
}

.form-wrapper {
  width: 100%;
  max-width: 700px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  padding: 35px;
  transition: box-shadow 0.3s ease;
}

.form-wrapper:hover {
  box-shadow: var(--soft-shadow-hover);
}

/* =======================
   FORM ELEMENTS
======================= */

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field-container {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--black1);
}

input, select,
.select2-container--default .select2-selection--single {
  padding: 12px 14px;
  font-size: 0.95rem;
  border: 1px solid #d6d9df;
  border-radius: 8px;
  background: #fafbfc;
  transition: all 0.25s ease;
}

input:focus, select:focus,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--blue);
  background: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,68,177,0.12);
}

span.select2-selection.select2-selection--single {
  height: 46px;
  display: flex;
  align-items: center;
}

/* Container must match input width */
.select2-container {
  width: 100% !important;
}

/* Main visible box */
.select2-container--default .select2-selection--single {
  height: 46px !important;
  background: #fafbfc !important;
  border: 1px solid #d6d9df !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
}

/* Selected text */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--black1) !important;
  line-height: 46px !important;
  padding-left: 0 !important;
}

/* Dropdown arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px !important;
}

/* Focus (same as input focus) */
.select2-container--default.select2-container--focus .select2-selection--single {
  background: white !important;
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 3px rgba(0,68,177,0.12) !important;
}

/* =======================
   BUTTON
======================= */

.button-save {
  margin-top: 20px;
}

.button-save button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), #0b63ff);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.4px;
}

.button-save button:hover {
  background: linear-gradient(135deg, var(--orange), #ff9a2e);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(242,133,0,0.4);
}

/* =======================
   REQUIRED STAR
======================= */

.form-field-container label span {
  color: #ff3b3b;
}

/* =======================
   MOBILE
======================= */

@media (max-width: 768px) {
  .form-container {
    margin-left: 0;
    padding-top: 80px;
  }

  .navigation {
    left: -100%;
    width: 70%;
    height: 100%;
    z-index: 15;
    transition: left 0.3s ease;
  }

  .navigation.expanded {
    left: 0;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 14;
    opacity: 0;
    pointer-events: none;
    transition: all;
  }

  .nav-overlay.active {
    left: 0;
    opacity: 1;
    pointer-events: auto;
  }

  .form-wrapper {
    padding: 25px;
  }

  .title span {
    font-size: 1.2rem;
  }
}

@media (min-width: 480px) {
  .form-wrapper {
    padding: 25px;
  }

  input, select {
    font-size: 0.95rem;
  }
}
