/* HP Golf Voting App Custom Styles */

/* Custom navbar styling */
.navbar-brand {
    font-weight: 600;
}

/* Dropdown styling */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Button hover effects */
.btn {
    transition: all 0.2s ease-in-out;
}

/* Alert styling */
.alert {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Form styling */
.form-select:focus,
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Tab styling */
.nav-tabs {
    border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-content {
    border: 1px solid #dee2e6;
    border-top: none;
    background-color: #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane.show {
    display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Role management styling */
.text-muted {
    color: #6c757d !important;
}

.text-muted strong {
    color: #6c757d !important;
}

.role-disabled {
    opacity: 0.6;
}

.btn-group-vertical .btn {
    border-radius: 0;
}

.btn-group-vertical .btn:first-child {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.btn-group-vertical .btn:last-child {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
}

.move-role-up:disabled,
.move-role-down:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Enhanced disabled role styling */
tr.text-muted {
    background-color: #f8f9fa;
}

tr.text-muted td {
    color: #adb5bd !important;
}

tr.text-muted .badge {
    opacity: 0.7;
}

/* Make member rows clearly interactive while preserving control behavior */
#membersTable tbody tr.member-row {
    cursor: pointer;
}

#membersTable tbody tr.member-row button,
#membersTable tbody tr.member-row a,
#membersTable tbody tr.member-row input,
#membersTable tbody tr.member-row label {
    cursor: auto;
}

#membersTable th.member-actions-header,
#membersTable td.member-actions {
    min-width: 280px;
    white-space: normal;
    position: sticky;
    right: 0;
    background-color: #fff; /* Needed for sticky to cover content behind it */
    z-index: 1;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05); /* Subtle shadow to indicate sticky */
}

#membersTable th.member-actions-header {
    background-color: #212529; /* Match table-dark header */
    color: #fff;
}

#membersTable th.member-actions-header,
#membersTable td.member-actions {
    display: table-cell !important;
    visibility: visible !important;
}

#membersTable td.member-actions .member-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    width: 100%;
}

#membersTable td.member-actions .member-action-buttons .btn {
    flex: 0 0 auto;
}
