body {
  background-color: #121212;
  color: #ffffff;
  font-size: 1rem;
}
h3,
h5 {
  color: #0dcaf0;
}
h1 {
  color: #000000;
}

/* --- AVATAR --- */
#userName {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-transform: uppercase;
  gap: 8px;
  color: #000000;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #22c277;
  color: #000000;
  font-size: 1.3em;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Заголовок и шапка */
header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  background-color: #198754;
}

header button.btn {
  width: 100px;
  background-color: #250000;
}

header img {
  width: 60px;
  height: auto;
  margin-right: 0px;
}

header .header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  padding-right: 10px;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 0px;
}


@media (max-width: 576px) {
  body {
    font-size: 0.9rem;
  }
  h3,
  h5 {
    font-size: 1.1rem;
  }
}

option {
  background-color: #1e1e1e;
  color: #ffffff !important;
  border-color: #444;
}
.form-control::placeholder {
  color: #ffffff77;
  opacity: 1;
}
.form-control,
.form-select {
  background-color: #1e1e1e;
  color: #ffffff77 !important;
  border-color: #444;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}


.form-control:valid,
.form-select:valid {
  background-color: #1e1e1e;
  color: #ffffff !important;
  border-color: #444;
}


#fileName {
  color: #ffffff77;
}

.place {
  background-color: #1e1e1e;
  color: #ffffff77;
  border-color: #444;
}

.form-control:focus,
.form-select:focus {
  background-color: #2c2c2c;
  color: #ffffff77;
  border-color: #005892;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(111, 102, 233, 0.6);
}

.form-label {
  color: #0dcaf0;
}

table {
  color: #ffffff;
}

.table th {
  color: #0dcaf0;
}

thead {
  background-color: #333;
}

tbody {
  background-color: #222;
}

/* Статус */
#status {
  margin-top: 15px;
  font-weight: 600;
  color: #00ffcc;
}

/* Кнопка для установки PWA */
#installBtn {
  margin-top: 20px;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none; /* Изначально скрыто */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#message-box {
  background: #0dcaf0;
  padding: 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 80%;
  text-align: center;
  font-family: Arial, sans-serif;
  color: #000000;
}

#message {
  margin-top: 15px;
}
/* стиль для успешного сообщения */
.success {
  color: #008800;
  font-weight: bold;
}
/* стиль для ошибки */
.error {
  color: #850101;
  font-weight: bold;
}

.custom-radio-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Темные кнопки */
.check {
  width: 60px;
  font-size: 2rex;
  color: rgb(211, 211, 211) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

#purposePlanSwitch {
  background-color: #121212;
  border-color: #0dcaf0;
}

#purposePlanSwitch:focus {
  border-color: #0dcaf0;
  outline: 0;
  box-shadow: 0 0 0 0.25rem #0dcaf01f;
}

#purposePlanSwitch:checked {
  background-color: #0a9cb9;
}

.form-switch .form-check-input {
  height: 16px;
  width: 48px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgb(180, 180, 180)'/></svg>");
  margin-right: 20px;
  /* margin-left: 1px; */
}

.form-switch .form-check-input:focus {
  border-color: rgba(0, 0, 0, 0.25);
  outline: 0;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(180,180,180,1.0)'/></svg>");
}

#purposePlan:disabled {
  background-color: #121212 !important; /* или другой цвет по умолчанию */
  opacity: 1 !important;
  /* color: #000 !important; */
  box-shadow: none !important;
  appearance: none !important;
}
