﻿/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
}

/* Card styling */
.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Compact table styles */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem; /* Smaller font size for compact look */
}

/* Table header */
.table-light {
    background-color: #f8f9fa; /* Light background for headers */
}

/* Table row hover effect */
.table-hover tbody tr:hover {
    background-color: #e2e6ea; /* Hover color for table rows */
}

/* Compact padding for table cells */
.table td,
.table th {
    padding: 0.5rem; /* Reduced padding for a more compact table */
}

/* Adjusted button sizes for compactness */
.btn {
    padding: 0.25rem 0.5rem; /* Smaller padding for buttons */
    font-size: 0.75rem; /* Smaller font size for buttons */
}

/* Search bar styling */
.form-control {
    border-radius: 0.25rem; /* Reduced border radius for compactness */
    margin-right: 0.5rem; /* Spacing between search input and button */
}

/* Modal styling */
.modal-content {
    border-radius: 0.25rem; /* Reduced border radius for compact modal */
}

/* Adjust modal button styles */
.modal-footer .btn {
    margin-left: 0.25rem; /* Reduced margin for compactness */
}

/* Pagination styling */
.pagination {
    display: flex; /* Flexbox for pagination layout */
    justify-content: center; /* Center pagination */
    font-size: 0.875rem; /* Smaller font size for pagination */
    margin-top: 1rem; /* Space above pagination */
}

    .pagination .page-link {
        border-radius: 0.25rem; /* Reduced border radius for compactness */
        margin: 0 0.1rem; /* Spacing between pagination buttons */
        padding: 0.25rem 0.5rem; /* Compact padding for pagination links */
    }

    .pagination .page-item.active .page-link {
        background-color: #007bff; /* Active page color */
        border-color: #007bff; /* Active border color */
        color: white; /* Active text color */
    }

    .pagination .page-link:hover {
        background-color: #0056b3; /* Hover color */
        color: white; /* White text on hover */
    }

/* Loader styles */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* Height of the loader */
}

/* Tooltip styling */
.tooltip {
    background-color: #333; /* Tooltip background color */
    color: #fff; /* Tooltip text color */
    padding: 0.25rem; /* Padding */
    border-radius: 0.25rem; /* Rounded corners */
    position: absolute;
    z-index: 1050; /* Above other components */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-control {
        width: 100%; /* Full width on small screens */
    }

    .card {
        margin: 1rem; /* Spacing around card on small screens */
    }

    .pagination {
        flex-direction: column; /* Stack pagination items on small screens */
        align-items: center; /* Center items */
    }

        .pagination .page-link {
            margin: 0.2rem 0; /* Adjust margin for stacked layout */
        }
}

/* Compact Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    /* Full viewport height */
    background: linear-gradient(135deg, #1d3557, #457b9d) !important; /* Gradient background */
    color: white;
    /* padding: 10px; /* Reduced padding for compact view */ */
    /* width: 180px; /* Make sidebar narrower */ */ overflow-y: auto; /* Add scroll if the content overflows */
}

/* Compact navigation items */
.nav-item {
    margin-bottom: 10px; /* Reduced space between items */
    font-size: 14px; /* Smaller font size for compact view */
}

.nav-link .nav-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Add border between items */
}
/* Style for navigation links */
.nav-item a {
    color: black;
    text-decoration: none;
    padding: 10px;
    display: flex;
    align-items: center; /* Vertically center icons and text */
    border-radius: 4px; /* Rounded corners for links */
    transition: background-color 0.3s; /* Smooth hover effect */
}

    /* Hover effect for links */
    .nav-item a:hover {
        background-color: rgba(255, 255, 255, 0.1) !important; /* Subtle hover effect */
    }

/* Sidebar footer (App version) */
.sidebar-footer {
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
    margin-top: auto; /* This ensures the footer stays at the bottom, pushing it down */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Optional border at the top of the footer */
}

/* Compact version for icons */
.nav-item a span.fa {
    margin-right: 8px; /* Less space between icons and text */
    font-size: 16px; /* Slightly smaller icons for compact view */
}

.nav-item .nav-link {
    height: 2.5em !important;
}

/* Navigation section */
.nav-section {
    margin-bottom: 20px; /* Spacing between sections */
}

/* Section title */
.nav-section-title {
    font-size: 14px;
    color: #f1faee;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Add border below section title */
    padding-bottom: 5px;
    margin-bottom: 10px;
    margin-top: 60%;
}
