/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Footer modifications - reduced height to be half of navbar */
.footer {
    position: relative;
    width: 100%;
    white-space: nowrap;
    line-height: 15px; /* Reduced from 40px to 20px - half of menu height */
    margin-top: 10px;
    padding: 5px 0;
    font-size: 0.9rem;
}

/* Mobile footer adjustments */
@media (max-width: 767.98px) {
    .footer {
        line-height: 5px; /* Further reduced for mobile */
        margin-top: 5px;
        font-size: 0.8rem;
        padding: 3px 0;
    }

    body {
        margin-bottom: 10px; /* Reduced body margin for mobile */
    }

    .footer .container {
        padding-top: 3px;
        padding-bottom: 3px;
    }
}
.bg-purple {
    background-color: #6f42c1 !important;
}

.btn-purple {
    background-color: #6f42c1;
    border-color: #6f42c1;
    color: white;
}

    .btn-purple:hover {
        background-color: #5e35b1;
        border-color: #5e35b1;
        color: white;
    }
/* HTML and Body styling */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 20px; /* Reduced from 40px to 30px */
}

/* Button and form element focus styles */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Enhanced logo container styling */
.logo-container {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

    .logo-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        z-index: -1;
    }

.logo {
    height: 40px;
    margin-right: 10px;
    filter: drop-shadow(0px 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

    .logo:hover {
        transform: scale(1.05);
    }

/* Navbar styling */
.navbar-brand {
    border: none;
    padding: 0;
}

    .navbar-brand:hover .logo-container {
        box-shadow: 0 4px 12px rgba(58, 134, 255, 0.2);
    }

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #24548c, #3c4474) !important;
}

.navbar-brand, .nav-link {
    color: #ffffff !important;
}

    .nav-link:hover {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.15);
        transform: translateX(3px);
    }

.active-menu {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    border-radius: 5px;
}

/* Navbar layout */
.fixed-navbar-container {
    max-width: 1320px; /* Match Bootstrap's container-xxl */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.navbar-collapse {
    flex-grow: 1;
    flex-basis: 100%;
}

/* Mobile Navbar Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        width: 100%;
        background: #24548c; /* Dark background to match navbar */
        padding: 10px;
        border-radius: 0 0 8px 8px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

        /* Fix text color in mobile menu */
        .navbar-collapse .nav-link {
            color: #ffffff !important;
        }

    /* Make dropdown text visible in mobile view */
    .dropdown-menu {
        background-color: #1a3c66;
        border: none;
    }

    .dropdown-item {
        color: #ffffff !important;
    }

        .dropdown-item:hover {
            background-color: rgba(255, 255, 255, 0.15);
            color: #ffffff !important;
        }

    /* Fix dropdown divider in mobile view */
    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2);
    }

    /* Improve spacing for form buttons on mobile */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Ensure buttons at the bottom of forms are visible */
    form {
        margin-bottom: 50px;
    }

    /* Ensure submit buttons are always visible */
    .btn-submit,
    input[type="submit"],
    button[type="submit"] {
        margin-bottom: 40px;
    }
}

/* Navbar toggler styling */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown styling */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown-item.active {
    background-color: rgba(58, 134, 255, 0.1);
    color: #3a86ff;
}

/* System name styling */
.system-name {
    background: linear-gradient(45deg, #ffffff, #e0e0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        min-width: 1240px;
        margin-left: 3px;
    }
}
/* Content container */
main > .container {
    width: 100%;
    max-width: 1320px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    min-height: calc(100vh - 140px); /* Adjusted for smaller footer */
}

/* Adjust content container for mobile */
@media (max-width: 767.98px) {
    main > .container {
        min-height: calc(100vh - 120px); /* Reduced height for mobile */
        padding-bottom: 25px; /* Add padding at the bottom to prevent content being hidden by footer */
    }
}

/* Table styling */
#clientsTable thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-hover tbody tr:hover {
    background-color: rgba(58, 134, 255, 0.05) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

/* Badge styling */
.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* Card styling */
.card.bg-light {
    border: none;
    transition: all 0.3s ease;
}

    .card.bg-light:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }

.card-title {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Print styles */
@media print {
    .navbar, .footer, .btn, .card-footer {
        display: none !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    .card-header {
        background-color: #f8f9fa !important;
        color: #000 !important;
        padding: 1rem 0 !important;
    }

    table {
        width: 100% !important;
    }
    /* Add this to your existing Style section in the Razor view */

    /* Drag-to-scroll styles */
    .draggable-scroll {
        cursor: grab;
        overflow-x: auto;
        position: relative;
        scroll-behavior: smooth;
        scrollbar-width: thin;
    }

        .draggable-scroll.grabbing {
            cursor: grabbing;
            user-select: none;
        }

        /* Custom scrollbar styling */
        .draggable-scroll::-webkit-scrollbar {
            height: 6px;
        }

        .draggable-scroll::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .draggable-scroll::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }

            .draggable-scroll::-webkit-scrollbar-thumb:hover {
                background: #555;
            }

    /* Scroll indicators */
    .scroll-indicator {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(0, 0, 0, 0.4);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        opacity: 0.7;
        transition: opacity 0.3s ease;
    }

        .scroll-indicator:hover {
            opacity: 1;
            background-color: rgba(0, 0, 0, 0.6);
        }

    .scroll-indicator-left {
        left: 10px;
    }

    .scroll-indicator-right {
        right: 10px;
    }

    .scroll-indicator i {
        font-size: 1.5rem;
    }

    /* Responsive adjustments */
    @media (max-width: 767.98px) {
        .scroll-indicator {
            width: 30px;
            height: 30px;
        }

            .scroll-indicator i {
                font-size: 1rem;
            }
    }
    .table-responsive {
        width: 100%;
        overflow-x: auto;
    }

    .table {
        width: 100% !important;
        min-width: 800px; /* Minimum width to ensure readability */
        table-layout: fixed; /* This ensures column widths are respected */
    }

        .table th {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .table td {
            white-space: normal;
            overflow: hidden;
            text-overflow: ellipsis;
        }

            /* Make cells with long content scrollable on hover */
            .table td:hover {
                overflow: visible;
                white-space: normal;
                background-color: #f8f9fc;
                z-index: 1;
                position: relative;
            }

            /* Make sure the action buttons are always visible */
            .table td.text-center {
                white-space: nowrap;
            }

    /* Custom styling for the form */
    .card {
        margin-bottom: 1.5rem;
    }

    .form-control:focus {
        border-color: #4e73df;
        box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
    }

    .btn-primary {
        background-color: #4e73df;
        border-color: #4e73df;
    }

        .btn-primary:hover {
            background-color: #2e59d9;
            border-color: #2653d4;
        }

    /* Add visual cue for horizontal scrolling */
    .table-responsive::after {
        content: "";
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(0,0,0,0.05));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .table-responsive:hover::after {
        opacity: 1;
    }
}
