:root {
    --primary: #8a2be2;
    --primary-dark: #6a1b9a;
    --text-dark: #2e1a36;
    --text-light: #665c70;
    --glass-bg:rgb(245, 238, 238);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}
body {
    background:linear-gradient(135deg, #4b0082 0%, #2e0052 100%); /* #0f0518 */
    height: 100vh;
    overflow: hidden;
    display: flex;
    color: var(--text-dark);
    position: relative;
 }
.sidebar {
    width: 260px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.logo{
   font-size: 22px;
   font-weight: 800;
   color: var(--primary);
   margin-bottom: 50px;
   display: flex;
   align-items: center;
   gap: 10px;
}
.nav-links{
   list-style: none;
   flex-grow: 1; 
}
.nav-links li {
    margin-bottom: 15px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 16px;
    padding: 12px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}
.nav-links a:hover, .nav-links a.active {
    background: rgba(138, 43, 226, 0.15);
    color: var(--primary);
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}
.main-content {
    flex-grow: 1;
    padding: 40px;
    overflow-y: auto;
    position: relative;
    z-index: 10;
}
 header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
h1 {
    font-size: 28px;
    color: var(--text-dark);
}
.btn-new {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 24px;
    border-radius: 12px;
    font-weight: 600px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: 0.3s;
}
.btn-new:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}
.recent-tickets {
    height: 90%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}
.section-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
}
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--text-light);
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
td {
    padding: 15px;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
tr:last-child td {
    border-bottom: none;
}
.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
canvas{
  position: fixed;
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index:-1;
}
th select {
    border-radius: 6px;
    margin-left: 13px;
    background-color: white;
}
th select:hover {
    border-color:#6a1b9a;
    transform: translateY(-0.8px);
}
th input{
    margin-right: 15px;
    font-size: 13px;
    color: black;
    background-color: white;
    border: 1px solid #d1c4e9;
    padding: 6px 12px; 
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    height: 32px;
    width: 200px; /* Фиксированная высота для аккуратности */
    box-sizing: border-box;
}
th input:hover{
    border-color: #8a2be2;
}
th input.active{
    border-color: #8a2be2;
}
#range-picker::placeholder{
    color: black;
}
.date-input-wrapper {
    position: relative; /* Важно! Чтобы стрелка позиционировалась относительно этого блока */
    display: inline-block;
}

/* --- ИСПРАВЛЕННАЯ СТРЕЛКА --- */
.arrowB{
    position: absolute; /* Абсолютное позиционирование */
    right: 30px;        /* Отступ справа */
    top: 55%;           /* Центрирование по вертикали */
    margin-top: -5px;   /* Корректировка половины высоты стрелки */
    width: 6px;
    height: 6px;
    border-right: 2px solid #6a1b9a;
    border-bottom: 2px solid #6a1b9a;
    transform: rotate(45deg); /* Исходное положение (вниз-вправо) */
    transition: transform 0.3s;
    pointer-events: none; /* Чтобы клик проходил сквозь стрелку */
}
.date-input-wrapper.active .arrowB {
    transform: rotate(-135deg); /* Поворот вверх-влево */
    margin-top: -3px; /* Чуть подвигаем при повороте для красоты */
}

/* Контейнер списка */
.custom-select {
    position: relative;
    width: 130px; /* Уменьшили ширину (было 200px) */
    user-select: none;
    display: inline-block; /* Чтобы не растягивался на всю строку */
}

/* Заголовок (кнопка) */
.select-header {
    background: white;
    border: 1px solid #d1c4e9;
    color: black;
    
    /* Уменьшили отступы и шрифт */
    padding: 6px 12px; 
    font-size: 13px; 
    
    border-radius: 7px; /* Чуть меньше скругление под размер */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 600;
    height: 32px; /* Фиксированная высота для аккуратности */
    box-sizing: border-box;
}

.select-header:hover {
    border-color: #8a2be2;
}

.select-header.active {
    border-color: #8a2be2;
    background: #fff;
    box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Маленькая стрелочка */
.arrow {
    width: 6px;  /* Уменьшили */
    height: 6px;
    border-right: 2px solid #6a1b9a;
    border-bottom: 2px solid #6a1b9a;
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-top: -2px;
}

.select-header.active .arrow {
    transform: rotate(-135deg);
    margin-top: 2px;
}

/* Выпадающий список */
.select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #8a2be2;
    border-top: none;
    border-radius: 2px 2px 8px 8px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 100;
}

.select-options.show {
    max-height: 250px;
    opacity: 1;
    margin-top: -2px;
}

/* Опции внутри */
.option {
    padding: 8px 12px; /* Уменьшили отступы */
    cursor: pointer;
    color: rgb(46, 46, 46);
    transition: background 0.2s;
    font-size: 13px; /* Уменьшили шрифт */
}

.option:hover {
    background: #f3e5f5;
}

.option.selected {
    background:#f3e5f5;
}
.avatarlink{
    text-decoration: none;
    list-style: none;
}
.avatarlink:visited{
    color:black;
}
.avatarlink.activeB{
    background: rgba(138, 43, 226, 0.15);
    color: var(--primary);
    border-radius: 8px;
}
.user-profile:hover{
    background-color: rgba(138, 43, 226, 0.15);
    border-radius: 5px;
    cursor: pointer;
}
.tabletickgop {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.tabletickgop:hover {
    background-color: #e0e0e0;  /* не красный, а светлее */
}
.status.new { background: #e3f2fd; color: #1976d2; }
.status.progress { background: #fff3e0; color: #f57c00; }
.status.done { background: #e8f5e9; color: #2e7d32; }
