/* Tailwind CSS Custom Styles */

/* Sort indicators for table headers */
.sort-asc::after {
    content: " ↑";
    color: #ef4e28;
}

.sort-desc::after {
    content: " ↓";
    color: #ef4e28;
}

/* Custom focus styles for better accessibility */
.focus-ring:focus {
    outline: 2px solid #ef4e28;
    outline-offset: 2px;
}

/* Smooth transitions for interactive elements */
.transition-colors {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.transition-shadow {
    transition: box-shadow 0.15s ease-in-out;
}

/* Custom badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}

/* SharePoint Document Library styling */
.sharepoint-doclib {
    font-family: "Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", sans-serif;
    font-size: 14px;
}

.sharepoint-doclib .folder-item {
    cursor: pointer;
}

.sharepoint-doclib .folder-toggle {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    transition: background-color 0.15s ease;
}

.sharepoint-doclib .folder-toggle:hover {
    background-color: #f3f4f6;
}

.sharepoint-doclib .folder-toggle i {
    font-size: 10px;
    transition: transform 0.15s ease;
}

.sharepoint-doclib .folder-toggle.collapsed i {
    transform: rotate(-90deg);
}

/* File type icons with SharePoint-like colors */
.sharepoint-doclib .fa-folder {
    color: #ffb900 !important;
}

.sharepoint-doclib .fa-file-pdf {
    color: #d13438 !important;
}

.sharepoint-doclib .fa-file-word {
    color: #2b579a !important;
}

.sharepoint-doclib .fa-file-excel {
    color: #107c41 !important;
}

.sharepoint-doclib .fa-file-powerpoint {
    color: #d24726 !important;
}

.sharepoint-doclib .fa-file-image {
    color: #8764b8 !important;
}

.sharepoint-doclib .fa-file-archive {
    color: #797775 !important;
}

.sharepoint-doclib .fa-file-alt {
    color: #605e5c !important;
}

.sharepoint-doclib .fa-file-video {
    color: #e3008c !important;
}

.sharepoint-doclib .fa-file-audio {
    color: #00bcf2 !important;
}

.sharepoint-doclib .fa-file {
    color: #605e5c !important;
}

/* File link styling in SharePoint document library */
.sharepoint-doclib .file-link {
    color: #0078d4 !important;
    text-decoration: none !important;
    font-weight: normal !important;
}

.sharepoint-doclib .file-link:hover {
    color: #106ebe !important;
    text-decoration: underline !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sharepoint-doclib {
        font-size: 13px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background-color: white !important;
        color: black !important;
    }
}