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

body {
    min-height: 100vh;
    display: flex;
    background: #0f1117;
    color: #f2f3f5;
    font-family: Arial, sans-serif;
}

/* SIDEBAR */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    padding: 28px 18px;
    background: #17191f;
    border-right: 1px solid #292c35;
}

.sidebar h2 {
    margin: 0 12px 30px;
    font-size: 26px;
}

.sidebar a {
    display: block;
    margin-bottom: 8px;
    padding: 13px 14px;
    border-radius: 8px;
    color: #b5bac1;
    text-decoration: none;
    transition: 0.2s;
}

.sidebar a:hover {
    background: #24262d;
    color: #ffffff;
}

/* MAIN CONTENT */

.content {
    width: 100%;
    margin-left: 250px;
    padding: 45px;
}

.content h1 {
    margin-bottom: 30px;
    font-size: 32px;
}

/* DASHBOARD CARDS */

.card {
    max-width: 600px;
    padding: 25px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.card p {
    margin: 12px 0;
    padding: 14px;
    background: #202228;
    border-radius: 8px;
    color: #dbdee1;
}

/* MOBILE */

@media (max-width: 700px) {
    .sidebar {
        width: 190px;
    }

    .content {
        margin-left: 190px;
        padding: 25px;
    }
}

/* EVENTS PAGE */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.event-card {
    padding: 22px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.event-card-header h3 {
    font-size: 19px;
}

.event-card p {
    margin: 10px 0;
    color: #b5bac1;
}

.event-card strong {
    color: #f2f3f5;
}

.status {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    background: #292c35;
}

.status-scheduled {
    background: #5865f2;
}

.status-ongoing {
    background: #248046;
}

.status-ended {
    background: #da373c;
}

.status-cancelled {
    background: #8b2f33;
}

.status-planned {
    background: #3ba55c;
}

/* ATTENDANCE PAGE */

.attendance-table {
    width: 100%;
    max-width: 900px;
    overflow: hidden;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.attendance-row {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #292c35;
    color: #b5bac1;
}

.attendance-row:last-child {
    border-bottom: none;
}

.attendance-row:hover:not(.attendance-header) {
    background: #202228;
}

.attendance-header {
    font-weight: bold;
    color: #f2f3f5;
    background: #202228;
}

/* ATTENDANCE MEMBER INFO */

.member-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.member-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-name {
    color: #f2f3f5;
    font-weight: 600;
}

.member-id {
    margin-top: 3px;
    color: #72767d;
    font-size: 12px;
}

/* CLICKABLE ATTENDANCE ROWS */

.attendance-link {
    text-decoration: none;
}

.attendance-link:hover {
    background: #202228;
}

/* ATTENDANCE PROFILE */

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: #b5bac1;
    text-decoration: none;
}

.back-link:hover {
    color: #ffffff;
}

.profile-card {
    max-width: 700px;
    padding: 25px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.profile-header h1 {
    margin: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-id {
    margin-top: 5px;
    color: #72767d;
}

.profile-stat {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    background: #202228;
    border-radius: 8px;
}

.section-title {
    margin: 35px 0 20px;
}

/* STAFF PAGE LAYOUT FIX */

.staff-role-title {
    margin-top: 32px;
    margin-bottom: 14px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.staff-avatar {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    border-radius: 50%;
    object-fit: cover;
}

.staff-card .member-name {
    font-size: 15px;
    font-weight: 600;
}

.staff-card .member-id {
    margin-top: 4px;
    font-size: 12px;
}


/* SIDEBAR USER CARD */

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 8px 22px;
    padding: 12px;
    background: #202228;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.sidebar-user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sidebar-user-text {
    min-width: 0;
}

.sidebar-user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    margin-top: 3px;
    color: #b5bac1;
    font-size: 12px;
}

/* DASHBOARD SIZE IMPROVEMENTS */

.sidebar {
    width: 230px;
    padding: 20px 16px;
}

.main-content,
.content {
    margin-left: 230px;
    padding: 32px 40px;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.sidebar a {
    font-size: 15px;
    padding: 12px 10px;
    margin-bottom: 5px;
}

.sidebar-user {
    padding: 14px;
    margin: 0 0 24px;
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
}

.sidebar-user-name {
    font-size: 15px;
}

.sidebar-user-role {
    font-size: 13px;
}

h1 {
    font-size: 32px;
}

.card {
    min-width: 520px;
    padding: 24px;
}

.card h2,
.card h3 {
    font-size: 20px;
}

.stat,
.stat-item {
    font-size: 16px;
    padding: 14px;
}

.staff-card-link {
    color: inherit;
    text-decoration: none;
}

.staff-card-link:hover {
    background: #202228;
    transform: translateY(-1px);
}

/* STAFF MANAGEMENT HISTORY */

.management-list {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.management-record {
    padding: 15px;
    background: #202228;
    border: 1px solid #292c35;
    border-radius: 9px;
}

.management-record-title {
    color: #f2f3f5;
    font-weight: 600;
    white-space: pre-wrap;
}

.management-record-meta {
    margin-top: 7px;
    color: #72767d;
    font-size: 12px;
}

.management-empty {
    padding: 15px;
    color: #72767d;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 9px;
}

.management-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.delete-button {
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: #da373c;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.delete-button:hover {
    background: #b92d32;
}


/* STAFF SEARCH AND FILTER */

.staff-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.staff-controls input,
.staff-controls select {
    padding: 11px 13px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
    font-size: 14px;
}

.staff-controls input {
    width: 280px;
}

.staff-controls select {
    min-width: 180px;
}

/* STAFF SUMMARY */

.staff-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.staff-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.staff-summary-card span {
    display: block;
    color: #b5bac1;
    font-size: 13px;
    margin-bottom: 8px;
}

.staff-summary-card strong {
    color: #ffffff;
    font-size: 26px;
}

@media (max-width: 900px) {
    .staff-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* STAFF OVERVIEW UPGRADE */

.staff-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.staff-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.staff-summary-card span {
    display: block;
    color: #b5bac1;
    font-size: 13px;
    margin-bottom: 8px;
}

.staff-summary-card strong {
    color: #fff;
    font-size: 26px;
}

.staff-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.staff-controls input,
.staff-controls select {
    padding: 11px 13px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
}

.staff-controls input {
    width: 280px;
}

.staff-card {
    display: flex;
    flex-direction: column;
}

.staff-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.staff-card-info {
    min-width: 0;
}

.staff-card-role {
    color: #b5bac1;
    font-size: 12px;
    margin-top: 3px;
}

.staff-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.staff-status-badge {
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.loa-badge {
    background: #5865f2;
    color: white;
}

.strike-badge {
    background: #da373c;
    color: white;
}

.attendance-badge {
    background: #248046;
    color: white;
}

.no-data-badge {
    background: #3f4147;
    color: #dbdee1;
}

.staff-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #2b2d31;
}

.staff-quick-actions a {
    padding: 6px 8px;
    background: #2b2d31;
    border-radius: 6px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 11px;
}

.staff-quick-actions a:hover {
    background: #35373c;
}

@media (max-width: 900px) {
    .staff-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-controls {
        flex-direction: column;
    }

    .staff-controls input {
        width: auto;
    }
}

/* STAFF PROFILE UPGRADE */

.staff-profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    padding: 24px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.staff-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.staff-profile-identity h1 {
    margin: 0;
}

.staff-profile-username {
    margin-top: 4px;
    color: #949ba4;
}

.staff-profile-role {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #2b2d31;
    color: #dbdee1;
    font-size: 12px;
    font-weight: 700;
}

.staff-profile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

.staff-profile-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.staff-profile-summary-card span {
    display: block;
    color: #949ba4;
    font-size: 13px;
    margin-bottom: 8px;
}

.staff-profile-summary-card strong {
    font-size: 25px;
    color: #fff;
}

.staff-history-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 30px;
}

.staff-history-card {
    padding: 17px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.staff-history-card-header {
    margin-bottom: 12px;
}

.staff-history-details {
    display: grid;
    gap: 8px;
}

.staff-history-details p {
    margin: 0;
}

.staff-history-details span {
    display: inline-block;
    width: 80px;
    color: #949ba4;
}

.staff-management-area {
    margin-top: 30px;
}

.staff-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.staff-management-panel {
    padding: 20px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.staff-management-panel h3 {
    margin-top: 0;
}

.staff-management-description {
    color: #949ba4;
    font-size: 13px;
    min-height: 36px;
}

.staff-management-panel textarea {
    box-sizing: border-box;
    width: 100%;
    resize: vertical;
    padding: 11px;
    margin: 8px 0 12px;
    border: 1px solid #353841;
    border-radius: 8px;
    background: #202228;
    color: #f2f3f5;
}

.staff-empty-state {
    padding: 17px;
    border: 1px dashed #353841;
    border-radius: 9px;
    color: #949ba4;
}

@media (max-width: 900px) {
    .staff-profile-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .staff-management-grid {
        grid-template-columns: 1fr;
    }
}

/* ATTENDANCE OVERVIEW UPGRADE */

.attendance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.attendance-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.attendance-summary-card span {
    display: block;
    color: #949ba4;
    font-size: 13px;
    margin-bottom: 8px;
}

.attendance-summary-card strong {
    color: #fff;
    font-size: 26px;
}

.attendance-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.attendance-controls input,
.attendance-controls select {
    padding: 11px 13px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
}

.attendance-controls input {
    width: 280px;
}

.attendance-overview-grid {
    display: grid;
    gap: 14px;
}

.attendance-overview-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.attendance-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.attendance-card-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.attendance-card-info {
    min-width: 0;
    flex: 1;
}

.attendance-role-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #2b2d31;
    color: #b5bac1;
    font-size: 11px;
    font-weight: 700;
}

.attendance-card-total {
    text-align: right;
}

.attendance-card-total strong {
    display: block;
    color: #fff;
    font-size: 25px;
}

.attendance-card-total span {
    color: #949ba4;
    font-size: 12px;
}

.attendance-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #2b2d31;
}

.attendance-card-actions a {
    padding: 6px 8px;
    background: #2b2d31;
    border-radius: 6px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 11px;
}

.attendance-card-actions a:hover {
    background: #35373c;
}

@media (max-width: 900px) {
    .attendance-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attendance-controls {
        flex-direction: column;
    }

    .attendance-controls input {
        width: auto;
    }
}

/* ATTENDANCE PROFILE UPGRADE */

.attendance-profile-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 24px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.attendance-profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    object-fit: cover;
}

.attendance-profile-identity {
    flex: 1;
}

.attendance-profile-identity h1 {
    margin: 0;
}

.attendance-profile-subtitle {
    margin-top: 5px;
    color: #949ba4;
}

.attendance-profile-staff-link {
    padding: 9px 12px;
    background: #2b2d31;
    border-radius: 7px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.attendance-profile-staff-link:hover {
    background: #35373c;
}

.attendance-profile-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 14px;
    margin: 20px 0 28px;
}

.attendance-profile-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.attendance-profile-summary-card span {
    display: block;
    color: #949ba4;
    font-size: 13px;
    margin-bottom: 8px;
}

.attendance-profile-summary-card strong {
    color: #fff;
    font-size: 26px;
}

.attendance-profile-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.attendance-profile-heading .section-title {
    margin-bottom: 4px;
}

.attendance-profile-description {
    margin: 0;
    color: #949ba4;
    font-size: 13px;
}

.attendance-profile-heading input {
    width: 250px;
    padding: 10px 12px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
}

.attendance-event-grid {
    display: grid;
    gap: 13px;
}

.attendance-event-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.attendance-event-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.attendance-event-card h3 {
    margin: 0;
}

.attendance-event-status {
    display: inline-block;
    margin-top: 7px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #2b2d31;
    color: #b5bac1;
    font-size: 11px;
    font-weight: 700;
}

.attendance-event-details {
    display: grid;
    gap: 8px;
    margin-top: 15px;
}

.attendance-event-details p {
    margin: 0;
}

.attendance-event-details span {
    display: inline-block;
    width: 95px;
    color: #949ba4;
}

@media (max-width: 700px) {
    .attendance-profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .attendance-profile-summary {
        grid-template-columns: 1fr;
    }

    .attendance-profile-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-profile-heading input {
        box-sizing: border-box;
        width: 100%;
    }
}

/* LOA OVERVIEW UPGRADE */

.loa-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.loa-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.loa-summary-card span {
    display: block;
    color: #949ba4;
    font-size: 13px;
    margin-bottom: 8px;
}

.loa-summary-card strong {
    color: #fff;
    font-size: 26px;
}

.loa-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.loa-controls input,
.loa-controls select {
    padding: 11px 13px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
}

.loa-controls input {
    width: 280px;
}

.loa-overview-grid {
    display: grid;
    gap: 14px;
}

.loa-overview-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.loa-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.loa-card-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
}

.loa-card-identity {
    flex: 1;
    min-width: 0;
}

.loa-time-badge,
.loa-request-status {
    display: inline-block;
    margin-top: 7px;
    margin-right: 5px;
    padding: 4px 7px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.loa-time-active {
    background: #248046;
    color: white;
}

.loa-time-upcoming {
    background: #5865f2;
    color: white;
}

.loa-time-past {
    background: #3f4147;
    color: #dbdee1;
}

.loa-request-status {
    background: #2b2d31;
    color: #b5bac1;
}

.loa-card-dates {
    display: flex;
    gap: 28px;
    text-align: right;
}

.loa-card-dates span {
    display: block;
    color: #949ba4;
    font-size: 11px;
    margin-bottom: 4px;
}

.loa-card-dates strong {
    color: #fff;
    font-size: 13px;
}

.loa-card-reason {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #2b2d31;
}

.loa-card-reason span {
    color: #949ba4;
    font-size: 11px;
}

.loa-card-reason p {
    margin: 5px 0 0;
}

.loa-card-actions {
    margin-top: 13px;
}

.loa-card-actions a {
    display: inline-block;
    padding: 6px 8px;
    background: #2b2d31;
    border-radius: 6px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 11px;
}

.loa-card-actions a:hover {
    background: #35373c;
}

@media (max-width: 900px) {
    .loa-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .loa-controls {
        flex-direction: column;
    }

    .loa-controls input {
        width: auto;
    }

    .loa-card-main {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .loa-card-dates {
        width: 100%;
        text-align: left;
    }
}


.loa-time-ended {
    background: #3f4147;
    color: #dbdee1;
}

/* EVENTS OVERVIEW + DETAIL */

.event-summary-grid,
.event-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin: 18px 0 24px;
}

.event-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.event-summary-card span {
    display: block;
    color: #949ba4;
    font-size: 12px;
    margin-bottom: 8px;
}

.event-summary-card strong {
    color: #fff;
    font-size: 22px;
}

.event-overview-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.event-overview-controls input,
.event-overview-controls select {
    padding: 11px 13px;
    background: #202228;
    border: 1px solid #353841;
    border-radius: 8px;
    color: #f2f3f5;
}

.event-overview-controls input {
    width: 280px;
}

.event-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 14px;
}

.event-overview-card {
    padding: 20px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
}

.event-overview-card:hover {
    border-color: #4e5058;
}

.event-overview-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.event-overview-header h3 {
    margin: 0;
}

.event-overview-details {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.event-overview-details p {
    margin: 0;
}

.event-overview-details span {
    display: inline-block;
    width: 65px;
    color: #949ba4;
}

.event-count-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #2b2d31;
}

.event-count-grid div {
    text-align: center;
}

.event-count-grid strong,
.event-count-grid span {
    display: block;
}

.event-count-grid span {
    margin-top: 4px;
    color: #949ba4;
    font-size: 11px;
}

.event-detail-hero,
.event-detail-notes {
    margin-top: 20px;
    padding: 22px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.event-detail-hero h1 {
    margin-top: 0;
}

.event-member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.event-member-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.event-member-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.event-member-card strong,
.event-member-card span {
    display: block;
}

.event-member-card span {
    margin-top: 3px;
    color: #949ba4;
    font-size: 12px;
}

@media (max-width: 900px) {
    .event-summary-grid,
    .event-detail-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-overview-controls {
        flex-direction: column;
    }

    .event-overview-controls input {
        width: auto;
    }
}

/* EVENT MANAGEMENT */

.event-management-actions {
    display: flex;
    justify-content: flex-end;
    margin: 16px 0;
}

.end-event-button {
    padding: 10px 15px;
    border: 0;
    border-radius: 8px;
    background: #da373c;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.end-event-button:hover {
    background: #b92d32;
}

.event-ended-notice {
    padding: 10px 14px;
    border-radius: 8px;
    background: #2b2d31;
    color: #b5bac1;
    font-weight: 600;
}

/* PERSONAL HOMEPAGE */

.personal-profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 18px 0 22px;
    padding: 24px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.personal-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
}

.personal-profile-identity {
    flex: 1;
}

.personal-profile-identity h2 {
    margin: 0;
    font-size: 26px;
}

.personal-profile-identity div {
    margin-top: 4px;
    color: #949ba4;
}

.personal-profile-identity span {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 6px;
    background: #2b2d31;
    color: #dbdee1;
    font-size: 12px;
    font-weight: 700;
}

.personal-profile-actions {
    display: flex;
    gap: 9px;
}

.personal-profile-actions a {
    padding: 9px 12px;
    border-radius: 7px;
    background: #2b2d31;
    color: #dbdee1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.personal-profile-actions a:hover {
    background: #35373c;
}

.personal-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.personal-summary-card {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.personal-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #949ba4;
    font-size: 13px;
}

.personal-summary-card strong {
    color: #fff;
    font-size: 26px;
}

.personal-summary-link {
    color: inherit;
    text-decoration: none;
}

.personal-summary-link:hover {
    border-color: #4e5058;
}

.personal-status-card {
    margin-bottom: 28px;
    padding: 20px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.personal-status-card h2 {
    margin-top: 0;
}

.personal-status-active,
.personal-status-loa {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.personal-status-active strong {
    color: #57f287;
}

.personal-status-loa strong {
    color: #7289da;
}

.personal-status-active span,
.personal-status-loa span {
    color: #b5bac1;
}

.personal-status-warning {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 7px;
    background: rgba(218, 55, 60, 0.16);
    color: #ff8f93;
}

.personal-dashboard-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.personal-history-list {
    display: grid;
    gap: 10px;
}

.personal-history-record {
    display: block;
    padding: 14px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 9px;
    color: inherit;
    text-decoration: none;
}

.personal-history-record strong,
.personal-history-record span {
    display: block;
}

.personal-history-record span {
    margin-top: 5px;
    color: #949ba4;
    font-size: 12px;
}

.personal-history-record:hover {
    border-color: #4e5058;
}

.personal-strike-record {
    border-left: 3px solid #da373c;
}

@media (max-width: 900px) {
    .personal-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .personal-dashboard-columns {
        grid-template-columns: 1fr;
    }

    .personal-profile-hero {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .personal-profile-actions {
        width: 100%;
    }
}

/* SETTINGS PAGE */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.settings-panel {
    padding: 20px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.settings-panel h2 {
    margin-top: 0;
}

.settings-full-panel {
    margin-bottom: 16px;
}

.settings-account {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 18px;
}

.settings-account img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.settings-account strong,
.settings-account span {
    display: block;
}

.settings-account span {
    margin-top: 3px;
    color: #949ba4;
    font-size: 12px;
}

.settings-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-top: 1px solid #292c35;
}

.settings-row span {
    color: #949ba4;
}

.settings-row strong {
    text-align: right;
}

.settings-good {
    color: #57f287;
}

.settings-muted {
    color: #949ba4;
}

.settings-role-list {
    display: grid;
    gap: 9px;
}

.settings-role {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #202228;
    border-radius: 8px;
}

.settings-role strong,
.settings-role span {
    display: block;
}

.settings-role div span {
    margin-top: 4px;
    color: #72767d;
    font-size: 11px;
}

.settings-role-owned {
    padding: 5px 8px;
    border-radius: 6px;
    background: #248046;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.settings-actions a {
    padding: 9px 12px;
    background: #2b2d31;
    border-radius: 7px;
    color: #dbdee1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.settings-actions a:hover {
    background: #35373c;
}

.settings-actions .settings-danger-action {
    background: #da373c;
    color: #fff;
}

.settings-actions .settings-danger-action:hover {
    background: #b92d32;
}

@media (max-width: 850px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

/* AUDIT LOG */

.audit-log-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.audit-log-entry {
    padding: 18px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 10px;
}

.audit-log-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 11px;
    border-bottom: 1px solid #292c35;
}

.audit-log-header span {
    color: #949ba4;
    font-size: 12px;
}

.audit-log-body {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.audit-log-body p {
    margin: 0;
}

.audit-log-body p span {
    display: inline-block;
    width: 110px;
    color: #949ba4;
}

/* LOA PRIVACY */

.loa-private-notice {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #202228;
    color: #949ba4;
    font-size: 12px;
    border: 1px solid #292c35;
}

/* LOA PRIVACY */

.loa-private-notice {
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 8px;
    background: #202228;
    color: #949ba4;
    font-size: 12px;
    border: 1px solid #292c35;
}

/* EVENT TEAM DASHBOARD */

.event-team-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0 24px;
    padding: 22px;
    background: #17191f;
    border: 1px solid #292c35;
    border-radius: 12px;
}

.event-team-hero img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
}

.event-team-hero h2 {
    margin: 0;
}

.event-team-hero p {
    margin: 5px 0;
    color: #949ba4;
}

.event-team-hero span {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 6px;
    background: #5865f2;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.event-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 26px 0 14px;
}

.event-team-heading h2 {
    margin: 0;
}

.event-team-heading a {
    padding: 8px 10px;
    border-radius: 7px;
    background: #2b2d31;
    color: #dbdee1;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}
