/**
 * Staff Module - Staff Directory & Ranks Panel
 * NOTE: These styles should be refactored to use main.css classes (.sub_list_item, etc.)
 */

/* ===== STAFF DIRECTORY ===== */
.staff_category {
    margin-bottom: 10px;
}

.staff_category_header {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.staff_category_header:hover {
    background: rgba(0, 0, 0, 0.3);
}

.staff_category_header i.fa {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.staff_category_title {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
}

.staff_count {
    font-size: 12px;
    opacity: 0.7;
}

.staff_chevron, 
.staff_chevron_small {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.staff_category_content {
    padding: 10px 5px;
}

.staff_member {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.staff_member:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
}

.staff_member_nested {
    margin-left: 20px;
}

.staff_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.staff_info {
    flex: 1;
    min-width: 0;
}

.staff_name {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff_rank_title {
    font-size: 11px;
    opacity: 0.7;
    margin-top: 2px;
}

.staff_rank_icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Staff room grouping */
.staff_room_group {
    margin: 10px 0;
}

.staff_room_header {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.staff_room_header:hover {
    background: rgba(0, 0, 0, 0.25);
}

.staff_room_icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
}

.staff_room_name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.staff_room_content {
    padding: 5px 0;
}

.empty_state {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.5;
}

/* ===== STAFF RANKS PANEL ===== */
.rank_edit_toolbar {
    margin-bottom: 15px;
}

.rank_category {
    margin-bottom: 15px;
}

.rank_category_header {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.rank_category_header:hover {
    background: rgba(0, 0, 0, 0.3);
}

.rank_category_header i.fa {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rank_category_title {
    flex: 1;
    font-weight: bold;
    font-size: 14px;
}

.rank_count {
    opacity: 0.7;
    font-size: 12px;
}

.rank_chevron {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.rank_category_content {
    padding: 10px 5px;
}

/* Rank cards */
.rank_card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    transition: all 0.3s ease;
    position: relative;
}

.rank_card:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Owner special styling */
.rank_card.rank_owner {
    border-color: rgba(255, 100, 150, 0.3);
    box-shadow: 0 0 10px rgba(255, 100, 150, 0.1);
}

.rank_card.rank_owner:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 100, 150, 0.2);
}

.rank_type_badge {
    display: inline-block;
    background: rgba(100, 150, 255, 0.2);
    border: 1px solid rgba(100, 150, 255, 0.3);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.rank_header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.rank_icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.rank_title {
    font-size: 18px;
    font-weight: bold;
    flex: 1;
}

.rank_description {
    font-style: italic;
    line-height: 1.6;
    opacity: 0.9;
    font-size: 13px;
    padding: 8px 0;
}

.rank_description strong {
    font-weight: bold;
    opacity: 1;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Rank cards */
    .rank_card {
        padding: 12px;
    }
    
    .rank_category_header {
        padding: 10px 12px;
    }
    
    .rank_title {
        font-size: 16px;
    }
    
    .rank_icon {
        width: 35px;
        height: 35px;
    }
    
    .rank_description {
        font-size: 12px;
    }
}

