/* Базовые стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  height: 100%;
  overflow: hidden;
}
/* =============== BETA OVERLAY =============== */
#beta-overlay {
position: fixed;
top: 0; left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(12px);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
pointer-events: none;
z-index: 10000;
/* Плавный fade-in */
animation: fadeInOverlay 1s ease-out forwards;
}

/* Когда добавляем этот класс — запускаем плавный fade-out */
#beta-overlay.hide {
animation: fadeOutOverlay 4s ease-in forwards;
}

/* текст по центру */
#beta-overlay .message {
max-width: 80%;
text-align: center;
color: #fff;
font-size: 1.2rem;
line-height: 1.4;
/* чтобы текст тоже плавно исчезал вместе с контейнером */
opacity: 1;
transition: opacity 2s ease-in;
}

/* при скрытии — одновременно уводим текст */
#beta-overlay.hide .message {
opacity: 0;
}

/* ключевые кадры */
@keyframes fadeInOverlay {
from { opacity: 0; }
to   { opacity: 1; pointer-events: auto; }
}
@keyframes fadeOutOverlay {
from { opacity: 1; pointer-events: auto; }
to   { opacity: 0; pointer-events: none; }
}


body {
  min-height: 100%;
  background: #eee;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  
  font-size: 14px;
  line-height: 26px;
  padding-bottom: 50px;
  scroll-behavior: smooth;
  background: #000812;
  background: linear-gradient(90deg, rgb(1, 1, 18) 0%, rgb(4, 0, 25) 100%);
}
#main-container {
  display: flex;
  height: calc(100vh - var(--header-height, 60px));
  overflow: hidden;
   margin-top: 100px;
}
/* Уменьшаем превью-шаблонов */
#preview-area .cv-template {
/* задаём исходный размер под A4 (чтобы при скачивании всё равно PDF был нормального размера) */
width: 210mm;
min-height: 297mm;
margin: 0 auto;
overflow: auto;

/* а в интерфейсе уменьшаем визуально до 70% */
transform: scale(0.9);
transform-origin: top center;

/* оставляем скролл, если шаблон не помещается */
display: block;
}
/* боковая панель */
#editor-panel {
  width: 300px;
  min-width: 280px;
  background: #1f1f35;
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0,0,0,0.7);
  overflow-y: auto;
}

/* превью-шаблон справа */
#preview-area {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 16px;
backdrop-filter: blur(12px);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
padding: 16px;
margin: 0 auto;
overflow-y: auto;
}

/* ———————————————— */
/*  СТИЛИ ЭЛЕМЕНТОВ ПАНЕЛИ  */
/* ———————————————— */
#editor-panel h2 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  text-transform: uppercase;
  border-bottom: 2px solid #444;
  padding-bottom: 6px;
  letter-spacing: .05em;
}

#editor-panel .template-controls {
  margin: 16px 0;
  text-align: center;
}

#editor-panel .template-controls button {
  background: linear-gradient(135deg,#6e6ea3,#9c6aa6);
  color: #fff;
  border: none;
  padding: .6em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
#editor-panel .template-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(156,106,166,0.6);
}

.editor-panel h3 {
  margin: 1rem 0 .5rem;
  color: #a782ff;
  font-size: 1.1rem;
}

.editor-panel label {
  display: block;
  margin-bottom: .8rem;
  font-size: .95rem;
}

.editor-panel label input,
.editor-panel label textarea {
  width: 100%;
  padding: .5em;
  margin-top: 4px;
  background: #2c2c42;
  color: #e1e1e8;
  border: 1px solid #444;
  border-radius: 4px;
  font-size: .95rem;
  transition: border-color .2s;
}
.editor-panel label input:focus,
.editor-panel label textarea:focus {
  outline: none;
  border-color: #6e6ea3;
}

.editor-panel hr {
  border: none;
  border-top: 1px solid #ffffff;
  margin: 1.2rem 0;
}

.editor-panel h4 {
  margin: 1.2rem 0 .6rem;
  font-size: 1rem;
  color: #ffffff;
  border-bottom: 1px dashed #444;
  padding-bottom: 4px;
}

#template-1 {
  font-family: 'Lato', sans-serif;
  background-color: #fff;
  color: #333;
  padding: 40px;
  width: 794pt; /* или 1052px */
  max-width: 794pt;
  margin: 40px auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  page-break-after: always;
}


/* Для любых пустых элементов с data-default рисуем псевдоплейсхолдер */
[data-default]:empty::before {
content: attr(data-default);
/* стилизация под плейсхолдер */
color: rgba(36, 36, 36, 0.5);  /* или ваш цвет */
font-style: italic;
/* чтобы не нарушить поток документа */
display: inline-block;         
}
.cv-wrapper-1 {
  display: flex;
  flex-direction: row;
  gap: 40px;
}
.cv-template p,
.cv-template div,
.cv-template li,
.cv-template span {
white-space: pre-line;
word-break: break-word;
overflow-wrap: break-word;
}
.left-column {
  width: 35%;
  padding-right: 20px;
  border-right: 2px solid #eee;
}

.right-column {
  width: 65%;
}

.photo-box {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-title {
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #5e5e5e;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}

.contact-info,
.skills-list,
.languages-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.education-entry,
.experience-entry {
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  margin-bottom: 6px;
}

.right-column h1 {
  font-size: 2rem;
  margin: 0;
  color: #111;
}

.right-column h3 {
  font-size: 1.2rem;
  font-weight: normal;
  color: #666;
  margin-top: 4px;
  margin-bottom: 20px;
}

.right-column p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.education-entry div,
.languages-list span,
.skills-list li {
  margin-bottom: 4px;
}

/* Поддержка печати и PDF */
@media print {
  body * {
    visibility: hidden;
  }
  #template-1, #template-1 * {
    visibility: visible;
  }
  #template-1 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}

.cv-template-2 {
  background-color: #fff;
  background-image:
    /* тонкий диагональный паттерн */
    repeating-linear-gradient(
      45deg,
      rgba(0, 209, 193, 0.08) 0,
      rgba(0, 209, 193, 0.08) 1px,
      transparent 1px,
      transparent 20px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(31, 34, 53, 0.06) 0,
      rgba(31, 34, 53, 0.06) 1px,
      transparent 1px,
      transparent 20px
    );
  background-size: auto;
}

/* Яркий верхний левый угол */
.cv-template-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #00d1c1, #00a9a0);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 0;
}

/* Темный нижний правый угол */
.cv-template-2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: linear-gradient(315deg, #1f2235, #3a3e5c);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* Левая колонка — деликатный полупрозрачный блок */
.left-col-2 {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Акцентная полоса слева от заголовков */
.left-col-2 h3,
.right-col-2 h3 {
  position: relative;
  padding-left: 12px;
}
.left-col-2 h3::before,
.right-col-2 h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 60%;
  background: #00d1c1;
  transform: translateY(-50%);
}

/* Акцентный цвет ссылок и футера */
.footer-2 a {
  color: #00d1c1;
}

/* Подчёркивание заголовков разделов */
.left-col-2 h3,
.right-col-2 h3 {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 12px;
  color: #333;
}

/* Небольшая тень для правой колонки, чтобы она «парила» */
.right-col-2 {
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Немного увеличить контраст и читаемость текста */
.left-col-2 p,
.right-col-2 p,
.list-2 li {
  color: #444;
}







.cv-template-3 {
  width: 210mm;
  min-height: 297mm;
  padding: 40px;
  margin: 0 auto;
  background: #ffffff;
  font-family: 'Lato', sans-serif;
  color: #333333;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Центруем контент и даём максимальную ширину */
.cv-wrapper-3 {
  max-width: 800px;
  margin: 0 auto;
}

/* HEADER */
.header-3 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

/* Фото */
.photo-3 img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #E18C92;
}

/* Имя */
.header-3 h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  color: #2C3E50;
}

/* Должность */
.header-3 h2 {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  color: #E18C92;
  margin: 0;
}

/* Контакты в шапке */
.contact-list-3 {
  display: flex;
  list-style: none;
  padding: 0;
  margin-left: auto;
  gap: 15px;
  font-size: 12px;
  color: #777;
}
.contact-list-3 li {
  display: flex;
  align-items: center;
}
.contact-list-3 li i {
  margin-right: 6px;
  color: #E18C92;
  font-size: 14px;
}

/* Блок “о себе” */
.summary-3 {
  background: #F8F8F8;
  border-radius: 8px;
  padding: 16px;
  font-style: italic;
  color: #666;
  line-height: 1.5;
  margin-bottom: 40px;
}

/* Заголовки секций */
.experience-3 h3,
.skills-3 h3,
.education-3 h3 {
  font-size: 16px;
  text-transform: uppercase;
  color: #E18C92;
  margin-bottom: 12px;
  border-bottom: 1px solid #DDD;
  padding-bottom: 6px;
}

/* Опыт */
.experience-entry-3 {
  margin-bottom: 24px;
}
.experience-entry-3 h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 8px 0;
  color: #2C3E50;
}
.exp-meta-3 {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #777;
  margin-bottom: 12px;
}
.exp-meta-3 span {
  display: flex;
  align-items: center;
}
.exp-meta-3 span::before {
  content: "\f0b1"; /* пример иконки FontAwesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #E18C92;
}
.experience-entry-3 ul {
  list-style: disc inside;
  margin-left: 0;
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}
.experience-entry-3 p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Две колонки для Skills и Education */
.skills-3,
.education-3 {
  display: flex;
  gap: 60px;
  margin-top: 40px;
}

/* Секции внутри Skills */
.skill-section-3 {
  flex: 1;
}
.skill-section-3 h4 {
  font-size: 14px;
  margin: 6px 0;
  color: #2C3E50;
}
.skill-section-3 p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* Секции внутри Education */
.edu-entry-3 {
  flex: 1;
  margin-bottom: 16px;
}
.edu-entry-3 h4 {
  font-size: 14px;
  margin: 4px 0;
  color: #2C3E50;
}
.edu-meta-3 {
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: #777;
  margin-bottom: 4px;
}
.edu-meta-3 span {
  display: flex;
  align-items: center;
}
.edu-meta-3 span::before {
  content: "\f19d"; /* пример иконки FontAwesome */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 6px;
  color: #E18C92;
}