: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);

}
.user-profile:hover{
    background-color: rgba(138, 43, 226, 0.15);
    border-radius: 5px;
    cursor: pointer;
}
.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);
    text-decoration: none;
    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);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(0);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.75);
}
.card h3 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card .value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}
.card .trend {
    font-size: 15px;
    margin-top: 5px;
    color: #2e6645; /* Зеленый для позитива */
}
.card .trend.negative {
    color: #8a0d24;
    font-size: 15px;
}
.recent-tickets {
    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;
  pointer-events: none; 
}
.client:hover{
background-color: rgba(138, 43, 226, 0.15);
border-radius: 8px;
cursor: pointer;
}
.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;
}
.tabletickgop {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.tabletickgop:hover {
    background-color: #e0e0e0;  /* не красный, а светлее */
}
.more-link{
    text-decoration: none;
    background-color: rgb(247, 241, 241);
    width: 14px;
    border-radius:4px;
    border: 1px solid #d1c4e9;
    font-size: 15px;
    color: black;
}
.more-link:hover {
    border-color: #8a2be2;
}

.status.new { background: #e3f2fd; color: #1976d2; }
.status.progress { background: #fff3e0; color: #f57c00; }
.status.done { background: #e8f5e9; color: #2e7d32; }
.status.waiting {
    background-color: #f3e5f5;
    color: #7b1fa2;}

