﻿body {
}

* {
    font-family: "Inter", sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

    .loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border: 2px solid #00a651;
        border-radius: 50%;
        border-right-color: transparent;
        animation: spin 1s linear infinite;
        z-index: 10;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal Styles */
.modal {
    transition: all 0.3s ease;
}

    .modal.show {
        display: flex !important;
    }

.modal-content {
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Button Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .btn:active {
        transform: translateY(0);
    }

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
}

    .notification.show {
        transform: translateX(0);
    }

    .notification.success {
        background: #10b981;
    }

    .notification.error {
        background: #ef4444;
    }

    .notification.warning {
        background: #f59e0b;
    }

    .notification.info {
        background: #3b82f6;
    }

/* Table Enhancements */
/* .table-container {
            max-height: 70vh;
            overflow: auto;
        }*/

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    items-center: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1rem;
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

    .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

    .dropdown-item:hover {
        background-color: #f3f4f6;
    }

    .dropdown-item.danger:hover {
        background-color: #fee2e2;
        color: #dc2626;
    }

/* Checkbox styles */
.checkbox-custom {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .checkbox-custom:checked {
        background: #00a651;
        border-color: #00a651;
    }

        .checkbox-custom:checked::after {
            content: '';
            position: absolute;
            top: 1px;
            left: 4px;
            width: 4px;
            height: 8px;
            border: solid white;
            border-width: 0 2px 2px 0;
            transform: rotate(45deg);
        }

/* Search and filter styles */
.search-container {
    position: relative;
}

.search-input {
    padding-left: 2.5rem;
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

        #sidebar.mobile-open {
            transform: translateX(0);
        }

    #main-section {
        margin-left: 0 !important;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 25;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

        .mobile-overlay.show {
            opacity: 1;
            visibility: visible;
        }

    /* Mobile table view */
    .mobile-table-view {
        display: block;
    }

    .desktop-table-view {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-table-view {
        display: none;
    }

    .desktop-table-view {
        display: block;
    }
}

/* Bulk actions toolbar */
.bulk-actions {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .bulk-actions.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

/* File preview styles */
.file-preview {
    max-width: 100%;
    max-height: 500px;
    border-radius: 0.5rem;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    font-size: 14px;
}

/* Optional: Make checkboxes and icons touch-friendly */
.checkbox-custom {
    width: 18px;
    height: 18px;
}

/* Optional: Enhance sorting icons' hover feedback */
th[data-sort] {
    cursor: pointer;
}

main#main-section {
    /* width: 100px; */
    overflow: scroll;
}

