@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", sans-serif;
  background-color: #F5F6F8;
  margin: 0;
}

h3 {
  font-size: 16px;
  margin: 0;
  font-family: "Inter", sans-serif;
  border-bottom: 2px solid #A69785;
}

h2 {
  margin-top: 0;
  margin-left: 10px;
  margin-bottom: 20px;
  margin-right: 0;
  font-family: "Inter", sans-serif;
}

.main-container {
  display: grid;
  grid-template-columns: 20% auto;
  grid-template-areas: "aside main";
  min-height: 100vh;
}
.main-container.dynamic {
  grid-template-columns: 1fr;
  grid-template-areas: "main";
}

.menu {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #2F3136;
  color: #E4E6EB;
  height: 100%;
  padding: 0 30px;
}

.content {
  grid-area: main;
  padding: 30px;
  display: block;
}
.content form {
  display: flex;
  gap: 10px;
}
.content form label {
  display: inline-block;
  width: 150px;
  text-align: right;
  margin: 10px;
  vertical-align: middle;
}
.content form .social-row {
  display: flex;
  align-items: center;
}
.content form .social-row .label_social {
  display: inline-block;
  width: 150px;
  text-align: left;
  margin-right: 12px;
}
.content form input[type=email],
.content form input[type=url],
.content form input[type=text],
.content form input[type=date] {
  width: calc(95% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.content form input[type=tel],
.content form select {
  width: calc(45% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.content form input[type=date] {
  width: 25%;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.content form input:focus,
.content form select:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.15);
  outline: none;
  background-color: #fff;
}
.content form input[type=file] {
  margin-top: 0.5rem;
}
.content form .social-row input[type=text] {
  width: 145px;
  margin-left: 20px;
}
.content form .social-row input[type=url] {
  width: calc(95% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

.logincontainer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-evenly;
  margin-top: 50px;
}
.logincontainer .blocklogin {
  background-color: white;
  padding: 1.75rem;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 400px;
}
.logincontainer h3 {
  font-size: 1.5em;
  margin: 0;
  font-family: "Inter", sans-serif;
  border-bottom: 2px solid #A69785;
  margin-bottom: 20px;
}
.logincontainer form {
  flex-wrap: wrap;
}
.logincontainer form label {
  display: inline-block;
  width: 100px;
  text-align: right;
  margin: 10px;
  vertical-align: middle;
}
.logincontainer form input[type=text],
.logincontainer form input[type=password] {
  width: calc(95% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.logincontainer form .form-actions {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  margin: 20px;
}

.LoginAppTitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2rem;
  margin: 20px auto;
  text-align: center;
}
.LoginAppTitle svg {
  max-width: 70px;
  padding-right: 9px;
}
.LoginAppTitle svg path {
  fill: #A69785;
}

.cardheaderrow {
  display: flex;
  align-items: center; /* vertically align the h2 and form */
  flex-wrap: wrap; /* wrap on smaller screens */
  gap: 20px; /* spacing between header and form */
  margin-bottom: 20px; /* space below */
}
.cardheaderrow h2 {
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.uploadform {
  display: flex;
  padding: 0; /* reduce visual height */
  background: transparent;
  box-shadow: none;
  border: none;
  align-self: center; /* important! */
  padding: 10px 15px;
  background: white;
  border: 1px solid #A69785;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 600px;
}
.uploadform form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: 100%;
}
.uploadform form label {
  margin: 0;
}
.uploadform form input[type=file] {
  margin: 0;
}
.uploadform .form-actions {
  margin: 0;
  flex: none;
}

.AppTitle {
  display: flex;
  align-items: center;
  margin: 20px;
  font-size: 2em;
  text-align: left;
}
.AppTitle svg {
  max-width: 70px;
  padding-right: 9px;
}
.AppTitle svg path {
  fill: #A69785;
}

.header {
  display: flex;
  align-items: center;
  margin: 20px;
  font-size: 1.5em;
  text-align: center;
}
.header img {
  max-width: 30px;
  padding-right: 9px;
}

.block .header {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
  color: #1e2a38;
}

.links {
  text-align: center;
  padding: 10px 3px;
  margin: 5px;
  font-size: 16px;
  width: 100%;
  text-decoration: none;
  background: transparent;
  color: #E4E6EB;
  border-radius: 16px;
  border: 1px solid #A69785; /* Add this */
  transition: background 0.3s, color 0.3s;
}

.links:hover {
  background-color: #4B6EAF;
  color: #E4E6EB;
  border-color: #A69785; /* Light white border on hover */
}

.addcardcontainer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-evenly;
}
.addcardcontainer .blockvcard {
  flex: 1 1 500px;
  background-color: white;
  padding: 1.75rem;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 520px;
}
.addcardcontainer .block {
  flex: 1 1 500px;
  background-color: white;
  padding: 1.75rem;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 520px;
  max-width: 700px;
}
.addcardcontainer .block .select {
  width: 20px;
  height: 15px;
  object-fit: cover;
  display: inline-block;
  margin: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}
.addcardcontainer .block img {
  margin: 10px auto;
  width: 100px;
  height: auto;
  max-width: 100%;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.addcardcontainer .block .header {
  margin: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid #A69785;
}
.addcardcontainer form {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.addcardcontainer form label {
  display: inline-block;
  width: 150px;
  text-align: right;
  margin: 10px;
  vertical-align: middle;
}
.addcardcontainer form .social-row {
  display: flex;
  align-items: center;
}
.addcardcontainer form .social-row .label_social {
  display: inline-block;
  width: 150px;
  text-align: left;
  margin-right: 12px;
}
.addcardcontainer form input[type=email],
.addcardcontainer form input[type=url],
.addcardcontainer form input[type=text],
.addcardcontainer form input[type=date] {
  width: calc(95% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.addcardcontainer form input[type=tel],
.addcardcontainer form select {
  width: calc(45% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.addcardcontainer form input[type=date] {
  width: 25%;
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.addcardcontainer form input:focus,
.addcardcontainer form select:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 2px rgba(0, 119, 204, 0.15);
  outline: none;
  background-color: #fff;
}
.addcardcontainer form input[type=file] {
  margin-top: 0.5rem;
}
.addcardcontainer form .social-row input[type=text] {
  width: 145px;
  margin-left: 20px;
}
.addcardcontainer form .social-row input[type=url] {
  width: calc(95% - 170px);
  padding: 5px;
  margin-bottom: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}
.addcardcontainer form form-actions {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Spacing between buttons */
  margin: 20px 0;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
}

.form-actions {
  display: flex;
  flex: 1 1 100%;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 20px 0 0 0;
  flex-wrap: wrap;
  grid-column: 1/-1;
}
.form-actions button[type=submit],
.form-actions button[type=button] {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #4B6EAF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-right: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.form-actions button[type=submit]:hover,
.form-actions button[type=button]:hover {
  background-color: #3A5E9C;
  box-shadow: none;
}

.button-group form {
  display: inline-block;
  margin: 0;
}

.delete {
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  max-width: 100%;
  box-sizing: border-box;
}

.blocknamescard {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  justify-content: center;
  padding: 28px;
  background: white;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-bottom: 0;
}

.input-row {
  margin-top: 20px;
}

.blocknames {
  display: block;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px 0 0 20px;
  background: #f9f9f9;
  border-radius: 1rem;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin-bottom: 1.5rem;
}
.blocknames button {
  display: flex;
  align-items: center; /* Vertically centers children */
}
.blocknames form {
  width: 100%;
}
.blocknames form label {
  width: 30%;
  text-align: left;
}
.blocknames .form-actions {
  display: inline-flex;
  width: 25%;
  flex: none;
}

.content-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  padding-right: 20px;
}
.content-container .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.content-container .text-content .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}
.content-container .text-content .form-actions button {
  background: #2b6cb0;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.content-container .text-content .form-actions button:hover {
  background: #2c5282;
}
.content-container .text-content .form-actions button:active {
  transform: scale(0.98);
}
.content-container .text-content .form-actions button:disabled {
  background: grey;
  box-shadow: none;
}
.content-container .text-content .form-actions a button {
  background: #4a5568;
}
.content-container .text-content .form-actions a button:hover {
  background: #2d3748;
}
.content-container .portrait-container {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
  align-self: center;
}
.content-container .portrait-container img.portrait {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #ccc;
}

button svg.stroke-only path {
  fill: none;
  stroke: white;
}

button svg {
  display: inline-block;
  width: 15px !important;
  height: auto !important;
  padding-right: 5px;
}

button svg path {
  fill: white;
}

.portrait-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  float: right;
  text-align: center;
}
.portrait-container .portrait {
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}
.portrait-container .portrait-link {
  margin-top: 5px;
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
}
.portrait-container .portrait-link:hover {
  text-decoration: underline;
}

.portrait {
  width: 150px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.userblock {
  position: fixed;
  top: 0;
  right: 0;
  background: #2F3136;
  padding: 4px 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #E4E6EB;
  z-index: 1000;
  border-bottom-left-radius: 8px;
}
.userblock p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px; /* Space between elements */
}
.userblock img {
  max-height: 15px;
  padding-left: 10px;
  vertical-align: middle;
}
.userblock svg {
  display: inline-block;
  width: 15px !important;
  height: auto !important;
  padding-left: 10px;
  vertical-align: middle;
}
.userblock svg path {
  fill: #A69785;
}
.userblock .userblock-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}
.userblock .uploadform form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  width: 100%;
}
.userblock .uploadform form label {
  display: inline-block; /* or just 'inline' */
  width: auto;
}

.uploadform form label {
  display: inline-block; /* or just 'inline' */
  width: auto;
}

.standardlogo {
  max-height: 90px;
  padding-bottom: 10px;
}

.content-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.content-container .text-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  font-family: "Inter", sans-serif;
}

.centered-notification {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.centered-notification .notification {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border: 1px solid #e5e7eb;
  padding: 2.5rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  color: #111827;
  animation: fadeIn 0.6s ease-out;
}
.centered-notification .notification.success {
  border-left: 6px solid #3ba86d;
}
.centered-notification .notification h2 {
  margin-top: 0;
  font-size: 1.75rem;
  color: #1e2a38;
  margin-bottom: 1rem;
}
.centered-notification .notification p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.centered-notification .notification strong {
  color: #111827;
}
.centered-notification .notification a {
  color: #ffba49;
  text-decoration: none;
  font-weight: 500;
}
.centered-notification .notification a:hover {
  text-decoration: underline;
}
.centered-notification .check-icon {
  color: #3ba86d;
  margin-right: 0.5rem;
  font-weight: bold;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paginationelement {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
  margin: 0;
  gap: 0;
}

.paginationelement form label {
  margin: 10px 0 10px 10px;
}

.paginationelement form select {
  margin: 5px 5px 5px 0;
  width: 50px;
}

.headerrow {
  display: flex;
  align-items: center; /* vertically align if different heights */
  justify-content: space-between; /* optional: push them to edges */
  gap: 10px; /* optional spacing between them */
}

.paginationPages {
  font-size: 14px;
  margin-left: 20px;
}

.custom-language-selector {
  position: relative;
  display: inline-block;
  font-family: "Inter", sans-serif;
  margin-left: auto;
}

.lang-toggle {
  background: none;
  border: 1px solid #A69785;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: white;
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 5px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  list-style: none;
  padding: 0;
  z-index: 10;
  min-width: 150px;
}

.lang-menu.active {
  display: block;
}

.lang-menu li {
  margin: 0;
}

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}

.lang-menu button:hover {
  background-color: #f0f0f0;
}

.debug {
  background-color: red;
  padding: 10px;
  border-radius: 8px;
}
.debug p {
  color: white;
  margin: 0;
  padding: 0;
}

.xdebug-var-dump {
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.settings-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  align-items: stretch;
}

.settings-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1 1 300px; /* allow it to grow */
  max-width: 350px;
}
.settings-wrapper .header {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 16px;
  text-align: center;
  border-bottom: 2px solid #A69785;
}

.settings-wrapper form {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background-color: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  min-width: 300px;
  max-width: 350px;
  height: 100%;
  align-items: center;
  margin: 0;
  justify-content: center;
}
.settings-wrapper form input[type=checkbox] {
  vertical-align: middle;
  margin-right: 6px;
}
.settings-wrapper form input[type=text] {
  width: 75%;
}
.settings-wrapper form select {
  width: 75%;
}
.settings-wrapper form .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  margin: 0.5rem 0;
  width: 100%;
  justify-content: center;
}
.settings-wrapper form .checkbox-debug {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
  width: 100%;
  justify-content: left;
}
.settings-wrapper form .standardlogo {
  max-width: 100%;
  max-height: 150px; /* adjust this to whatever height you prefer */
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.settings-wrapper form .file-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%; /* or a fixed width like 300px */
  max-width: 350px;
}
.settings-wrapper form .file-upload label {
  font-weight: 500;
  text-align: center;
  width: 100%;
}
.settings-wrapper form .file-upload input[type=file],
.settings-wrapper form .file-upload input[type=text] {
  max-width: 100%;
  justify-self: center;
}
.settings-wrapper form .form-actions {
  display: flex;
  flex: 1 1 100%;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 0;
  flex-wrap: wrap;
  grid-column: 1/-1;
  flex-grow: 1;
}
.settings-wrapper form .settings {
  flex-grow: 1; /* allow settings content to grow and push the button down */
}

.settings {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center items horizontally */
  justify-content: center;
  text-align: center;
  gap: 0.75rem; /* Add some space between elements */
  margin-top: auto;
}

@media (max-width: 1000px) {
  .addcardcontainer {
    grid-template-columns: 1fr;
  }
  .block {
    min-width: 100%;
    width: 100%;
  }
}