:root {
  --primary-bg-color: #2c3e50;
  --navy: #001d35;
  --med-gray: #5e5e5e;
  --lightish-gray: #5e5e5e;
  --light-gray: #bebebe;
  --bright-blue: #0b57d0;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

header,
footer {
  background-color: var(--primary-bg-color);
  color: white;
  min-height: 2rem;
}

header {
  display: flex;
  justify-content: space-between;
  padding: 2rem;
}

header h1 {
  all: unset;
  font-weight: 700;
  font-size: 3rem;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

nav a {
  all: unset;
  font-weight: 100;
  font-size: 1.3rem;
  cursor: pointer;
}

main {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0.5rem;
  padding: 1rem;
}

menu {
  background-color: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--light-gray);
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

menu h2 {
  color: rgb(62, 62, 62);
  font-weight: 500;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

menu ul {
  height: 100%;
  display: flex;
  flex-direction: column;
}

menu li {
  color: rgb(62, 62, 62);
  font-weight: 500;
  border-top: 1px solid var(--light-gray);
  padding: 5px 10px;
  font-size: 0.8rem;
}

menu li:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}

menu li:active {
  cursor: pointer;
  background-color: #f0f0f0;
  transform: scale(0.98);
}

#content-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

#content-card {
  width: 100%;
  height: 100%;
  border: 1px solid var(--light-gray);
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}

#create-project-button {
  all: unset;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 1rem;
  color: var(--light-gray);
}

#create-project-button:hover {
  background-color: #f0f0f0;
}

#create-project-button:active {
  background-color: #d6d6d6;
}

.button-icon {
  width: min(30vh, 30vw);
  stroke: var(--light-gray);
}

#text {
  font-size: min(6vh, 6vw);
  text-align: center;
  font-weight: 400;
}

.project-details {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-details li {
  display: flex;
  justify-content: space-between;
}

.project-property {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgb(62, 62, 62);
  font-weight: 200;
  border-top: 1px solid var(--light-gray);
  padding: 5px 10px;
  font-size: 1rem;
}

.project-property p {
  font-size: 1rem;
}

.project-details h2 {
  color: rgb(62, 62, 62);
  font-weight: 500;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.project-details h3 {
  color: rgb(62, 62, 62);
  font-weight: 500;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.project-details ul {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-details li {
  color: rgb(62, 62, 62);
  font-weight: 500;
  border-top: 1px solid var(--light-gray);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.project-details li:hover {
  cursor: pointer;
  background-color: #f0f0f0;
}

.project-details li:active {
  cursor: pointer;
  background-color: #f0f0f0;
  transform: scale(0.98);
}

#project-details-bottom-buttons-container {
  display: flex;
  gap: 10px;
}

.project-details-button {
  all: unset;
  background-color: #007bff;
  color: #ffffff;
  padding: 12px 24px;
  margin: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.1s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.project-details-button:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
  transform: translateY(-2px);
}

.project-details-button:active {
  background-color: #004085;
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.project-details-button:focus-visible {
  outline: 2px solid #66b3ff;
  outline-offset: 2px;
}

footer {
  font-weight: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

dialog {
  margin: auto;
  border: none;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  max-width: 550px;
  background-color: #ffffff;
  animation: fadeInScale 0.3s ease-out forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
}

dialog form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

dialog h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
}

dialog label {
  font-weight: bold;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: -10px;
  align-self: flex-start;
}

dialog p {
  font-weight: bold;
  color: #555;
  font-size: 1.05rem;
}

dialog input[type="text"],
dialog input[type="datetime-local"],
dialog textarea,
dialog select {
  padding: 12px;
  font-size: 1.05rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background-color: #f9f9f9;
}

dialog input[type="text"]:focus,
dialog input[type="datetime-local"]:focus,
dialog textarea:focus,
dialog select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
  background-color: #fff;
}

dialog button {
  padding: 14px 30px;
  font-size: 1.2rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 25px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  align-self: center;
}

dialog button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

dialog button:active {
  background-color: #004085;
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button-container {
  display: flex;
  gap: 20px;
}

input {
  padding: 12px !important;
}
