* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #131313;
    background-attachment: fixed;
    color: #b8c5d6;
    line-height: 1.6;
    min-height: 100vh;
    overflow: hidden;
}

/* Layout */
.dashboard-layout {
    display: flex;
    margin: 0 auto;
    min-height: calc(100vh - 70px);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: #151d1e;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}


.sidebar-title {
    color: #8b98a9;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.sidebar-menu a:hover {
    background: rgba(93, 185, 255, 0.1);
    color: #fff;
}

.sidebar-menu a.active {
    background: rgba(93, 185, 255, 0.15);
    color: #5db9ff;
    border-left: 3px solid #5db9ff;
}

.menu-icon {
    width: 20px;
    text-align: center;
}

.badge {
    margin-left: auto;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    height: calc(100vh - 50px);
    overflow: auto;
}

/* Scrollbar Styling - Modern & Smooth */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #1a1d2e;
    border-radius: 10px;
    margin: 4px 0;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 10px;
    border: 2px solid #1a1d2e;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5dade2 0%, #3498db 100%);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #3498db #1a1d2e;
}

/* Scrollbar Corner (wenn horizontal + vertikal) */
::-webkit-scrollbar-corner {
    background: #1a1d2e;
}


.page-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-header p {
    color: #8b98a9;
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #151d1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(21, 25, 46, 0.8);
    border-color: rgba(93, 185, 255, 0.3);
    transform: translateY(-2px);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-title {
    color: #8b98a9;
    font-size: 13px;
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background: rgba(93, 185, 255, 0.15);
    color: #5db9ff;
}

.stat-icon.green {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.stat-icon.orange {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 12px;
    color: #8b98a9;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Card */
.card {
    background: #151d1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.card-action {
    color: #5db9ff;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.card-action:hover {
    color: #fff;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    color: #8b98a9;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #b8c5d6;
    font-size: 14px;
}

tr:hover td {
    background: rgba(93, 185, 255, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.success {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.status-badge.warning {
    background: rgba(255, 159, 67, 0.15);
    color: #ff9f43;
}

.status-badge.danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Activity List */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.activity-dot.blue {
    background: #5db9ff;
}

.activity-dot.green {
    background: #27ae60;
}

.activity-dot.orange {
    background: #ff9f43;
}

.activity-content {
    flex: 1;
}

.activity-title {
    color: #fff;
    font-size: 14px;
    margin-bottom: 4px;
}

.activity-meta {
    color: #8b98a9;
    font-size: 12px;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.quick-action-btn {
    background: rgba(93, 185, 255, 0.1);
    border: 1px solid rgba(93, 185, 255, 0.2);
    color: #5db9ff;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.quick-action-btn:hover {
    background: rgba(93, 185, 255, 0.2);
    border-color: rgba(93, 185, 255, 0.4);
    transform: translateY(-2px);
}
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .main-content {
        padding: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}
.settings-card {
background: rgba(21, 25, 46, 0.6);
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 8px;
padding: 0;
margin-bottom: 20px;
}

.settings-card-header {
padding: 24px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-card-title {
color: #fff;
font-size: 20px;
font-weight: 600;
margin-bottom: 4px;
}

.settings-card-description {
color: #8b98a9;
font-size: 14px;
}

.settings-card-body {
padding: 24px;
}

/* Form Elements */
.form-group {
margin-bottom: 24px;
}

.form-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

label {
display: block;
color: #b8c5d6;
font-size: 14px;
font-weight: 500;
margin-bottom: 8px;
}

.label-description {
color: #8b98a9;
font-size: 12px;
font-weight: 400;
display: block;
margin-top: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
width: 100%;
padding: 12px 16px;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #fff;
font-size: 14px;
transition: all 0.3s;
font-family: inherit;
}

textarea {
resize: vertical;
min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: #5db9ff;
background: rgba(0, 0, 0, 0.4);
box-shadow: 0 0 0 3px rgba(93, 185, 255, 0.1);
}

input::placeholder,
textarea::placeholder {
color: #6b7685;
}

/* Avatar Upload */
.avatar-upload {
display: flex;
align-items: center;
gap: 24px;
margin-bottom: 24px;
}
.alert {
padding: 16px 20px;
border-radius: 8px;
margin-bottom: 24px;
font-size: 14px;
display: flex;
align-items: center;
gap: 12px;
}

.alert.success {
background: rgba(39, 174, 96, 0.15);
border: 1px solid rgba(39, 174, 96, 0.3);
color: #27ae60;
}

.alert.warning {
background: rgba(255, 159, 67, 0.15);
border: 1px solid rgba(255, 159, 67, 0.3);
color: #ff9f43;
}

.alert.danger {
background: rgba(231, 76, 60, 0.15);
border: 1px solid rgba(231, 76, 60, 0.3);
color: #e74c3c;
}

.avatar-preview {
width: 100px;
height: 100px;
border-radius: 50%;       /* rund machen */
background-color: #4a91e200; /* Hintergrundfarbe für Initialen */
color: #fff;              /* Textfarbe */
font-weight: bold;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;         /* Bild oder Text wird sauber abgeschnitten */
text-transform: uppercase; /* Initialen immer groß */
}
/* Wenn ein Bild vorhanden ist */
.avatar-preview img {
width: 100%;
height: 100%;
object-fit: cover;        /* Bild füllt den Kreis aus */
display: block;
}
.avatar-actions {
flex: 1;
}

.avatar-actions h4 {
color: #fff;
font-size: 16px;
margin-bottom: 8px;
}

.avatar-actions p {
color: #8b98a9;
font-size: 13px;
margin-bottom: 16px;
}

.avatar-buttons {
display: flex;
gap: 12px;
}
.btn {
padding: 10px 20px;
border-radius: 6px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s;
border: none;
text-decoration: none;
display: inline-block;
}

.btn-primary {
background: #5db9ff;
color: #000;
}

.btn-primary:hover {
background: #4da8ee;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(93, 185, 255, 0.3);
}

.btn-secondary {
background: rgba(255, 255, 255, 0.05);
color: #b8c5d6;
border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
background: rgba(231, 76, 60, 0.1);
color: #e74c3c;
border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
background: rgba(231, 76, 60, 0.2);
border-color: rgba(231, 76, 60, 0.5);
}

.btn-group {
display: flex;
gap: 12px;
padding-top: 8px;
}

/* Toggle Switch */
.toggle-group {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-group:last-child {
border-bottom: none;
}

.toggle-info h4 {
color: #fff;
font-size: 15px;
margin-bottom: 4px;
}

.toggle-info p {
color: #8b98a9;
font-size: 13px;
}

.toggle-switch {
position: relative;
width: 48px;
height: 26px;
flex-shrink: 0;
}

.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}

.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: 0.3s;
border-radius: 26px;
}

.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background: #8b98a9;
transition: 0.3s;
border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
background: rgba(93, 185, 255, 0.2);
border-color: #5db9ff;
}

.toggle-switch input:checked + .toggle-slider:before {
transform: translateX(22px);
background: #5db9ff;
}
/* Overlay nur für Mobile */
.overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.5);
z-index: 50;
}

.overlay.active {
display: block;
}

/* Mobile Sidebar ausblenden */
/* Mobile Sidebar */
@media (max-width: 1024px) {
.sidebar {
    position: fixed;
    top: 130px; /* Höhe deines Headers */
    left: -280px;
    width: 280px;
    height: calc(100% - 70px); /* unter dem Header */
    z-index: 100;
    transition: left 0.3s ease;
}
.sidebar.active {
    left: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 70px; /* unter Header */
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(0,0,0,0.5);
    z-index: 50;
}
.overlay.active {
    display: block;
}
}
@media (max-width: 720px) {
.dashboard-layout {
    flex-direction: column;
}
.sidebar {
    width: 240px;
}
}

@media (max-width: 480px) {
.sidebar {
    width: 200px;
}
}

.dashboard-btn,
.product-btn-secondary {
flex: 1;
padding: 0.75rem 1.5rem;
border-radius: var(--radius-md);
font-weight: 600;
text-align: center;
text-decoration: none;
cursor: pointer;
transition: all var(--transition-fast);
font-size: 0.95rem;
border: none;
}

.dashboard-btn {
color: white;
}

.dashboard-btn:hover {
box-shadow: var(--shadow-glow);
transform: translateY(-2px);
}
