/* ================================
   Global
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Pretendard', sans-serif;
    font-weight: 500;
    background-color: #1e1f22;
    color: #f2f3f5;
}

.sidebar h2,
.page-title,
.role-title {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700; /* Bold */
}

/* ================================
   Layout
================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ================================
   Sidebar
================================ */
.sidebar {
    width: 240px;
    background-color: #2b2d31;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;

    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar h2 {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    color: #ffffff;
}

.sidebar a {
    text-decoration: none;
    color: #b5bac1;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: 0.2s ease;
    font-size: 14px;
}

.sidebar a:hover {
    background-color: #404249;
    color: #ffffff;
}

.sidebar a.active {
    background-color: #5865F2;
    color: white;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* ================================
   Content Area
================================ */

.content {
    margin-left: 240px;   /* Same as sidebar width */
    flex: 1;
    padding: 40px;
    min-height: 100vh;
    overflow-y: auto;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* ================================
   Cards
================================ */

.card {
    background-color: #313338;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.role-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.role-meta {
    font-size: 14px;
    color: #b5bac1;
    margin-bottom: 5px;
}

.role-meta span.obtained {
    color: #5865F2;
    font-weight: 600;
}

.role-meta span.not-obtained {
    color: #F25858;
    font-weight: 600;
}

.role-desc {
    color: #ffffff;
}

/* ================================
   Login Page
================================ */

.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    background-color: #2b2d31;
    padding: 45px;
    border-radius: 14px;
    width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.login-card h2 {
    margin-bottom: 12px;
}

.login-card p {
    color: #b5bac1;
    margin-bottom: 30px;
}

.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    background-color: #5865F2;
    padding: 14px 20px;
    border-radius: 8px;

    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;

    transition: background-color 0.15s ease;
}

.login-button:hover {
    background-color: #4752C4;
}

/* ================================
   User Footer Section
================================ */

.user-section {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #3a3c42;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #313338;
    padding: 10px 12px;
    border-radius: 10px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.username {
    font-size: 14px;
    font-weight: 600;
    color: #f2f3f5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-id {
    font-size: 12px;
    color: #b5bac1;
}

/* ================================
   Logout Button (Subtle Style)
================================ */

.logout-btn {
    margin-top: 10px;
    display: block;
    text-align: center;
    background-color: transparent;
    padding: 8px;
    border-radius: 8px;
    color: #b5bac1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.logout-btn:hover {
    background-color: #404249;
    color: #ed4245;
}

/* ================================
   Filter Bar
================================ */

/* ================================
   Filter Bar - Full Width Inputs
================================ */
.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    width: 100%;
}

.filter-bar input,
.filter-bar select {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background-color: #313338;
    color: #f2f3f5;
    font-size: 14px;
    flex: 1;
}

.filter-bar input::placeholder {
    color: #b5bac1;
}

.filter-bar select {
    cursor: pointer;
}

.filter-bar input {
    flex: 2;
}