/* Reset basic styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  min-height: 100vh;
  background: linear-gradient(135deg, #232946 0%, #43e6d6 100%);
  color: #e9e9f0;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #161b29;
  padding-top: 3rem;
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  border-top-right-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow:
    4px 0 28px rgba(67, 230, 214, 0.09),
    0 4px 16px rgba(90, 24, 154, 0.09);
  transition: transform 0.35s cubic-bezier(0.4, 0.1, 0.2, 1);
  z-index: 1000;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar h1 {
  color: #43e6d6;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
  margin-bottom: 2.5rem;
  user-select: none;
  text-shadow: 0 2px 10px #23294633;
}

.sidebar a {
  display: block;
  padding: 1.15rem 2rem;
  margin: 0.2rem 0 0.2rem 0;
  font-size: 1.13rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #c7d4e5;
  text-decoration: none;
  border-left: 4px solid transparent;
  border-radius: 12px 0 0 12px;
  transition: background 0.25s, color 0.25s, border-left-color 0.25s;
}

.sidebar a:hover,
.sidebar a.active {
  background: linear-gradient(90deg, #43e6d6 0%, #7c3aed 80%);
  color: #232946;
  border-left-color: #43e6d6;
  box-shadow: 0 2px 8px #43e6d634;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  position: fixed;
  top: 1.3rem;
  left: 1.3rem;
  width: 38px;
  height: 38px;
  background: rgba(22, 27, 41, 0.92);
  border-radius: 50%;
  box-shadow: 0 4px 18px #43e6d634;
  cursor: pointer;
  z-index: 1100;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: none;
  outline: none;
  transition: background 0.25s, box-shadow 0.25s;
}

.hamburger:focus {
  outline: 2px solid #43e6d6;
  outline-offset: 2px;
}

.hamburger span {
  width: 22px;
  height: 3.5px;
  margin: 2.5px 0;
  background: #43e6d6;
  border-radius: 2.5px;
  transition: all 0.35s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.hamburger.open {
  background: #43e6d6;
  box-shadow: 0 8px 32px #43e6d634;
}

.hamburger.open span {
  background: #232946;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Main Content */
.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  padding: 3rem;
  background: linear-gradient(120deg, #232946 60%, #232946 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 0;
  transition: margin-left 0.35s cubic-bezier(0.4, 0.1, 0.2, 1), padding 0.3s ease;
}

.main-content.expanded {
  margin-left: 0;
  width: 100%;
  padding: 3rem 1.5rem 4rem 1.5rem;
}

/* Header */
.header {
  width: 100%;
  max-width: 700px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(90deg, #43e6d6 0%, #7c3aed 100%);
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(67, 230, 214, 0.14), 0 2px 10px #7c3aed22;
  color: #232946;
  font-weight: 800;
  font-size: 2.1rem;
  letter-spacing: 1.5px;
  text-align: center;
  user-select: none;
  text-shadow: 0 1px 8px #23294611;
}

/* Form Container */
.container {
  max-width: 700px;
  width: 100%;
  padding: 3rem;
  background: #232946;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(67, 230, 214, 0.13), 0 4px 24px #7c3aed1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0.1, 0.2, 1);
}

.container:hover {
  box-shadow: 0 18px 60px #43e6d622, 0 2px 16px #7c3aed22;
}

.container h2 {
  font-size: 1.75rem;
  color: #43e6d6;
  margin-bottom: 2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  user-select: none;
  text-shadow: 0 2px 8px #23294633;
}

/* Inputs & Textareas */
input,
textarea {
  width: 100%;
  padding: 1.15rem 1.4rem;
  margin: 1rem 0 1.5rem;
  border-radius: 16px;
  border: 2px solid #3d3d5c;
  background-color: #1a1f32;
  color: #e9e9f0;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 2px 16px #43e6d605;
  font-family: 'Inter', sans-serif;
  resize: vertical;
  min-height: 120px;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

input[type="date"] {
  min-height: 48px;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  color-scheme: dark;
}

input:focus,
textarea:focus {
  border-color: #43e6d6;
  background-color: #232946;
  box-shadow: 0 0 12px #43e6d655;
  outline: 2px solid #43e6d6;
  outline-offset: 1px;
}

::placeholder {
  color: #8ca5b8;
  font-weight: 400;
  font-style: italic;
  opacity: 1;
  letter-spacing: 0.01em;
}

/* Buttons */
button {
  width: 100%;
  padding: 1.25rem;
  border: none;
  border-radius: 16px;
  background: linear-gradient(90deg, #43e6d6 0%, #7c3aed 100%);
  color: #232946;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px #43e6d634, 0 2px 8px #7c3aed22;
  letter-spacing: 0.05em;
  user-select: none;
  outline: none;
  transition: background 0.35s, color 0.2s, box-shadow 0.35s, transform 0.15s;
}

button:hover,
button:focus {
  background: linear-gradient(90deg, #7c3aed 0%, #43e6d6 100%);
  color: #e9e9f0;
  box-shadow: 0 12px 32px #7c3aed55, 0 6px 18px #43e6d655;
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px #7c3aed33, 0 2px 10px #43e6d633;
}

button:disabled {
  background: #6a6a6a;
  cursor: not-allowed;
  box-shadow: none;
  color: #c1c1c1;
  transform: none;
}

/* Output message container */
#output {
  margin-top: 1rem;
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  background: #1a1f32;
  color: #43e6d6;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  box-shadow: inset 0 0 8px #43e6d655;
  user-select: text;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 220px;
  }

  .main-content {
    margin-left: 220px;
    width: calc(100% - 220px);
  }
}

@media (max-width: 720px) {
  body {
    background: #232946;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0.1, 0.2, 1);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 2rem 1rem 4rem;
  }
}
