:root {
  --litevna-blue: #1d3d54;
  --litevna-orange: #fe873d;
}
body {
  background-color: #222;
  color: #fefefe;
  font-family: monospace;
}

p,
ul,
fieldset {
  line-height: 1.5rem;
  margin: 0;
}

p {
  margin: 20px;
  padding: 5px;
}

.logo {
  /* background-color: #00800069; */
  display: inline-block;
  padding: 5px;
}

fieldset {
  /* border: 1px solid #7f7f7f; */
  padding: 10px 20px;
  margin: 20px;
  border: 4px solid var(--litevna-blue);
  background-color: color-mix(in srgb, var(--litevna-blue) 20%, transparent);
  /* box-shadow: 8px 8px 0 0 #1a2d3a; */
  box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--litevna-blue), black 30%);
}

fieldset.alert {
  border: 4px solid rgb(156, 10, 10);
  box-shadow: 8px 8px 0 0 color-mix(in srgb, rgb(156, 10, 10), black 50%);
}

.alert legend {
  border: 4px solid rgb(156, 10, 10);
}

legend {
  padding: 5px 10px;
  border: 4px solid var(--litevna-blue);
  /* background-color: var(--litevna-orange); */
  background-color: color-mix(in srgb, var(--litevna-orange), transparent 10%);
  color: color-mix(in srgb, var(--litevna-blue), black 30%);
  font-weight: bold;
}

a {
  color: #019bed;
}

blockquote {
  margin: 0px 10px;
  display: inline-block;
}

.highlight {
  padding: 2px 5px;
  background-color: #213f3b;
}

.logo {
  display: inline-block;
  padding: 10px 15px;
  margin: 10px;
}

/* Control-Plane Specific Styles */

/* Menu/Navigation Bar */
.menu {
  padding: 0.5rem 2rem;
  background-color: #1a1a1a;
  border-bottom: 4px solid var(--litevna-blue);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu a {
  color: #a3a3a3;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  position: relative;
}

.menu a:hover {
  color: var(--litevna-orange);
}

.menu div {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.menu span {
  color: #d4d4d4;
  font-size: 0.875rem;
}

/* Content Wrapper */
.content {
  /* max-width: 1200px; */
  width: 100%;
  /* margin: 0 auto; */
  padding-bottom: 2rem;
  flex: 1;
}

/* Typography for Control-Plane */
h1 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 500;
  color: #f5f5f5;
  border-bottom: 1px solid var(--litevna-blue);
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin: 2rem 0 1rem 0;
  font-weight: 500;
  color: #e5e5e5;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #e5e5e5;
  font-size: 0.875rem;
}

/* Form Inputs */
input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  max-width: 300px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  background-color: #262626;
  border: 1px solid #404040;
  border-radius: 4px;
  color: #d4d4d4;
  font-family: monospace;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  border-color: var(--litevna-orange);
  box-shadow: 0 0 0 2px rgba(254, 135, 61, 0.1);
}

input[type="checkbox"] {
  margin-right: 0.75rem;
  accent-color: var(--litevna-orange);
}

/* Fieldset Overrides for Control-Plane Forms */
fieldset label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: normal;
  cursor: pointer;
}

/* Button Styles */
.button-primary {
  background: var(--litevna-blue);
  color: var(--litevna-orange);
  padding: 0.5rem 1rem;
  border: 3px solid var(--litevna-orange);
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--litevna-orange), black 30%);
  transition: all 0.1s ease;
}

.button-primary:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 color-mix(in srgb, var(--litevna-orange), black 30%);
}

.button-primary:active {
  transform: translate(4px, 4px);
  box-shadow: none;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.button.success {
  background-color: #059669;
  color: white;
}

.button.success:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.button.info {
  background-color: #71d1fe;
  color: rgba(0, 0, 0, 0.8);
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
}

.button.info:hover {
  background-color: #66bee7;
  text-decoration: none;
}

.button.danger {
  background-color: #dc2626;
  color: white;
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  width: 100%;
}

.button.danger:hover {
  background-color: #b91c1c;
}

/* Table Styles */
table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  /* background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 6px; */
  overflow: hidden;
  font-size: 0.875rem;
}

thead {
  background-color: rgba(0, 0, 0, 0.2);
}

th {
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  /* color: #e5e5e5; */
  /* font-size: 0.8125rem; */
  border-bottom: 1px solid var(--litevna-blue);
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--litevna-blue);
  border-right: 1px solid var(--litevna-blue);
  vertical-align: middle;
  /* color: #d4d4d4; */
  overflow-x: scroll;
  max-width: 200px;
  white-space: nowrap;
}

td:last-child {
  border-right: none;
}

/* tr:last-child td {
  border-bottom: none;
} */

tbody tr:hover {
  background-color: #222222;
}

/* Image Store Cards Grid */
.parent {
  display: grid;
  grid-template-columns: 200px repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  padding: 10px;
  border: 1px solid rgba(204, 204, 204, 0.5);
  background-color: rgba(245, 245, 245, 0.05);
}

.parent .actions {
  grid-area: 1 / 1 / 4 / 2;
  padding-right: 20px;
}

.parent .store-label {
  grid-area: 1 / 2 / 2 / 6;
}

.parent .div3 {
  grid-area: 2 / 2 / 4 / 3;
}

.parent .div4 {
  grid-area: 2 / 3 / 4 / 4;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  margin-top: 2rem;
  background-color: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  color: #737373;
  font-size: 0.8125rem;
}

/* Details/Summary */
details {
  margin: 1rem 0;
}

summary {
  cursor: pointer;
  color: var(--litevna-orange);
  margin-bottom: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .menu {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .content {
    padding: 0 1rem 1rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }

  h1 {
    font-size: 1.25rem;
  }

  td:first-child {
    width: auto;
    min-width: 100px;
  }

  .parent {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .parent .actions,
  .parent .store-label,
  .parent .div3,
  .parent .div4 {
    grid-area: auto;
  }
}
