:root[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.125);
    --shadow-color: rgba(0,0,0,0.1);
    --header-bg: #f8f9fa;
    --timeline-color: #007bff;
}

/* ���������� ��� ������ ���� */
:root[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --border-color: rgba(255,255,255,0.125);
    --shadow-color: rgba(0,0,0,0.5);
    --header-bg: #343a40;
    --timeline-color: #0056b3;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.card-header {
    background-color: var(--header-bg);
}

.timeline-item {
    border-left-color: var(--timeline-color);
}

.timeline-item:before {
    background: var(--timeline-color);
}

.text-muted {
    color: var(--text-color) !important;
    opacity: 0.6;
}

/* Старый стиль для theme-switch (закомментирован)
/*
.theme-switch {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1000;
    padding: 12px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: var(--card-bg);
    border: 2px solid var(--timeline-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    color: var(--timeline-color);
}

.theme-switch:hover {
    transform: translateY(-2px) rotate(360deg);
    box-shadow: 0 4px 15px var(--shadow-color);
}
*/

/*    */
.navbar {
    background-color: var(--card-bg) !important;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
}

.navbar-brand {
    color: var(--timeline-color) !important;
    font-weight: bold;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.nav-link {
    color: var(--text-color) !important;
    margin: 0 10px;
    padding: 8px 16px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: var(--timeline-color);
    color: white !important;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--timeline-color);
    color: white !important;
}

.navbar-toggler {
    border-color: var(--timeline-color);
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--timeline-color);
}

.navbar-toggler-icon::before {
    content: '\f0c9';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* �������� ��� ����-������� */
.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
}

/* ����� ��� ����������� ���� */
.dropdown-menu {
    background-color: var(--card-bg);
    border: none;
    box-shadow: 0 4px 15px var(--shadow-color);
    border-radius: 15px;
    padding: 1rem 0;
}

.dropdown-item {
    color: var(--text-color);
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--timeline-color);
    color: white;
    transform: translateX(5px);
}

.table {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.thead-dark {
    background-color: #343a40;
    color: white;
}
.badge {
    font-size: 0.9em;
    padding: 0.5em 1em;
    margin: 0.2em;
}
.btn-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}
.btn-outline-primary:hover, .btn-outline-danger:hover {
    transform: translateY(-1px);
    transition: all 0.2s;
}
.container {
    max-width: 1000px;
}

.profile-image-container {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-color);
    box-shadow: 0 0 15px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Новый стиль для theme-switch в navbar */
.navbar .theme-switch {
    position: static;
    margin-right: 16px;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    color: var(--timeline-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Новый современный кастомный switch для темы */
.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.theme-switch-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.theme-switch-slider {
    width: 36px;
    height: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    margin-right: 8px;
    position: relative;
    transition: background 0.3s;
    box-shadow: 0 1px 4px var(--shadow-color);
}
.theme-switch input:checked + .theme-switch-label .theme-switch-slider {
    background: #007bff;
}
.theme-switch-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    background: var(--timeline-color);
    border-radius: 50%;
    transition: transform 0.3s, background 0.3s;
    transform: translateX(0);
}
.theme-switch input:checked + .theme-switch-label .theme-switch-slider::before {
    transform: translateX(16px);
    background: #fff;
}
.theme-switch #themeIcon {
    font-size: 1.2em;
    margin-left: 4px;
    transition: color 0.3s;
}

/* Адаптивность для theme-switch в мобильном меню */
@media (max-width: 991.98px) {
  .navbar .theme-switch {
    margin: 0 0 0 0;
    padding: 0 0 0 32px;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 48px;
    justify-content: flex-start;
  }
  .theme-switch-label {
    width: auto;
    justify-content: flex-start;
  }
  .theme-switch-text {
    margin-left: 8px;
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
  }
}