/* CSS-Variablen für Themes */
:root, [data-theme="light"] {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e4e7eb;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --border-color: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --primary: #667eea;
    --primary-hover: #5a67d8;
    --success: #48bb78;
    --error: #f56565;
    --warning: #ed8936;
}

[data-theme="dark"] {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #4a5568;
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-tertiary: #cbd5e0;
    --border-color: #4a5568;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.4);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* Navbar */
.navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow);
}

.navbar-brand a {
    transition: opacity 0.2s;
}

.navbar-brand a:hover {
    opacity: 0.8;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    transition: all 0.2s;
}

.user-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    border: 2px solid var(--primary);
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}

.user-dropdown-toggle:hover {
    background: var(--bg-tertiary);
}

.dropdown-arrow {
    transition: transform 0.2s;
}

.user-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

.dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.25rem 0;
}

.dropdown-item .badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
}

/* Main Content */
.main-content {
    max-width: 1920px;
    margin: 30px 60px;
    padding: 0;
}

/* Cards */
.card {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 1.5rem;
}

/* Dashboard Grid - 3 Spalten System */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.widget-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.widget-card .card-body {
    flex: 1;
    overflow: hidden;
}

/* Widget-Größen - werden von widget-sizes.css überschrieben */

.widget-card.draggable {
    cursor: move;
    opacity: 0.95;
    border: 2px dashed var(--primary);
}

.drag-handle {
    cursor: grab;
    font-size: 1.5rem;
    color: var(--text-tertiary);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.input, .select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.2s;
}

.input:focus, .select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-sm {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: var(--error);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.role-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Theme Selector */
.theme-selector {
    display: flex;
    gap: 1rem;
}

.theme-btn {
    padding: 1rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.theme-btn.active {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

/* Auth Page */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.auth-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auth-card h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.auth-card p {
    color: #666;
    margin-bottom: 2rem;
}

/* Todo Widget */
.todo-widget {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.todo-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.todo-form .form-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.todo-form .form-row .input,
.todo-form .form-row .select {
    flex: 1;
    min-width: 120px;
}

.todo-form .form-row .btn {
    flex-shrink: 0;
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    flex: 1;
    min-height: 200px;
    max-height: calc(100vh - 500px);
}

.todo-list::-webkit-scrollbar {
    width: 6px;
}

.todo-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.todo-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.todo-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: 8px;
    border-left: 4px solid var(--border-color);
    transition: all 0.2s;
    flex-shrink: 0;
    min-width: 0;
}

.todo-item.priority-high {
    border-left-color: var(--error);
}

.todo-item.priority-medium {
    border-left-color: var(--warning);
}

.todo-item.priority-low {
    border-left-color: var(--success);
}

.todo-item.status-done {
    opacity: 0.6;
}

.todo-item.status-done .todo-content {
    text-decoration: line-through;
}

.todo-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.todo-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.todo-header strong {
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

.todo-priority {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.todo-date {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
}

.todo-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0.5rem 0;
}

.todo-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.todo-creator {
    font-style: italic;
}

.todo-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.todo-actions .select {
    min-width: 100px;
}

.todo-actions .btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.875rem;
}

/* ToDo Footer */
.todo-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.btn-toggle-done {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: none;
    width: 100%;
}

.btn-toggle-done:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--primary);
}

.done-count {
    color: var(--text-tertiary);
    margin-left: 0.25rem;
}

.badge-done {
    background: var(--success);
    color: white;
}

/* Avatar Section */
.avatar-section {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.avatar-preview {
    flex-shrink: 0;
}

.avatar-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

.avatar-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    box-shadow: var(--shadow);
}

.avatar-actions {
    flex: 1;
}

/* Admin Tables */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table thead {
    background: var(--bg-tertiary);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.admin-table tbody tr:hover {
    background: var(--bg-tertiary);
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-tertiary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

/* Role Cards Grid */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.role-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.role-card-header h4 {
    margin: 0;
    color: var(--primary);
}

.role-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.role-permissions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.role-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-large {
    max-width: 900px;
}

/* Dual List Selector */
.dual-list-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    min-height: 400px;
}

.dual-list-box {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.dual-list-box h4 {
    padding: 1rem;
    margin: 0;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.dual-list-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.dual-list-search .input {
    margin: 0;
    font-size: 0.9rem;
}

.dual-list-items {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
    min-height: 300px;
    max-height: 400px;
}

/* Scrollbar Styling */
.dual-list-items::-webkit-scrollbar {
    width: 8px;
}

.dual-list-items::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.dual-list-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.dual-list-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.dual-list-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dual-list-item:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
}

.dual-list-item.selected {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--primary);
    border-width: 2px;
}

.dual-list-item strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.dual-list-item small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.dual-list-controls {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.5rem;
}

.dual-list-controls .btn {
    padding: 0.75rem 1rem;
    min-width: 60px;
    width: 60px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow);
}

.dual-list-controls .btn:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* System Info */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item strong {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.info-item span {
    font-size: 1.1rem;
}

.update-history {
    max-height: 400px;
    overflow-y: auto;
}

/* Update Page */
.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: all 0.3s;
}

.update-item:hover {
    box-shadow: var(--shadow);
}

.update-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.update-info h4 {
    margin: 0;
    color: var(--text-primary);
}

.update-versions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.version-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.version-old {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.version-new {
    background: var(--success);
    color: white;
}

.version-arrow {
    color: var(--text-tertiary);
    font-weight: bold;
}

.update-actions {
    display: flex;
    gap: 0.5rem;
}

.update-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    animation: progressPulse 1.5s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.update-log {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.update-log-global {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .avatar-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .navbar-menu {
        flex-direction: column;
        width: 100%;
    }

    .user-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }

    .user-dropdown.active .user-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        flex-direction: column;
    }

    .todo-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .todo-actions {
        width: 100%;
        justify-content: space-between;
    }

    .todo-actions .select {
        flex: 1;
        min-width: auto;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .tabs {
        overflow-x: auto;
    }

    .dual-list-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .dual-list-controls {
        flex-direction: row;
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem;
    }

    .dual-list-controls .btn {
        width: 45%;
        min-width: auto;
    }

    .dual-list-box:nth-child(3) {
        order: 3;
    }
}

