* {
  box-sizing: border-box;
}


/* ------- custom ------------- */
.d-flex {
  display: flex;
}
.justify-content-between {
  justify-content: space-between;
}
.justify-content-around {
  justify-content: space-around;
}
.justify-content-center {
  justify-content: center;
}
.align-items-center {
  align-items: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.gap-10 {
  gap: 10px;
}
.mb-15 {
  margin-bottom: 15px;
}
.mb-20 {
  margin-bottom: 20px;
}
.p-20 {
  padding: 20px;
}
.rounded {
  border-radius: 8px;
}
/* !------ custom ------------! */
body {
  margin: 0;
  padding: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f5f7fb;
  color: #222;
}

.container {
  max-width: 1640px;
  margin: 0 auto;
}

h1, h2, h3 {
  margin-top: 0;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.form-row input {
  flex: 1;
  min-width: 120px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccd2e0;
  border-radius: 6px;
}

.form-row button {
  padding: 10px 16px;
  background: #4f6af5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.form-row button:hover {
  background: #3f59d6;
}

.bots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bot-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e2e6f0;
  border-radius: 6px;
  background: #fafbff;
  flex-wrap: wrap;
}

.bot-info {
  display: flex;
  flex-direction: column;
}

.bot-info strong {
  font-size: 16px;
}

.bot-status {
  font-weight: 600;
  font-size: 14px;
  margin-top: 4px;
}

.bot-status.active {
  color: #2ecc71;
}

.bot-status.inactive {
  color: #e74c3c;
}

.bot-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

button {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}

button.delete {
  background: #e74c3c;
  color: #fff;
}

button.delete:hover {
  background: #c0392b;
}

.bot-actions button.active {
  background: #e74c3c;
  color: #fff;
}

.bot-actions button.inactive {
  background: #2ecc71;
  color: #fff;
}

.dashboard-grid {
  display: flex;
  gap: 20px; /* Расстояние между колонками */
}

.column {
  flex: 1; /* Каждая колонка занимает половину */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Чтобы фильтры и списки красиво растягивались */
.bots-list, #usersList {
  max-height: 500px;
  overflow-y: auto;
}

.form-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.card {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.bot-item, .user-item {
  padding: 5px;
  border-bottom: 1px solid #eee;
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-height: 80%;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
}

#botStatsModal ul {
  font-size: 12px;
}

.logoutBtn{
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid #4f6af5;
  transition: all 0.2s;
}

.logoutBtn:hover{
  background: #4f6af5;
  color: #fff;
}

 .hidden { display: none; }
.bot-status.active { color: green; }
.bot-status.inactive { color: red; }
.bot-actions button { margin-left: 5px; }
.modal { display: flex; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); justify-content:center; align-items:center; }
.modal-content { background: white; padding: 20px; border-radius: 8px; max-width: 600px; width: 90%; }
.modal-close { float:right; cursor:pointer; }


.bot-free {
  border-left: 4px solid #ff9800;
  background: rgba(255, 152, 0, 0.08);
}

.screenshots img {
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.screenshots img:hover {
  transform: scale(1.05);
}

.accordion {
  margin: 5px 0;
}
.accordion-btn{
  transition: .2s;
  margin-bottom: 5px;
}
.accordion-btn:hover{
  background: #cacaca;
}
.accordion-content{
  padding: 10px 5px;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
}

.screenshots-container{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.screenshots-container a{
  width: calc(50% - 10px);
}

.screenshots-container img{
  width: 100%;
  border-radius: 4px;
  cursor: zoom-in;
  transition: transform .15s;
}

.screenshots-container img:hover {
  transform: scale(1.05);
}
/* select */

/* === Общий стиль для select === */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 8px 36px 8px 12px;
  font-size: 14px;
  font-family: inherit;

  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background-color: #fff;

  cursor: pointer;
  transition: all 0.2s ease;

  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23667085' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

/* Hover */
select:hover {
  border-color: #98a2b3;
}

/* Focus */
select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Disabled */
select:disabled {
  background-color: #f2f4f7;
  cursor: not-allowed;
  opacity: 0.7;
}

.bot-item select {
  margin-top: 6px;
  min-width: 160px;
}

.bot-filters input {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ccd2e0;
  border-radius: 6px;
}

.bot-name{
  cursor: pointer;
  transition: .2s;
}

.bot-name:hover{
  color: #2ecc71;
}