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

:root {
    --bg-dark: #202225; /* Discord sötét háttér */
    --sidebar-bg: #2f3136;
    --card-bg: #36393f;
    --primary-color: #5865F2; /* Blurple (Discord lila/kék) */
    --text-main: #dcddde;
    --text-muted: #8e9297;
    --danger: #ed4245;
    --success: #3ba55d;
    --warning: #faa61a;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    z-index: 10;
}

.logo-area {
    padding: 25px 20px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area i {
    color: var(--primary-color);
}

.nav-menu {
    list-style: none;
    padding: 20px 10px;
    flex-grow: 1;
}

.nav-menu li {
    margin-bottom: 5px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-menu a i {
    width: 24px;
    font-size: 1.1rem;
}

.nav-menu a .badge {
    margin-left: auto;
    background-color: var(--danger);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: rgba(79, 84, 92, 0.32);
    color: #fff;
}

.nav-menu a.active {
    background-color: var(--primary-color);
}

.user-area {
    padding: 15px 20px;
    background-color: #292b2f;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-area img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.user-info .name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.user-info .role {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Fő tartalom */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 60px;
    background-color: var(--card-bg);
    border-bottom: 1px solid rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    padding: 0 30px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Nézetek */
.view-section {
    display: none;
    flex-grow: 1;
    overflow-y: auto;
    padding: 30px;
}
.view-section.active {
    display: block;
}

/* Cards & Layouts */
.header-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mod-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mod-card-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* Gombok */
.btn {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}
.btn-primary { background-color: var(--primary-color); }
.btn-primary:hover { background-color: #4752c4; }
.btn-success { background-color: var(--success); }
.btn-success:hover { background-color: #328f50; }
.btn-danger { background-color: var(--danger); }
.btn-danger:hover { background-color: #c9383b; }

/* Whitelist Application form */
.app-field {
    margin-bottom: 15px;
}
.app-field label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.app-field .answer {
    background-color: #2f3136;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid rgba(0,0,0,0.2);
}

.action-bar {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 15px;
}

textarea.reason-input {
    width: 100%;
    background: #202225;
    border: 1px solid rgba(0,0,0,0.3);
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
    margin-bottom: 10px;
    outline: none;
}
textarea.reason-input:focus {
    border-color: var(--primary-color);
}

/* Ticket Rendszer Osztott Nézet */
.ticket-container {
    display: flex;
    height: calc(100vh - 120px);
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
}

.ticket-list {
    width: 300px;
    background: #2f3136;
    border-right: 1px solid #202225;
    overflow-y: auto;
}

.ticket-item {
    padding: 15px;
    border-bottom: 1px solid #202225;
    cursor: pointer;
    transition: 0.2s;
}
.ticket-item:hover { background: #36393f; }
.ticket-item.active { background: #393c43; border-left: 3px solid var(--primary-color); }

.ticket-item .title { font-weight: 600; color: #fff; margin-bottom: 5px; }
.ticket-item .preview { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ticket-chat {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message { display: flex; gap: 15px; }
.message img { width: 40px; height: 40px; border-radius: 50%; }
.message .author { font-weight: 600; color: #fff; margin-bottom: 5px; display: flex; gap: 10px; align-items: baseline; }
.message .time { font-size: 0.75rem; color: var(--text-muted); font-weight: normal; }
.message .content { font-size: 0.95rem; line-height: 1.5; }

.chat-input {
    padding: 20px;
    background: #36393f;
    border-top: 1px solid #202225;
}
.chat-input input {
    width: 100%;
    background: #40444b;
    border: none;
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    outline: none;
}

/* Üres állapotok (Nincs adat) */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    padding: 50px;
}
.empty-state i {
    font-size: 5rem;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.05);
}
.empty-state h2 {
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Oswald', sans-serif;
}
