/* Система тем для WMS */

/* Темная тема */
body.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-theme .navbar {
    background-color: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .navbar-menu a {
    color: #e0e0e0;
}

body.dark-theme .navbar-menu a:hover,
body.dark-theme .navbar-menu a.active {
    background-color: #3d3d3d;
}

body.dark-theme .dashboard {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .data-table {
    background: #2d2d2d;
    color: #e0e0e0;
}

body.dark-theme .data-table th {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-theme .data-table td {
    border-color: #444;
}

body.dark-theme .data-table tbody tr:hover {
    background-color: #3d3d3d !important;
}

body.dark-theme .breadcrumbs {
    background-color: #2d2d2d;
    border-bottom-color: #444;
}

body.dark-theme .breadcrumb-item a {
    color: #5dade2;
}

body.dark-theme .breadcrumb-item span {
    color: #b0b0b0;
}

/* Синяя тема */
body.blue-theme .navbar {
    background-color: #1e3a5f;
}

body.blue-theme .btn-primary {
    background-color: #2563eb;
}

body.blue-theme .btn-primary:hover {
    background-color: #1d4ed8;
}

body.blue-theme .data-table th {
    background: #1e3a5f;
}

body.blue-theme .data-table tbody tr:hover {
    background-color: #e0f2fe !important;
}

/* Зеленая тема */
body.green-theme .navbar {
    background-color: #1e5f3a;
}

body.green-theme .btn-primary {
    background-color: #059669;
}

body.green-theme .btn-primary:hover {
    background-color: #047857;
}

body.green-theme .data-table th {
    background: #1e5f3a;
}

body.green-theme .data-table tbody tr:hover {
    background-color: #d1fae5 !important;
}

/* Фиолетовая тема */
body.purple-theme .navbar {
    background-color: #4c1d5f;
}

body.purple-theme .btn-primary {
    background-color: #7c3aed;
}

body.purple-theme .btn-primary:hover {
    background-color: #6d28d9;
}

body.purple-theme .data-table th {
    background: #4c1d5f;
}

body.purple-theme .data-table tbody tr:hover {
    background-color: #ede9fe !important;
}

/* Переключатель тем */
.theme-switcher-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
}

.theme-switcher-header {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.theme-switcher-items {
    display: flex;
    flex-direction: column;
}

.theme-switcher-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s;
    gap: 0.75rem;
}

.theme-switcher-item:hover {
    background-color: #f8f9fa;
}

.theme-switcher-item.active {
    background-color: #e3f2fd;
    font-weight: 500;
}

.theme-switcher-icon {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.theme-switcher-name {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.theme-switcher-check {
    color: #3498db;
    font-weight: bold;
}
