/**
 * Overrides CSS
 * 
 * This file loads last after all compiled SCSS.
 * Add your custom CSS overrides here.
 */

/* Your custom overrides go here */

.text-decoration-invert,
.text-decoration-inverted {
    text-decoration: none;
}

.text-decoration-invert:hover,
.text-decoration-invert:focus,
.text-decoration-inverted:hover,
.text-decoration-inverted:focus {
    text-decoration: underline;
}

/* People Directory Table Styles */
.category-people-directory {
    margin-bottom: 2rem;
}

/* Table Styling */
.people-directory table {
    background-color: #fff;
}

.people-directory thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 12px 8px;
    vertical-align: middle;
}

.people-directory thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

.people-directory thead th.sortable:hover {
    background-color: #e9ecef;
}

.people-directory thead th.sortable i {
    color: #6c757d;
    font-size: 0.875rem;
}

.people-directory tbody tr {
    transition: background-color 0.2s;
}

.people-directory tbody tr:hover {
    background-color: #f8f9fa;
}

.people-directory tbody td {
    padding: 12px 8px;
    vertical-align: middle;
}

/* Photo Column */
.people-directory .person-photo img {
    transition: transform 0.2s, border-color 0.2s;
}

.people-directory .person-photo a:hover img {
    transform: scale(1.05);
    border-color: #18453b;
}

/* Name Column */
.people-directory .person-name a {
    color: #212529;
    transition: color 0.2s;
}

.people-directory .person-name a:hover {
    color: #18453b;
}

/* Role/Title Column */
.people-directory .person-directory-title {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Contact Information Column */
.people-directory .person-contact {
    font-size: 0.875rem;
}

.people-directory .person-contact i {
    width: 18px;
    margin-right: 6px;
}

.people-directory .person-contact a {
    color: #495057;
}

.people-directory .person-contact a:hover {
    color: #18453b;
}

/* Action Buttons */
.people-directory .btn-outline-primary {
    border-color: #18453b;
    color: #18453b;
    font-size: 0.875rem;
}

.people-directory .btn-outline-primary:hover {
    background-color: #18453b;
    border-color: #18453b;
    color: #fff;
}

/* Search Bar */
.people-directory .input-group-text {
    background-color: #f8f9fa;
    /* border-right: 0; */
    border-top-left-radius: 0.375rem;
    border-bottom-left-radius: 0.375rem;
}

.people-directory #peopleSearch {
    /* border-left: 0; */
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.people-directory #peopleSearch:focus {
    border-color: #18453b;
    box-shadow: 0 0 0 0.25rem rgba(24, 69, 59, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .people-directory tbody td {
        font-size: 0.875rem;
        padding: 10px 6px;
    }

    .people-directory .person-photo img {
        width: 50px;
        height: 50px;
    }

    .people-directory .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Striped rows optional - uncomment to use */
/*
.people-directory tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}
*/

/* Compact table option - uncomment for denser layout */
/*
.people-directory.table-compact tbody td,
.people-directory.table-compact thead th {
    padding: 8px 6px;
}

.people-directory.table-compact .person-photo img {
    width: 45px;
    height: 45px;
}
*/

/* Alphabet Filter */
.people-directory .alphabet-filter {
    min-width: 32px;
    padding: 4px 5px 2px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.people-directory .alphabet-filter:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.people-directory .alphabet-filter.active {
    background-color: transparent;
    border-color: #18453b;
    color: #18453b;
}

.people-directory .alphabet-filter.active:hover {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .people-directory .alphabet-filter {
        min-width: 28px;
        padding: 3px 6px;
        font-size: 0.75rem;
    }
}

/* Profile Card Grid Styles */
.people-directory .profile-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}

.people-directory .profile-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.people-directory .profile-card .card-img-top {
    border-bottom: 1px solid #dee2e6;
}

.people-directory .profile-card .card-title a {
    color: #212529;
    font-weight: 600;
}

.people-directory .profile-card .card-title a:hover {
    color: #18453b;
}

.people-directory .profile-card .contact-info {
    border-top: 1px solid #e9ecef;
    padding-top: 12px;
}

.people-directory .profile-card .contact-info a {
    color: #18453b;
}

.people-directory .profile-card .contact-info a:hover {
    color: #153a31;
}

.people-directory .profile-card .btn-outline-primary {
    border-color: #18453b;
    color: #18453b;
}

.people-directory .profile-card .btn-outline-primary:hover {
    background-color: #18453b;
    border-color: #18453b;
    color: #fff;
}

/* Grid responsive adjustments */
@media (max-width: 768px) {
    .people-directory .profile-card .card-img-top {
        height: 200px !important;
    }

    .people-directory .profile-card-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.person-tags span.badge {
  font-size: 0.65rem;
}