@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
}

/* Global link styles - Remove underlines from all links */
a, a:link, a:visited, a:hover, a:active, a:focus {
    text-decoration: none !important;
}

/* Override Bootstrap and other framework link styles */
.btn, .btn-link, .dropdown-item, .nav-link, .pagination a, 
.sidebar-item, .submenu-item, table a, .card a, .breadcrumb a, 
.modal a, .alert a {
    text-decoration: none !important;
}

/* Ensure all anchor tags have no underlines */
* a {
    text-decoration: none !important;
}

/* Custom Pagination Styles */
.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-pagination .page-item {
    margin: 0;
}

.custom-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    color: #6b7280;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
}

.custom-page-link:hover:not(.disabled):not(.active) {
    color: #3b82f6;
    background-color: #f8fafc;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.custom-page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-page-link.disabled {
    color: #9ca3af;
    background-color: #ffffff;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.custom-page-link.active {
    color: #ffffff;
    background-color: #3b82f6;
    border-color: #3b82f6;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.custom-page-link.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .custom-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .custom-pagination {
        gap: 0.125rem;
    }
}

/* Ensure proper spacing and alignment */
.custom-pagination .page-item:first-child .custom-page-link {
    margin-right: 0.5rem;
}

.custom-pagination .page-item:last-child .custom-page-link {
    margin-left: 0.5rem;
}

/* Ellipsis styling */
.custom-page-link.disabled:contains("...") {
    border-color: #3b82f6;
    color: #6b7280;
    background-color: #ffffff;
    cursor: default;
}

.custom-page-link.disabled:contains("..."):hover {
    transform: none;
    box-shadow: none;
}
