:root {
  --background: #060b10;
  --block-background: #12181f;

  --link-text-color: #32e6e2;
  --teal-team-six: #02807d;

  --nav-link-dark: #7d8590;
  --nav-link-dark-hover: #97a9c3;
  --nav-link-dark-last: #a1abb9;
  --nav-link-dark-last-hover: #91add6;

  --electric-blue: 217 91% 60%;
  --electric-emerald: 142 76% 36%;

}
/* Reset and Base Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
  background-color: var(--background);
  color: #e6edf3;
  line-height: 1.5;
}

a {
  color: var(--link-text-color);
}

/* Layout Container */
.layout-container {
  display: flex;
  min-height: 90vh;
}

details {
    display: block;
    border: 1px solid #1d2731;
    border-radius: 8px;
    margin-bottom: 1rem;
}
details.js-form-wrapper.form-wrapper {
    margin-top: 30px;
}
details.js-form-wrapper summary {
    font-size: 18px;
    background: #12253b;
    border-radius: 8px 8px 0 0;
    padding: 5px 10px;
    border-bottom: 1px solid #1c3653;
}
details .form-item {
  padding: 1.5rem;
}
.password-strength__indicator {
  background: green;
}
#edit-submit {

}

.form-item input, .form-item textarea, .form-item select {
  max-width: 400px;
}

.password-strength__meter {
  max-width: 400px;
}

/* Sidebar Styles */
.sidebar {
  width: 240px;
  background-color: var(--block-background);
  border-right: 1px solid #30363d;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 95vh;
  left: 0;
  top: 0;
  z-index: 1;
}
.sidebar .block {
    padding: 0;
    margin: 0;
}

.toolbar-horizontal.toolbar-fixed .sidebar {
  margin-top: 80px;
}

.sidebar-header {
    padding: 1.3rem 1rem;
    border-bottom: 1px solid #30363d;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon {
  color: #58a6ff;
  width: 28px;
  height: 28px;
}

.logo-link {
  font-family: 'Fira Code', monospace;
  font-weight: bold;
  font-size: 1.25rem;
  text-decoration: none;
}

.logo span.just-the-t {
background: hsl(var(--electric-blue));
    color: white;
    padding: 0;
    border-radius: 6px;
    height: 2rem;
    width: 2rem;
    display: inline-block;
    text-align: center;
  transition: all 0.3s ease;
}
.portal-portal {
color: #ffd700;
    font-size: 11px;
    position: absolute;
    top: 45px;
    left: 75px;
    transition: all 0.3s ease;
}
a.logo-link:hover span.just-the-t {
  background: #000;
  box-shadow: none;
}
a.logo-link:hover .gradient-text {
  color: #000;
    -webkit-text-stroke-width: 2px;
    -webkit-text-stroke-color: #ffffff33;
    transition: all .3s ease-in-out;
}
a.logo-link:hover .portal-portal {
  text-shadow: 0 3px 5px #000, 0 3px 5px #f00, 0px 2px 13px #ffd700;
  transition: all 0.3s ease;
}
.gradient-text {
  background: linear-gradient(135deg, hsl(var(--electric-blue)) 0%, hsl(var(--electric-emerald)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: all 0.3s ease;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}
.sidebar-nav ul {
  list-style: none;
}
.sidebar-nav ul li a {
  text-decoration: none;
}

.nav-menu,
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item,
.sidebar-nav ul li {
  margin-bottom: 4px;
}

.nav-link,
.sidebar-nav ul li a {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  color: #b4c0d1;
  text-decoration: none;
  transition: all 0.2s ease;
  border-radius: 0;
  position: relative;
}

.nav-link.is-active,
.sidebar-nav ul li a.is-active,
.nav-link:hover,
.sidebar-nav ul li a:hover {
  background-color: #21262d;
  color: #e6edf3;
}

.nav-link.active,
.nav-link:focus {
  background-color: #1f6feb;
  color: #ffffff;
}

.nav-link svg {
  margin-right: 12px;
  flex-shrink: 0;
}

.nav-link span {
  font-size: 14px;
  font-weight: 500;
}
.sidebar hr {
  background-color: #30363d;
    border: none;
    height: 1px;
    margin: 1rem 0;
}
/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #30363d;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #21262d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7d8590;
}

/* Main Content Styles */
.main-content {
  flex: 1;
  margin-left: 240px;
  background-color: var(--background);
  /* min-height: 100vh; */
}

.main-header {
  /* background-color: var(--block-background); */
  /* border-bottom: 1px solid #30363d; */
  /* padding: 16px 24px; */
}

.content-wrapper {
  padding: 24px;
}

.main-content-inner {
  /* max-width: 1200px; */
}

/* Card Styles */
.card {
  background-color: var(--block-background);
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0;
}

.card-content {
  color: #8b949e;
  line-height: 1.6;
}

/* Deployment List Styles */
.deploy-list {
  background-color: var(--block-background);
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.deploy-item {
  padding: 16px 20px;
  border-bottom: 1px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease;
}

.deploy-item:last-child {
  border-bottom: none;
}

.deploy-item:hover {
  background-color: #21262d;
}

.deploy-info {
  flex: 1;
}

.deploy-title {
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0 0 4px 0;
}

.deploy-meta {
  font-size: 12px;
  color: #7d8590;
}

.deploy-status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.deploy-status.published {
  background-color: #238636;
  color: #ffffff;
}

.deploy-status.building {
  background-color: #da8300;
  color: #ffffff;
}

.deploy-status.failed {
  background-color: #da3633;
  color: #ffffff;
}



/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #30363d;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #238636;
  color: #ffffff;
  border-color: #238636;
}

.btn-primary:hover {
  background-color: #2ea043;
  border-color: #2ea043;
}

.btn-secondary {
  background-color: #21262d;
  color: #e6edf3;
  border-color: #30363d;
}

.btn-secondary:hover {
  background-color: #30363d;
  border-color: #484f58;
}

.export-button {
background: #3b434c;
    text-align: center;
    margin-left: 0;
    padding: 0.6rem 2.5rem;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
    text-decoration: none;
    border: 1px solid #4d555e;
}
.export-button:hover {
  background: #0c2a2a;
  border: 1px solid #164141;
  color: #8efbf7;
}

/* Messages */
.messages {
  margin-bottom: 24px;
}

.messages .status {
  background-color: #0d4427;
  border: 1px solid #1a7f37;
  color: #56d364;
  padding: 12px 16px;
  border-radius: 6px;
}

.messages .error {
  background-color: #490b0b;
  border: 1px solid #da3633;
  color: #ff7b72;
  padding: 12px 16px;
  border-radius: 6px;
}

.messages .warning {
  background-color: #332b00;
  border: 1px solid #9e6a03;
  color: #ffa657;
  padding: 12px 16px;
  border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .layout-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    position: relative;
    height: auto;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 16px;
  }
}

/* Form list details */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #30363d;
}

.table th {
  background-color: #21262d;
  font-weight: 600;
  color: #e6edf3;
}

.table td {
  color: #8b949e;
}

.table tbody tr:hover {
  background-color: #21262d;
}

/* Form List Styles */
.form-list-container {
  max-width: 1200px;
}

.form-list-header {
  margin-bottom: 24px;
}

.form-list-title {
  font-size: 24px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0;
}

.form-list {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.form-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #30363d;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.form-list-item:last-child {
  border-bottom: none;
}

.form-list-item:hover {
  background-color: #21262d;
}

.form-info {
  flex: 1;
  min-width: 0;
}

.form-name {
  font-size: 16px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0 0 4px 0;
  line-height: 1.25;
}

.form-name a {
  color: inherit;
  text-decoration: none;
}

.form-name a:hover {
  color: #58a6ff;
}

.form-meta {
  font-size: 14px;
  color: #7d8590;
  line-height: 1.4;
}

.form-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.submission-count {
  font-size: 14px;
  font-weight: 500;
  color: #e6edf3;
  white-space: nowrap;
}

.form-arrow {
  color: #7d8590;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.form-list-item:hover .form-arrow {
  color: #e6edf3;
}

/* Empty state */
.form-list-empty {
  padding: 60px 24px;
  text-align: center;
}

.empty-state {
  margin: 0 1.5rem;
}

.empty-icon {
  color: #6e7681;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 600;
  color: #e6edf3;
  margin: 0 0 8px 0;
}

.empty-state p {
  font-size: 14px;
  color: #7d8590;
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments for form list */
@media (max-width: 768px) {
  .form-list-item {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-stats {
    width: 100%;
    justify-content: space-between;
  }

  .form-list-title {
    font-size: 20px;
  }
}
/* end form list details */

.block {
  background-color: var(--block-background);
  padding: 2.5rem;
  border-radius: 10px;;
  margin-bottom: 2rem;
}
.block h1,
.block h2 {
  margin-top: 0;
}
div#block-tully-formsoverview,
div#block-tully-content {
  padding: 1.5rem;
  border: 1px solid #1e242c;
}
div#block-tully-content:has(.netlify-forms-submissions) {
  padding: 1.5rem 0;
}
div#block-tully-page-title {
    background-color: #060b10;
    padding: 2rem 2rem 0;
    border-radius: 0;
    margin: 0;
    h1 {
      margin-bottom: 0;
    }
}
div#block-tully-breadcrumbs {
  padding: 0 0 0 2rem;
  margin: 0;
  background: transparent;
}
div#block-tully-breadcrumbs nav {
  margin: 0;
}
div#block-tully-breadcrumbs nav ol {
  list-style: none;
  margin: 0;
}
div#block-tully-breadcrumbs nav ol li {}
div#block-tully-breadcrumbs nav ol li a {
  color: var(--nav-link-dark);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}
div#block-tully-breadcrumbs nav ol li a:hover {
  color: var(--nav-link-dark-hover);
}
div#block-tully-breadcrumbs nav ol li:last-child a {
  color: var(--nav-link-dark-last);
}
div#block-tully-breadcrumbs nav ol li:last-child a:hover {
  color: var(--nav-link-dark-last-hover);
}

/* Drupal-specific overrides */
.region-sidebar-left .block {
  margin-bottom: 0;
}

.region-sidebar-left .block-title {
  display: none;
}

details.js-form-wrapper.form-wrapper {
    margin-top: 30px;
}
details.js-form-wrapper summary {
    font-size: 20px;
}


/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--block-background);
  border: 1px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
}

.table th,
.table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #30363d;
}

.table th {
  background-color: #21262d;
  font-weight: 600;
  color: #e6edf3;
}

.table td {
  color: #8b949e;
}

.table tbody tr:hover {
  background-color: #21262d;
}

.netlify-submission-detail {
  padding: 0 1.5rem;
}
.netlify-submission-detail .back-link {
    display: inline-block;
    color: #32e6e2;
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.netlify-submission-detail table {
  width: 100%;
}
.netlify-submission-detail table tr:nth-child(even) td {
    background-color: #161c23;
}

.netlify-submission-detail table th {
    background-color: #161c23;
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #333;
}
.netlify-submission-detail tr td:first-child {
    color: #aaa;
    padding-right: 1.5rem;
    text-align: right;
    text-transform: capitalize;
}
.netlify-submission-detail table td {
    padding: 0.8rem;
}
.netlify-submission-detail table tr:hover td {
  background-color: #212932!important;
}

#netlify-forms--no-forms-configured {
  padding: 0 1.5rem;
}


/* Utilities */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  position: static !important;
  clip: auto;
  overflow: visible;
  height: auto;
  width: auto;
}

/* Anonymouse User Changes */

.user-anonymous {}

.user-anonymous div#block-tully-content {
    background: transparent;
    margin-bottom: 30px;
}
.user-anonymous div#block-tully-userlogin {
  padding: 1rem 1.5rem;
}

.user-anonymous .sidebar {
  background: transparent;
  border: none;
}

.user-anonymous .sidebar-header,
.user-anonymous .sidebar-footer {
  border: none;
}

#block-tully-userlogin ul {
  list-style: none;
  padding: 0;
  text-align: right;
}

#block-tully-userlogin ul a {
  text-decoration: none;
  color: #3c83f6;
}
#block-tully-userlogin ul a:hover {
  text-decoration: underline;
  color: #5a97f8;
}
