/* Accounts page - Workspace UI4 Styling */

/* Page Layout */
body {
    background-color: var(--md-sys-color-background);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    width: 100%;
    height: calc(100vh - 64px);
    overflow: hidden;
    margin-top: 64px;
}

/* Sidebar */
#sidebar {
    width: 280px;
    background-color: var(--workspace-sidebar-bg, var(--md-sys-color-surface-container));
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 16px;
    height: 100%;
    flex-shrink: 0;
}

.sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
}

/* Sidebar Navigation */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 4px 8px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--md-sys-color-on-surface-variant);
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}

.nav-item.active {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

.nav-item .material-symbols-rounded {
    font-size: 20px;
}

/* Sidebar Footer Buttons */
.sidebar-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    margin: 4px 0;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
}

.sidebar-btn:hover {
    background-color: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface);
}

#main-content {
    padding: 32px;
    max-width: 800px;
    margin: 0 auto;
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

/* View containers */
.view-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
}


.account-card {
    background-color: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 1px 3px color-mix(in srgb, var(--md-sys-color-shadow) 10%, transparent);
    margin-bottom: 16px;
}

.account-card h3 {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 8px 0;
}

.card-description {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* Profile Header */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--md-sys-color-shadow) 15%, transparent);
}

.profile-header h2 {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface);
    margin: 0;
}

.email-text {
    color: var(--md-sys-color-on-surface-variant);
    font-size: 0.875rem;
    margin: 0;
}

.staff-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: var(--md-sys-color-tertiary-container);
    color: var(--md-sys-color-on-tertiary-container);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Settings List */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    transition: background-color 0.2s;
}

.setting-item:hover {
    background-color: var(--md-sys-color-surface-container);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-name {
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.setting-desc {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* Staff Status */
.staff-status {
    padding: 16px;
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.staff-status.linked {
    background-color: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
}

.staff-status.not-linked {
    background-color: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface-variant);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.btn-primary:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-primary) 85%, white);
}

.btn-danger {
    background-color: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
}

.btn-danger:hover {
    background-color: color-mix(in srgb, var(--md-sys-color-error) 85%, white);
}

/* Danger Zone Card */
.danger-card {
    border: 1px solid var(--md-sys-color-error-container);
}

.danger-card h3 {
    color: var(--md-sys-color-error);
}

.danger-item {
    border: 1px solid var(--md-sys-color-error-container);
}

.danger-item .setting-name {
    color: var(--md-sys-color-error);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: var(--md-sys-color-surface-container-low);
    border-radius: 12px;
    transition: background-color 0.2s;
}

.activity-item:hover {
    background-color: var(--md-sys-color-surface-container);
}

.activity-icon {
    font-size: 24px;
    color: var(--md-sys-color-primary);
    background-color: var(--md-sys-color-primary-container);
    padding: 12px;
    border-radius: 12px;
}

.activity-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-title {
    font-weight: 500;
    color: var(--md-sys-color-on-surface);
}

.activity-time {
    font-size: 0.875rem;
    color: var(--md-sys-color-on-surface-variant);
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: color-mix(in srgb, var(--md-sys-color-scrim) 60%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.login-box {
    width: 480px;
    max-width: 95%;
    background: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--md-sys-color-shadow) 25%, transparent);
    max-height: 90vh;
    overflow-y: auto;
}

.login-box h3 {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--md-sys-color-on-surface);
}

.login-box textarea {
    width: 100%;
    height: 200px;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 8px;
    border: 1px solid var(--md-sys-color-outline-variant);
    resize: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    background-color: var(--md-sys-color-surface-container-lowest);
    color: var(--md-sys-color-on-surface);
}

.login-box input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--md-sys-color-outline-variant);
    background-color: var(--md-sys-color-surface-container-lowest);
    color: var(--md-sys-color-on-surface);
    font-size: 0.875rem;
    box-sizing: border-box;
}

.login-box input[type="checkbox"] {
    margin-right: 8px;
}

.login-box button {
    margin-top: 16px;
    background: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    padding: 12px 20px;
    border-radius: 100px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.login-box button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--md-sys-color-primary) 85%, white);
}

.login-box button:disabled {
    background: var(--md-sys-color-surface-container-highest);
    color: var(--md-sys-color-on-surface-variant);
    cursor: not-allowed;
}

.login-box label {
    display: block;
    margin-bottom: 16px;
    color: var(--md-sys-color-on-surface);
    font-size: 0.875rem;
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--md-sys-color-outline-variant);
    width: 100%;
}

/* Sidebar Collapse Support */
body.sidebar-collapsed #sidebar {
    width: 72px;
    padding: 16px 8px;
}

body.sidebar-collapsed #main-content {
    margin-left: 0;
}

body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px;
}

body.sidebar-collapsed .nav-item span:not(.material-symbols-rounded) {
    display: none;
}

body.sidebar-collapsed .sidebar-btn {
    justify-content: center;
    padding: 12px;
}

body.sidebar-collapsed .sidebar-btn span:not(.material-symbols-rounded) {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 64px;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar.open {
        transform: translateX(0);
    }

    #main-content {
        padding: 16px;
        max-width: 100%;
        margin-left: 0;
    }

    .account-card {
        padding: 24px;
    }
}
