/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
    background-color: #f9fafb;
}

/* Sidebar */
.sidebar {
    width: 230px;
    background-color: #0d1b2a;
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 30px;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #1e293b;
    color: #fff;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}



/* User-Menü Wrapper */
.user-menu {
    position: absolute;
	top: 15px;
    right: 25px;
    display: inline-block;
    margin-left: auto;
}
/* ===== Topbar ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 30px; /* vorher 20px 30px oder weniger */
    border-bottom: 1px solid #e5e7eb;
    height: 70px; /* sorgt für konsistente Höhe */
    box-sizing: border-box;
}

/* Linke Seite (z. B. Titel oder Buttons) */
.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Profilbild oben rechts */
.user-menu {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

/* Content Area */
.content {
    padding: 20px 30px;
}

/* Example Ticket Cards */
.ticket-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* sorgt dafür, dass der Button links bleibt */
    transition: all 0.2s ease-in-out;
}


.ticket-card h3 {
    margin-bottom: 6px;
}

.ticket-meta {
    font-size: 0.9em;
    color: #6b7280;
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        width: 180px;
    }

    .search-input {
        width: 180px;
    }

    .user-icon {
        font-size: 1.6em;
    }
}

/* Account Settings Bereich */
.settings-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    max-width: 500px;
    margin-top: 20px;
}

.settings-box form {
    display: flex;
    flex-direction: column;
}

.settings-box label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1e293b;
}

.settings-box input {
    margin-bottom: 18px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1em;
}

.settings-box input:focus {
    border-color: #1e293b;
    outline: none;
}

.save-btn {
    background-color: #1e293b;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.save-btn:hover {
    background-color: #334155;
    transform: scale(1.03);
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 40px; /* Platz für das Auge */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%); /* zentriert vertikal */
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #475569;
    line-height: 1;
    padding: 0;
}

.toggle-password:hover {
    color: #1e293b;
    transform: translateY(-50%) scale(1.1);
}

/* ========== Ticket-System Styles ========== */

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Button & Titel nebeneinander links */
    background: #fff;
    padding: 15px 30px;
    border-bottom: 1px solid #e5e7eb;
    gap: 20px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-left h1 {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.btn-create {
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-create:hover {
    background: #334155;
}

/* Ticket-Liste */
.content {
    padding: 30px;
}

.ticket-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
	overflow: hidden; /* sorgt dafür, dass die abgerundeten Ecken des Buttons perfekt abschließen */

}

.ticket-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.ticket-header {
    display: flex;
    justify-content: space-between; /* Titel links, Typ + Status rechts */
    align-items: center; 
    margin-bottom: 10px;
}

.ticket-header h3 {
    margin: 0;
    flex: 1; /* sorgt dafür, dass der Titel den verfügbaren Platz nutzt */
    font-size: 1.2em;
    color: #111827;
}


.ticket-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end; /* alles nach rechts schieben */
    flex-shrink: 0;
}


.ticket-type {
    background: #e2e8f0;
    color: #1e293b;
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
}

.ticket-status {
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
}

/* Statusfarben */
.status-offen {
    background: #fee2e2;
    color: #b91c1c;
}

.status-in-bearbeitung {
    background: #fef9c3;
    color: #92400e;
}

.status-weiter-geleitet {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-erledigt {
    background: #dcfce7;
    color: #15803d;
}

.ticket-info {
    color: #555;
    font-size: 0.95em;
    margin-top: 5px;
}

.ticket-info p {
    margin: 3px 0;
}

.btn-open {
    display: block;
    width: 100%; /* Button über die gesamte Breite */
    text-align: center;
    background: #1e293b;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 0 0 10px 10px; /* abgerundet unten, damit er mit der Karte verschmilzt */
    font-weight: 600;
    margin-top: 15px;
    transition: 0.2s;
}

.btn-open:hover {
    background: #334155;
}

.user-menu {
    position: absolute;
    top: 15px;
    right: 25px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    cursor: default;
    transition: transform 0.15s, box-shadow 0.15s;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(0,0,0,0.15);
}

/* User Icon (Konto-Button) */
.user-icon {
    font-size: 1.8em;
    text-decoration: none;       /* entfernt Unterstreichung */
    color: #0d1b2a;              /* Standardfarbe */
    transition: color 0.2s, transform 0.15s;
    cursor: pointer;
}

/* Hover-Effekt – beim Darüberfahren */
.user-icon:hover {
    color: #334155;              /* leicht heller/dunkler Ton */
    transform: scale(1.08);
}

/* Aktiver Zustand – wenn man auf der Konto-Seite ist */
.user-icon.active {
    color: #1e293b;              /* dunkler, kräftiger Ton */
    transform: scale(1.12);      /* etwas größer */
    font-weight: 600;            /* leicht fetter für Betonung */
}

/* Wenn aktiv UND Hover gleichzeitig (sorgt für harmonischen Übergang) */
.user-icon.active:hover {
    color: #0f172a;              /* noch dunkler beim Hover */
    transform: scale(1.15);
}

