:root {
  --primary-dark: #0E133E;
  --primary-light: #C0C0D0;
  --secondary-light: #E5E5F4;
  --highlight: #D31F35;
  --text-light: #ddd;
  --scrollbar-color: #b0b0b0;
  --scrollbar-hover: #888;
  --text-dark: #32323C;
  --secondary-dark: #090C2A;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

.hidden {
  display: none;
}

p{
  font-size: 16px;
  font-weight: 400;
}

h3{
  font-size: 20px;
  font-weight: 500;
}

form{
  width: 100%;
}

/* ----------- 1. Перша (градієнтна) секція ----------- */
.gradient-section {
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 150px 20px 80px;
}

.main-title {
  font-size: 64px;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.subtitle {
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ----- Верхній контейнер з вкладками та полем вводу ----- */
.tabs-container {
  border-radius: 20px;
  width: 100%;
  margin: 0 auto 40px;
  text-align: left;
}

.tabs {
  display: flex;
}

.tab-button {
  flex: 1;
  background-color: transparent;
  border: none;
  border-radius: 20px;
  height: 71px;
  padding: 20px;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  color: #fff;
}

.tab-button.active {
  background-color: var(--secondary-light);
  border-radius: 20px 20px 0 0;
  color: var(--text-dark);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 112px;
  background-color: var(--secondary-light);
  padding:32px 40px;
  border-radius: 20px;
}

/* Якщо активна перша кнопка (first-child), забираємо заокруглення у верхнього лівого кута */
.tabs-container:has(.tab-button:first-child.active) .input-row {
  border-top-left-radius: 0;
}

/* Якщо активна друга кнопка (last-child), забираємо заокруглення у верхнього правого кута */
.tabs-container:has(.tab-button:last-child.active) .input-row {
  border-top-right-radius: 0;
}

.url-input {
  flex: 1;
  background-color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
}

.another-check-btn {
  background-color: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

.another-check-btn:hover{
  background-color: var(--secondary-dark);
}

.request-content {
  width: 90%;
  margin: 0 auto;
  border-radius: 20px;
}

.results-container {
  background-color: var(--secondary-light);
  border-radius: 20px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
}
.content-container {
  overflow-y: auto;
  max-height: 100%;
  padding-right: 40px;
}
.results-title {
  position: relative;
  font-size: 16px;
  color: #32323C99;
  margin-bottom: 20px;
}

.results-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background-color: #32323C99;
}

.results-container p {
  font-family: 'Roboto Mono', monospace;
  color: var(--text-dark);
  line-height: 1.4em;
}

.categories-results{
  margin-top: 20px;
}

.row {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 10px;
}

.row .title {
  flex: 1;
  text-align: left;
}

.row .value {
  flex: 1;
  text-align: left;
}

.value p{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-container::-webkit-scrollbar {
  width: 7px;
}

.content-container::-webkit-scrollbar-button {
  display: none;
}

.content-container::-webkit-scrollbar-track {
  background: #fff;
  border-radius: 3px;
  width: 7px;
}

.content-container::-webkit-scrollbar-thumb {
  background: #87879E;
  border-radius: 3px;
  width: 7px;
}

.content-container::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-hover);
}

/* ----------- 2. Друга секція (білий фон) ----------- */
.white-section {
  background-color: var(--secondary-light);
  padding: 50px 20px;
  text-align: center;
}


/* Основний стиль хедера */
.header {
  position: absolute;
  width: 100%;
  height: 72px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}


/* Логотип */
.logo img {
  height: 42px;
  width: 228px;
}

/* Блок авторизації */
.auth {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #fff;
}

.login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #333;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn img {
  width: 24px;
  height: 17px;
}

.description {
  width: 93%;
  background-color: #F1F1F8;
  margin: 0 auto;
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  color: var(--text-dark);
}

.description h3{
  font-size: 24px;
  font-weight: 500;
}

.description p{
  margin-top: 24px;
}

.safe-category{
  background-color: #4CAF50;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.unsafe-category{
  background-color: #F44336;
  padding: 10px;
  border-radius: 8px;
  color: #fff;
}

.uncategorized-category{
  background-color: transparent;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid black;
  color: var(--text-dark)
}

.categories {
  width: 93%;
  border-radius: 20px;
  padding: 40px;
  text-align: left;
  margin: 64px auto 10px;
  background-color: #F4433614;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.categories-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 500;
}

.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
  width: 32px; /* Фіксована ширина */
  height: 32px; /* Фіксована висота */
}

.categories-toggle {
  transition: transform 0.3s ease;
}

.categories-content {
  max-height: 0;
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.category-table {
  display: flex;
  flex-direction: column;
  margin: 40px 0 40px;
}

.category-row{
  display: flex;
  align-items: center;
  padding: 20px;
  color: var(--text-dark);
}

.category-row .title {
  font-weight: 500;
  flex: 1;
  text-align: left;
}

.category-row .value {
  font-weight: 400;
  flex: 1;
  text-align: left;
}

.category-row .title p{
  font-weight: 500;
}

.divider {
  border-bottom: 1px solid #32323C26;
  margin: 10px 0;
}


/* Основний стиль футера */
.footer {
  width: 100%;
  background-color: var(--primary-dark);
  padding: 10px 0;
  color: white;
  width: 100%;
  height: 54px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: 400;
}

/* Лівий блок (посилання) */
.footer-left a {
  color: white;
  text-decoration: none;
  margin-right: 15px;
  font-size: 12px;
  text-decoration: underline;
}

/* Правий блок (копірайт) */
.footer-right {
  font-size: 12px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}

/* Модальне вікно */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: 482px;
  transform: translate(-50%, -50%);
  background-color: var(--secondary-light);
  padding: 40px 80px;
  gap: 40px;
  border-radius: 30px;
  flex-direction: column;
  align-items: center;
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  gap: 5px;
  padding: 10px 0;
}

.input-group input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  color: var(--text-dark);
  background: none;
  font-size: 14px;
  outline: none;
  padding-right: 40px;
  padding-bottom: 10px;
}

.input-group .toggle-password {
  position: absolute;
  right: 10px;
  bottom: -10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.input-group .toggle-password img {
  width: 20px;
}
.input-group input:not(:placeholder-shown) {
  border-bottom: 1px solid var(--text-dark);
}

.input-group label {
  display: block;
  font-size: 12px;
  color: #666;
}

.login-modal button {
  width: 100%;
  padding: 12px;
  background-color: var(--highlight);
  color: white;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login-modal button:hover {
  background-color: darkred;
}

.login-input {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.login-header{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-header h3{
  color: var(--text-dark);
}