@font-face {
    font-family: "Bahnschrift Light";
    src: url("../static/fonts/bahnschrift_light.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: "PixelizerBold";
    src: url("../static/fonts/PixelizerBold.ttf") format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: "Bahnschrift Light", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gradient);
    color: #fff;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    vertical-align: middle;
    border: 1px solid #aaaaaaaa;
    border-radius: 3px;
    height: 25px;
    width: 200px;
    color: #aaa;
    padding: 0 32px 0 10px;

    background-color: transparent;

    background-image:
        linear-gradient(45deg, transparent 50%, #aaa 50%),
        linear-gradient(135deg, #aaa 50%, transparent 50%);

    background-position:
        calc(100% - 16px) 50%,
        calc(100% - 10px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}



:root {
    --gradient: linear-gradient(180deg, #14041d, #400c4a, #74155d, #c32178);
}

* {
    margin: 0;
    padding: 0;
    font-weight: 200;
}

.main-container {
    background: linear-gradient(#2e0f32, #c32178);
    height: calc(100vh - 70px - 10px); /* хедер + небольшой отступ */
    overflow: hidden;
    width: 100vw;
}

.view-container {
    max-width: 95.5%;
    min-width: 95.5%;
    height: calc(100vh - 70px - 50px); /* точная высота с учётом футера */
    background-color: #00000066;
    margin: 30px auto 0;
    border-radius: 10px;
    display: flex;
    justify-self: center;
    overflow: hidden;
}

.left-side-menu {
    width: 23%;
    height: 82vh;
    margin-left: 20px;
    background-color: #00000066;
    border-radius: 10px 10px 10px 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* предохраняем */
    align-self: center;
}

.right-content-view {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.content-background {
    /* width: 100%; */
    height: 77vh;
    background-color: #00000066;
    border-radius: 8px;
    overflow: hidden;
    padding: 20px;
}

.avatar-canvas {
    background-color: #00000066;
    height: 70%;
    border: 1px solid #c3217880;
    border-radius: 10px 10px 40px 40px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.profile-image-container {
    display: flex;
    justify-content: center;
}

.image-subtitle {
    color: white;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    opacity: 80%;
}

.buttons-container {
    margin-top: auto;
    background-color: #00000066;
    height: 25%;
    position: relative;
    border-radius: 10px 10px 10px 10px;
}

.buttons-container a {
    text-decoration: none;
}

.buttons-container::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, rgba(255,255,0,0) 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.left-side-button,
.left-side-button1 {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: all 0.1s;
    cursor: pointer;
}

.left-side-button.active,
.left-side-button1.active {
    background-color: #ffffff23;
}

.left-side-button1 {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    transition: all 0.1s;
    border-radius: 0 0 0 10px;
    cursor: pointer;
}

.left-side-button:hover {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    background-color: #ffffff3e;
    transition: all 0.1s;
    border-radius: 10px 10px 0 0;
}

.left-side-button1:hover {
    width: 100%;
    height: 49%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    background-color: #ffffff3e;
    border-radius: 0 0 0 10px;
    transition: all 0.1s;
}

.bid-container {
    height: 150px; /* фиксированная высота для примера */
    background-color: #00000066;
    margin: 15px 20px;
    border-radius: 5px;
}

.content-filter {
    display: flex;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-item {
    color: white;
    padding: 5px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.1s;
}

.filter-item.active {
    background-color: #ffffff23;
}
.filter-item:hover {
    background-color: #400c4a;
}

.create-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.create-form input,
.create-form select {
    background-color: #00000066;
    border: 1px solid #ffffff30;
    border-radius: 6px;
    padding: 8px;
    color: white;
}

.create-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.submit-btn {
    margin-top: 10px;
    padding: 10px;
    background-color: #ffffff23;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: 0.1s;
}

.submit-btn:hover {
    background-color: #ffffff3e;
}

.content-view {
    display: none;
    height: 100%;
    padding: 20px;
}

.content-view.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.market-view {
    display: none;
    flex: 1; /* занимают всё оставшееся место */
    overflow-y: auto; /* прокрутка */
    background: #00000040;
    padding: 20px;
    border-radius: 8px;
    height: 800px;
}

.market-view.active {
    display: block; /* или flex, если нужно */
    flex: 1; /* занимает всё свободное место */
    overflow-y: auto; /* прокрутка */
    background: #00000040;
    padding: 20px;
    border-radius: 8px;
}

.create-view {
    padding: 24px;
}

.create-view.active {
    background: #2a2a2a;
    border-radius: 20px 20px 0 0;

}

/* переключатель студия / пользователь */
.type-switch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    color: white;
}

.switch-label {
    cursor: pointer;
    opacity: 0.5;
}

.switch-label.active {
    opacity: 1;
}

.switch-line {
    width: 40px;
    height: 2px;
    background: white;
    opacity: 0.3;
}

/* 4 селекта */
.select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 0 30px;
}

.select-grid select,
.full-width {
    background-color: #00000066;
    border: 1px solid #ffffff30;
    border-radius: 6px;
    padding: 8px;
    color: white;
}

.full-width {
    width: calc(100% - 60px);
    margin: 20px 30px;
}

/* описание */
.description-row {
    display: flex;
    gap: 15px;
    padding: 0 30px 30px 30px;
}

.description-row textarea {
    flex: 1;
    height: 120px;
    resize: none;
    background-color: #00000066;
    border: 1px solid #aaaaaaaa;
    border-radius: 6px;
    padding: 10px;
    color: white;
}

/* мои заявки */
.my-bid {
    margin: 20px;
    padding: 15px;
    background-color: #00000066;
    border-radius: 6px;
}

.my-bid-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.bid-date {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 5px;
}

.type-switch-ios {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

.ios-switch {
    position: relative;
    width: 52px;
    height: 32px;
}

.ios-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #3a3a3c;
    border-radius: 999px;
    transition: 0.25s;
}

.slider::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    top: 2px;
    left: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.ios-switch input:checked + .slider {
    background: #34c759;
}

.ios-switch input:checked + .slider::before {
    transform: translateX(20px);
}

.create-card {
    background: #1e1420;
    /* border: 1px solid #3a2a3d; */
    border-radius: 16px;
    padding: 24px 30px;
    color: #ccc;
    margin-top: 50px;
}

.grid-2x2 {
    display: grid;
    justify-items: center;
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    row-gap: 50px;
    margin-bottom: 50px;
    margin-top: 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.form-row.full {
    grid-template-columns: 150px 1fr;
    justify-items: center;
    margin-bottom: 60px;
}

.form-row label {
    text-align: right;
    color: #aaa;
}

select:focus {
    border-color: #7a3c6c;
}

.switch-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 30px;
    color: #aaa;
}

.ios-switch {
    position: relative;
    width: 46px;
    height: 24px;
}

.ios-switch input {
    opacity: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #120d14;
    border: 1px solid #7a3c6c;
    border-radius: 50px;
    transition: .2s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #e69500;
    border-radius: 50%;
    transition: .2s;
}

.ios-switch input:checked + .slider:before {
    transform: translateX(22px);
}

.desc-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 10px;
    color: #aaa;
    margin-left: 50px;
    margin-top: 30px;
}

.desc-wrap {
    display: flex;
    gap: 10px;
}

textarea {
    width: 100%;
    height: 40px;
    background: transparent;
    border: 1px solid #aaaaaaaa;
    border-radius: 3px;
    color: #ddd;
    padding: 8px;
    resize: none;
}

.ok-btn {
    width: 70px;
    height: 100%;
    background: #aaaaaa3d;
    border: none;
    border-radius: 8px;
    color: #000;
    font-size: 22px;
    cursor: pointer;
    margin-right: 30px;
}

.req-view {
    display: none;
    flex: 1;
    overflow-y: auto;
    background-color: #ffffff13;
    border-radius: 3px;
    padding: 20px;
}

.req-view.active {
    display: block;
}

/* контейнер */
.switch {
  position: relative;
  display: inline-block;
  width: 20px;   /* длина полочки */
  height: 10px;  /* толщина полочки */
}

/* скрываем чекбокс */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* полочка */
.slider {
  position: absolute;
  top: 50%;
  left: 0;
  width: 25px;
  height: 6px;
  background-color: #555;
  border-radius: 3px;
  transform: translateY(-50%);
}

/* шарик */
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: #e69500;
  border-radius: 50%;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  transition: left 0.2s;
  cursor: pointer;
}

/* при включении */
input:checked + .slider::before {
  left: 100%;
}

.profile-page {
    display: none;
    flex-direction: column;
    gap: 20px;
}

#view-market {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 20px;

}

#view-market.active {
    display: flex;
    flex-direction: column;
    height: 100%;

}

#view-market .market-view.active {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    background: #00000040;
    padding: 20px;
    height: 62vh;
    border: 1px solid #ffffff30;
}


#view-market .content-filter {
    flex-shrink: 0;
    margin-bottom: 20px; /* можно добавить отступ */
}

.row {
    color: #ffffff80;
    margin-bottom: 10px;
}

.row.role {
    cursor: pointer;
    transition: 0.2s;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-body {
    background-color: #0000005c;
    border-radius: 3px;
}

.card-body-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 110px;
  margin-top: 12px;
  padding: 5px 10px 10px 30px;
}

.data-for {
    background-color: #ffffff27;
    margin: 0;
    padding: 0;
    width: 100px;
    height: 17px;
    text-align: center;
    margin-right: 45%;
    margin-left: 45%;
    border-radius: 2px;
    font-size: .7rem;
}

.label {
  color: #6b5d70a2;
  font-size: 13px;
}

.username {
  margin: 4px 0;
  color: #fff;
}

.since {
  color: #6b5d70;
  font-size: 12px;
}

/* ТЕГИ ОПЫТА */
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: #ffffff7a;
}

.tag {
  background: #201724;
  /* border: 1px solid #3a2a3f; */
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
}

/* ФАЙЛЫ */
.files {
  display: flex;
  margin-top: 5px;
  gap: 8px;
}

.file {
  width: 45px;
  height: 45px;
  background: #201724;
  /* border: 1px solid #3a2a3f; */
  border-radius: 3px;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.users-total {
  width: 92px;
  height: 92px;
  background: #201724;
  border: 3px solid #3a2a3f;
  border-radius: 3px;
    font-size: 5rem;
    vertical-align: middle;
    text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #120d14;
  font-weight: bolder;
}

.file.add {
  opacity: .6;
}

.users {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 в ряд */
    gap: 8px;
    width: max-content;
}

.user {
    width: 42px;
    height: 42px;

    background: #201724;
    border: 1px solid #3a2a3f;
    border-radius: 6px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.user.more {
    font-size: 20px;
    color: #aaa;
}

.info-block {
    background-color: #00000054;
    color: #ffffff80;
    padding: 1rem;
    height: 60px;
    text-align: center;
    margin: 20px 30px 40px 0;
}


/* ПРОЕКТЫ */
.projects {
  display: grid;
  grid-template-columns: repeat(4, .17fr);
  gap: 12px;
  margin-bottom: 10px;
  margin-top: 6px;
}

.proj {
  aspect-ratio: 1;
  width: 70px;
  background: #201724;
  border: 1px solid #e696002c;
  border-radius: 3px;
  flex-shrink: 0;
}

.projects-right {
    display: flex;
    align-items: flex-start;;
    gap: 10px;
    margin-top: 2px;
}

.proj.add {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: .6;
  color: #ffffff3e;
  font-weight: bold;
}

/* О СЕБЕ */
.about {
  width: 304px;
  height: 80px;
  background: transparent;
  border: 1px solid #3a2a3f;
  border-radius: 8px;
  color: #aaa;
  padding: 8px;
}

/* СТУДИЯ */
.studio-body {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.members {
  display: flex;
  gap: 10px;
  align-items: center;
}

.count {
  width: 48px;
  height: 48px;
  border: 1px solid #3a2a3f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border-radius: 8px;
}

.avatars {
  display: flex;
  gap: 4px;
}

.avatars div {
  width: 24px;
  height: 24px;
  background: #201724;
  border: 1px solid #3a2a3f;
  border-radius: 6px;
}

.soon {
  flex: 1;
  margin-left: 20px;
  background: #0e0812;
  border: 1px solid #3a2a3f;
  border-radius: 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #6b5d70;
}

/* МОДАЛКА */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000aa; /* полупрозрачный фон */
    border: 1px solid #ffffff30;
    border-radius: 12px;
    padding: 24px;
    width: 400px;
    max-width: 90%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 0 15px #c32178aa;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.modal.hidden {
    display: none;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid #ffffff2a;
    padding-bottom: 8px;
}

.modal-close {
    cursor: pointer;
    font-size: 20px;
    color: #ffffff70;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #ddd;
}

.modal-body input {
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #ffffff30;
    background-color: #00000066;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.modal-body input:focus {
    border-color: #c32178;
}

.modal-body .exp-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.modal-body .exp-row input {
    flex: 1;
}

.modal-body .exp-row .del {
    cursor: pointer;
    color: #ff5555;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
}

.modal-body .exp-row .del:hover {
    color: #ff0000;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.modal-footer button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.modal-footer button.save-btn {
    background-color: #c32178;
    color: #fff;
}

.modal-footer button.save-btn:hover {
    background-color: #74155d;
}

.modal-footer button.cancel-btn {
    background-color: #555;
    color: #fff;
}

.modal-footer button.cancel-btn:hover {
    background-color: #333;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 900;
}


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

.exp-row input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ffffff30;
    background-color: #00000066;
    color: #fff;
    outline: none;
}

.exp-row .del {
    cursor: pointer;
    color: #ff5555;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.2s;
}

.exp-row .del:hover {
    color: #ff0000;
}

.l4t-input {
    background: #201724;
    border: 1px solid #3a2a3f;
    border-radius: 6px;
    padding: 6px 10px;
    color: #ddd;
    transition: 0.2s;
}

.l4t-input:focus {
    border-color: #c32178;
    outline: none;
}

.l4t-btn {
    background: #201724;
    border: 1px solid #3a2a3f;
    border-radius: 6px;
    padding: 6px 12px;
    color: #ddd;
    cursor: pointer;
}

.l4t-btn:hover {
    background: #2c1d30;
}

@media (max-width: 900px) {

#view-create {
    display: none;
    flex-direction: column;
    height: 100%;
}

#view-create.active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#view-create .content-filter {
    flex-shrink: 0;
}

.view-container {
    flex-direction: column;
    width: 95vw;
    margin: 0 auto;
}

.left-side-menu {
    width: 100%;
    height: auto;
    flex-direction: row;
}

.right-content-view {
    padding: 20px;
}

.card-body-main {
    grid-template-columns: 1fr;
    gap: 40px;
}

.projects {
    grid-template-columns: repeat(2, 1fr);
}

}

/* ===== ЕДИНЫЙ СТИЛЬ СКРОЛЛБАРА (как в explore) ===== */

/* WebKit (Chrome, Safari, Opera) */
.market-view.active::-webkit-scrollbar,
.req-view::-webkit-scrollbar,
.bid-container::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}

.market-view.active::-webkit-scrollbar-track,
.req-view::-webkit-scrollbar-track,
.bid-container::-webkit-scrollbar-track {
    background: transparent;
}

.market-view.active::-webkit-scrollbar-thumb,
.req-view::-webkit-scrollbar-thumb,
.bid-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

.market-view.active::-webkit-scrollbar-thumb:hover,
.req-view::-webkit-scrollbar-thumb:hover,
.bid-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox */
.market-view.active,
.req-view,
.bid-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}