* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: rgba(255, 255, 255, 0.1);
    --text-primary: #333;
    --text-secondary: white;
    --card-bg: rgba(255, 255, 255, 0.95);
    --border-color: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    min-height: 100vh;
    color: var(--text-primary, #333);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-width: 300px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.3rem;
    font-weight: 500;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-form button:hover {
    transform: translateY(-2px);
}

.error {
    background: #ff4757;
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header h1 {
    color: white;
    font-size: 2rem;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.settings-btn, .logout-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.settings-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.settings-btn:active, .logout-btn:active {
    transform: translateY(0);
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(15px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow-y: auto;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.settings-panel.open {
    right: 0;
}

.settings-content {
    padding: 2.5rem;
}

.settings-content h3 {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 1rem;
}

.setting-group {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.setting-group input[type="text"], 
.setting-group input[type="color"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.setting-group input[type="text"]:focus,
.setting-group input[type="color"]:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.setting-group input[type="range"] {
    width: 100%;
    margin-bottom: 12px;
    height: 6px;
    border-radius: 3px;
    background: #e1e8ed;
    outline: none;
    appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color, #667eea);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.setting-group button {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.setting-group button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.reset-btn {
    background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%) !important;
    width: 100%;
    padding: 12px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.close-btn {
    background: linear-gradient(135deg, #57606f 0%, #2f3542 100%) !important;
    width: 100%;
    margin-top: 1.5rem;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

#iconSizeValue {
    font-weight: 600;
    color: var(--primary-color, #667eea);
    font-size: 14px;
}

.password-message {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.password-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.terminal-widget {
    background: #1e1e1e;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    width: 600px;
    height: 450px;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.terminal-widget.minimized {
    display: none;
}

.terminal-widget.maximized {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    right: 10px !important;
    bottom: 60px !important;
    width: auto !important;
    height: auto !important;
    z-index: 1000;
}

.terminal-header {
    background: #2b2b2b;
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #1a1a1a;
    cursor: move;
    user-select: none;
    position: relative;
}

.terminal-buttons {
    display: flex;
    gap: 4px;
    position: absolute;
    right: 8px;
}

.terminal-btn {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
    font-weight: normal;
    transition: all 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-btn:hover {
    transform: scale(1.05);
}

.terminal-btn.close {
    background: #404040;
    color: #cccccc;
}

.terminal-btn.close:hover {
    background: #d32f2f;
    color: white;
}

.terminal-btn.close::after {
    content: "×";
}

.terminal-btn.minimize {
    background: #404040;
    color: #cccccc;
}

.terminal-btn.minimize:hover {
    background: #555555;
    color: white;
}

.terminal-btn.minimize::after {
    content: "⌄";
}

.terminal-btn.maximize {
    background: #404040;
    color: #cccccc;
}

.terminal-btn.maximize:hover {
    background: #555555;
    color: white;
}

.terminal-btn.maximize::after {
    content: "⌃";
}

.terminal-title {
    color: #cccccc;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.terminal-content {
    padding: 15px;
    color: #00ff00;
    font-size: 14px;
    line-height: 1.4;
    background: #1e1e1e;
    flex: 1;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 6px;
    white-space: pre-wrap;
}

.terminal-line:first-child {
    color: #ffffff;
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #00ff00;
    animation: blink 1s infinite;
    margin-left: 5px;
}

.btop-output {
    color: #00ff00;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    line-height: 1.2;
    white-space: pre;
    overflow-x: auto;
    margin: 8px 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    border-left: 3px solid #00ff00;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, #666 30%, #666 40%, transparent 40%, transparent 60%, #666 60%, #666 70%, transparent 70%);
    cursor: nw-resize;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.resize-handle:hover {
    opacity: 1;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: linear-gradient(180deg, #31363b 0%, #232629 100%);
    border-top: 1px solid #4d4d4d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.taskbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(180deg, #3daee9 0%, #2980b9 100%);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.start-menu:hover {
    background: linear-gradient(180deg, #4fc3f7 0%, #3498db 100%);
    transform: translateY(-1px);
}

.start-icon {
    font-size: 16px;
}

.start-text {
    font-size: 13px;
}

.taskbar-apps {
    display: flex;
    gap: 5px;
}

.taskbar-app {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #eff0f1;
    font-size: 12px;
    border: 1px solid transparent;
}

.taskbar-app:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.taskbar-app.active {
    background: rgba(61, 174, 233, 0.3);
    border-color: #3daee9;
}

.app-icon {
    font-size: 14px;
}

.app-name {
    font-weight: 500;
}

.taskbar-right {
    display: flex;
    align-items: center;
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #eff0f1;
}

.tray-item {
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.tray-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tray-time {
    font-family: monospace;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .taskbar {
        height: 56px;
    }
    
    .start-text, .app-name {
        display: none;
    }
    
    .taskbar-app {
        padding: 8px;
    }
    
    .start-menu {
        padding: 10px;
    }
    
    .terminal-widget {
        width: 95vw;
        height: 60vh;
        max-width: 500px;
    }
}

.dashboard {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--icon-size, 150px), 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-icon {
    background: var(--card-bg, rgba(255, 255, 255, 0.95));
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    user-select: none;
    width: var(--icon-size, 150px);
    height: var(--icon-size, 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service-icon.dragging {
    opacity: 0.8;
    transform: rotate(5deg);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon .icon {
    font-size: calc(var(--icon-size, 150px) * 0.3);
    margin-bottom: 0.5rem;
    display: block;
}

.service-icon span {
    font-weight: 600;
    color: var(--text-primary, #333);
    font-size: calc(var(--icon-size, 150px) * 0.1);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .dashboard {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .service-icon {
        padding: 1.5rem;
    }
    
    .service-icon .icon {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .login-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

.tool-manager-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.tool-manager-modal.open {
    display: flex;
}

.tool-manager-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tool-manager-header {
    background: linear-gradient(135deg, var(--primary-color, #667eea) 0%, var(--secondary-color, #764ba2) 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-manager-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.tool-manager-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-manager-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.tool-list h4, .tool-form h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.2rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.tool-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--primary-color, #667eea);
}

.tool-item-info {
    flex: 1;
}

.tool-item-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.tool-item-url {
    font-size: 0.85rem;
    color: #7f8c8d;
    word-break: break-all;
}

.tool-item-actions {
    display: flex;
    gap: 0.5rem;
}

.tool-item button {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-tool-btn {
    background: #3498db;
    color: white;
}

.delete-tool-btn {
    background: #e74c3c;
    color: white;
}

.tool-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 1rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@media (max-width: 768px) {
    .tool-manager-body {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tool-manager-content {
        width: 95%;
        margin: 1rem;
    }
}

.icon-input-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.icon-input-container input {
    flex: 1;
}

.icon-picker-btn {
    padding: 0.75rem;
    background: var(--primary-color, #667eea);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    min-width: 50px;
}

.icon-picker-btn:hover {
    background: var(--secondary-color, #764ba2);
    transform: translateY(-1px);
}

.emoji-picker {
    display: none;
    position: absolute;
    background: white;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    width: 320px;
    max-height: 400px;
    margin-top: 0.5rem;
}

.emoji-picker.open {
    display: block;
}

.emoji-categories {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px 10px 0 0;
    overflow-x: auto;
    padding: 0.5rem;
}

.emoji-cat-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
    color: #666;
}

.emoji-cat-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.emoji-cat-btn.active {
    background: var(--primary-color, #667eea);
    color: white;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
    padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-item {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.emoji-item:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.emoji-item:active {
    background: var(--primary-color, #667eea);
    color: white;
}

.dashboard-controls {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-container input:focus {
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-container select {
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-btn.active {
    background: var(--primary-color, #667eea);
    border-color: var(--primary-color, #667eea);
}

.service-icon .favorite-star {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.service-icon .status-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
}

.status-indicator.online {
    background: #00ff00;
}

.status-indicator.offline {
    background: #ff0000;
}

.status-indicator.checking {
    background: #ffa500;
    animation: pulse 1.5s infinite;
}

.service-icon .response-time {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.dashboard.list-view {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 2rem;
}

.dashboard.list-view .service-icon {
    width: 100%;
    height: auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.dashboard.list-view .service-icon .icon {
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
}

.dashboard.list-view .service-icon span {
    font-size: 1rem;
    flex: 1;
}

.bulk-import-section h4 {
    margin: 1.5rem 0 0.5rem 0;
    color: #2c3e50;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.bulk-import-section h4:first-child {
    margin-top: 0;
}

.bulk-import-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 12px;
    resize: vertical;
    margin-bottom: 0.5rem;
}

.bulk-import-section textarea:focus {
    outline: none;
    border-color: var(--primary-color, #667eea);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Dark Mode Variablen */

[data-theme="dark"] {
    --primary-color: #4a90e2;
    --secondary-color: #357abd;
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-secondary: rgba(0, 0, 0, 0.3);
    --text-primary: #e0e0e0;
    --text-secondary: #e0e0e0;
    --card-bg: rgba(30, 30, 30, 0.95);
    --border-color: rgba(255, 255, 255, 0.1);
}

/* Theme Varianten */
[data-theme="ocean"] {
    --primary-color: #0077be;
    --secondary-color: #00a8cc;
    --bg-primary: linear-gradient(135deg, #0077be 0%, #00a8cc 100%);
}

[data-theme="forest"] {
    --primary-color: #2d8659;
    --secondary-color: #3cb371;
    --bg-primary: linear-gradient(135deg, #2d8659 0%, #3cb371 100%);
}

[data-theme="sunset"] {
    --primary-color: #ff6b35;
    --secondary-color: #f7931e;
    --bg-primary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

[data-theme="purple"] {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --bg-primary: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

[data-theme="minimal"] {
    --primary-color: #34495e;
    --secondary-color: #2c3e50;
    --bg-primary: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    --text-secondary: #2c3e50;
    --border-color: rgba(0, 0, 0, 0.1);
}


.health-dashboard {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.health-summary {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    gap: 1rem;
}

.health-stat {
    text-align: center;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color, #667eea);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.health-toggle {
    display: block;
    margin: 0 auto;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.health-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.health-details {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.health-chart {
    text-align: center;
    margin-bottom: 2rem;
}

.health-alerts h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.alert-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid;
}

.alert-item.info {
    background: rgba(52, 152, 219, 0.1);
    border-color: #3498db;
    color: var(--text-primary);
}

.alert-item.warning {
    background: rgba(241, 196, 15, 0.1);
    border-color: #f1c40f;
    color: var(--text-primary);
}

.alert-item.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: var(--text-primary);
}

.keyboard-shortcuts {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 3000;
    max-width: 500px;
    display: none;
}

.keyboard-shortcuts.open {
    display: block;
}

.shortcuts-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.shortcut-key {
    background: var(--primary-color, #667eea);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-filter-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-container {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard.list-view .service-icon {
        padding: 0.75rem;
    }
    
    .dashboard.list-view .service-icon .icon {
        font-size: 1.5rem;
    }
    
    .health-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .health-stat {
        min-width: auto;
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
}

/* List View Mode */
.dashboard.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard.list-view .service-icon {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 1rem;
    text-align: left;
}

.dashboard.list-view .service-icon .icon {
    font-size: 2rem;
    margin-bottom: 0;
    margin-right: 1rem;
}

.dashboard.list-view .service-icon span {
    font-size: 1rem;
    text-align: left;
}

/* Login-Logs Styling */
.login-logs {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 1rem;
}

.log-entry {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.success {
    background: rgba(40, 167, 69, 0.1);
    border-left: 4px solid #28a745;
}

.log-entry.error {
    background: rgba(220, 53, 69, 0.1);
    border-left: 4px solid #dc3545;
}

.log-entry.info {
    background: rgba(23, 162, 184, 0.1);
    border-left: 4px solid #17a2b8;
}

.log-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.log-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}