/* =========================================
   PROFILE & MANAGE PAGE STYLES
   ========================================= */

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--panel-bg);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

.profile-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 4px;
}

.profile-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: var(--border-color);
}

.profile-title {
    margin: 0;
    color: var(--accent);
}

.profile-title-link {
    color: var(--link-color);
    text-decoration: none;
}

.profile-title-link:hover {
    text-decoration: underline;
}

/* User Action Buttons */
.header-actions .btn-primary,
.header-actions .btn-secondary,
.header-actions .btn-warning {
    width: auto;
    display: inline-block;
    text-decoration: none;
    margin-right: 10px;
}

.header-actions a:last-child {
    margin-right: 0;
}

/* =========================================
   MANAGE TABLE STYLES
   ========================================= */
.manage-messages {
    margin-bottom: 15px;
}

.col-title {
    width: 35%;
}

.col-actions {
    text-align: right;
    width: 150px;
}

.col-private {
    text-align: center;
    width: 60px;
}

.private-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    vertical-align: middle;
}

.actions-cell {
    text-align: right;
    white-space: nowrap;
}

.actions-cell .btn-sm {
    margin-right: 4px;
}

.actions-cell .btn-sm:last-child {
    margin-right: 0;
}

.title-edit-input {
    width: 100%;
    box-sizing: border-box;
}

.empty-row td {
    text-align: center;
    padding: 20px;
}

/* Base button variations */
.btn-sm {
    padding: 5px 10px !important;
    font-size: 0.8rem;
}

.btn-danger {
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background-color: var(--loss-red) !important;
    color: white;
}

.btn-danger:hover {
    filter: brightness(0.9);
}

/* Javascript dynamic alert overrides */
.alert-inline {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    padding: 10px !important;
    margin-bottom: 10px !important;
    z-index: 1 !important;
    transition: opacity 0.5s ease;
}
