/* breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 6px 10px;
    border-radius: 5px;
    margin: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.breadcrumb li a, 
.breadcrumb li span:not([separatorattrs] span) {
    text-decoration: none;
    padding: 1px 2px;
    border-radius: 3px;
}

.breadcrumb li a {
    color: #007bff;
    transition: color 0.3s ease-in-out;
}

.breadcrumb li a:hover {
    color: #0056b3;
    text-decoration: underline;
    background-color: rgba(0, 123, 255, 0.1);
}

.breadcrumb li span {
    margin: 0 2px;
    color: #6c757d;
    font-size: 0.8em;
}

.breadcrumb li[separatorattrs] span::before {
    content: '/';
    color: #6c757d;
}

.breadcrumb .active {
    font-weight: bold;
}

.breadcrumb .active span {
    color: #000000;
    padding: 1px 2px;
    font-size: 14px;
}

.breadcrumb .first {
    margin-left: 0;
}

/* end breadcrumb */

/* Pagination Styles */
.paginator {
    padding: 1.5rem 0;
    position: relative;
}

.pagination {
    gap: 0.35rem;
    position: relative;
    z-index: 1;
}

.pagination .page-link {
    border: none;
    padding: 0.6rem 1rem;
    color: #344767;
    font-weight: 600;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 2px;
    position: relative;
    overflow: hidden;
    box-shadow: 3px 3px 6px #d1d9e6, 
                -3px -3px 6px #ffffff;
}

.pagination .page-link:hover {
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    color: #2f85ae;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 5px 5px 10px #d1d9e6, 
                -5px -5px 10px #ffffff;
}

.pagination .page-link:active {
    transform: scale(0.95);
    box-shadow: inset 3px 3px 6px #d1d9e6, 
                inset -3px -3px 6px #ffffff;
}

.pagination .active .page-link,
.pagination .active .page-link:hover {
    background: linear-gradient(145deg, #2f85ae, #236d91);
    color: white;
    box-shadow: 4px 4px 8px rgba(47, 133, 174, 0.3),
                -2px -2px 6px rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.pagination .active .page-link:active {
    transform: scale(0.98);
}

.pagination .disabled .page-link {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    color: #a0a5ab;
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

.pagination .bi {
    font-size: 0.9rem;
    line-height: 1;
    position: relative;
    top: 1px;
}

.paginator p.text-muted {
    margin-top: 1.2rem;
    font-size: 0.875rem;
    color: #6c757d !important;
    text-align: center;
    position: relative;
    padding: 0.5rem;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 2rem;
    backdrop-filter: blur(5px);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Hover animations */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(47, 133, 174, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(47, 133, 174, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(47, 133, 174, 0);
    }
}

.pagination .page-link:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    animation: buttonPulse 1s ease-out;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination .page-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .paginator p.text-muted {
        font-size: 0.8rem;
    }
}

/* Form Labels */
.form-label,
label:not(.form-check-label) {
    font-weight: 700 !important;
    color: #344767;
    margin-bottom: 0.5rem;
}

/* nav */
.dropdown-menu {
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    margin-top: 0.5rem;
}

.dropdown.show .dropdown-menu {
    display: block;
    opacity: 1;
}

.dropdown-menu.show {
    display: block !important;
    opacity: 1;
}
/* end nav */

/* Users Companies Index Styles */
.companies.index.content {
    padding: 20px;
}

.companies h3 {
    margin-bottom: 20px;
    color: #333;
}

.companies .button {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.companies .button:hover {
    background-color: #0056b3;
    color: white;
    text-decoration: none;
}

.companies table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.companies table thead th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
}

.companies table tbody tr {
    border-bottom: 1px solid #dee2e6;
}

.companies table tbody tr:hover {
    background-color: #f8f9fa;
}

.companies table tbody td {
    padding: 12px;
}

.companies .actions {
    display: flex;
    gap: 8px;
}

.companies .actions a {
    color: #007bff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.companies .actions a:nth-child(1) {
    background-color: #e9ecef;
}

.companies .actions a:nth-child(2) {
    background-color: #e9ecef;
}

.companies .actions a:nth-child(3) {
    background-color: #e9ecef;
}

.companies .actions a:hover {
    background-color: #dee2e6;
}

.companies .paginator {
    margin-top: 20px;
}

.companies .pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.companies .pagination li a {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007bff;
    text-decoration: none;
    transition: all 0.2s;
}

.companies .pagination li a:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.companies .pagination .active a {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.companies .pagination .disabled a {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

.companies .paginator p {
    margin: 0;
    padding: 8px 0;
    color: #6c757d;
}

.companies .table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
}

.companies table {
    min-width: 800px;
}

.companies .actions {
    white-space: nowrap;
}

.companies .actions a {
    display: inline-block;
}

.companies .button {
    margin-bottom: 20px;
}

/* Table size variants */
.table-sm th,
.table-sm td {
    padding: 0.375rem;
    font-size: 0.8125rem;
}

.table-xs th,
.table-xs td {
    padding: 0.2rem;
    font-size: 0.7rem;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .table-sm th,
    .table-sm td {
        padding: 0.25rem;
    }
    
    .table-xs th,
    .table-xs td {
        padding: 0.15rem;
    }
}

/* Table Styles */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #e2e8f0 !important;
}

.table-hover > tbody > tr:hover {
    background-color: #bfdbfe !important;
    transition: background-color 0.15s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.table {
    --bs-table-striped-bg: #e2e8f0;
    --bs-table-hover-bg: #bfdbfe;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0.5rem;
    border: 1px solid #94a3b8;
    border-radius: 4px;
}

.table thead th {
    background-color: #e5e7eb !important;
    border-bottom: 2px solid #94a3b8 !important;
    color: #1e293b !important;
    font-weight: 600;
    padding: 0.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table thead th:first-child {
    border-top-left-radius: 3px;
}

.table thead th:last-child {
    border-top-right-radius: 3px;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 3px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 3px;
}

.table tbody td {
    padding: 0.4rem 0.5rem;
    border-bottom: 1px solid #94a3b8;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #334155;
}

/* Make small tables even more compact */
.table-sm th,
.table-sm td {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* Extra small table size */
.table-xs th,
.table-xs td {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
}
