html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden; /* Prevent default body scrolling */
}

/* Ensure the Blazor app root container fills full height with no scroll */
#app {
    height: 100vh;
    width: 100vw;
    overflow: hidden; /* App container doesn't scroll */
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

/* Global content padding for consistent page layout */
.content-padding {
    padding: 20px !important;
}

/* More specific selectors for AntDesign Layout components */
.ant-layout-content .content-padding,
div.content-padding {
    padding: 20px !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Enhanced Breadcrumb Styling - Higher specificity to override AntDesign defaults */
.ant-layout .ant-breadcrumb,
.header .ant-breadcrumb,
.ant-breadcrumb {
    font-size: 1.125rem !important; /* 18px - larger than default */
    font-weight: 600 !important;
}

    .ant-layout .ant-breadcrumb .ant-breadcrumb-link,
    .header .ant-breadcrumb .ant-breadcrumb-link,
    .ant-breadcrumb .ant-breadcrumb-link,
    .ant-breadcrumb-link {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        color: #374151 !important;
        transition: color 0.2s ease !important;
    }

        .ant-layout .ant-breadcrumb .ant-breadcrumb-link:hover,
        .header .ant-breadcrumb .ant-breadcrumb-link:hover,
        .ant-breadcrumb .ant-breadcrumb-link:hover,
        .ant-breadcrumb-link:hover {
            color: #1890ff !important;
        }

    .ant-layout .ant-breadcrumb .ant-breadcrumb-separator,
    .header .ant-breadcrumb .ant-breadcrumb-separator,
    .ant-breadcrumb .ant-breadcrumb-separator,
    .ant-breadcrumb-separator {
        font-size: 1rem !important;
        color: #6b7280 !important;
        margin: 0 8px !important;
    }

    /* For AutoGenerate breadcrumbs - target the generated items */
    .ant-breadcrumb ol.ant-breadcrumb-ol {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
    }

    .ant-breadcrumb ol.ant-breadcrumb-ol > li {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
    }

        .ant-breadcrumb ol.ant-breadcrumb-ol > li > span,
        .ant-breadcrumb ol.ant-breadcrumb-ol > li > a {
            font-size: 1.125rem !important;
            font-weight: 600 !important;
            color: #374151 !important;
        }

            .ant-breadcrumb ol.ant-breadcrumb-ol > li > a:hover {
                color: #1890ff !important;
            }

/* Enhanced Menu Item Icons - Larger size for better visibility */
.ant-menu .ant-menu-item .anticon,
.ant-menu .ant-menu-item-selected .anticon {
    font-size: 18px !important; /* Increased from default ~14px */
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Menu item alignment improvements */
.ant-menu .ant-menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    line-height: 40px !important;
    height: 40px !important;
}

/* SVG icons within menu items */
.ant-menu .ant-menu-item svg {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
}

.main-header {
    background: #fff;
    height: 48px;
    line-height: 48px;
    width: 100%;
    box-shadow: 0 0px 1.5px rgba(0, 0, 0, 0.004), 0 0px 9px rgba(0, 0, 0, 0.07);
}

    .main-header .right-header-items {
        float: right;
        padding-right: 20px;
    }

    .main-header .header-item {
        padding-right: 20px;
    }

.left-sider {
    overflow: auto;
    max-width: 50px !important;
    min-width: 50px !important;
}

    .left-sider .ant-menu-item {
        padding-left: 17px !important;
    }

    .left-sider .ant-menu .ant-menu-root {
        max-width: 50px !important;
    }

    .left-sider .ant-menu-inline, .ant-menu-vertical, .ant-menu-vertical-left {
        border-right: 1px solid #fff;
    }

.activities-container {
    background-color: #fafafa;
    height: 100%;
}

.activities-header {
    background-color: #fff;
    padding: 0px 0px 0px 20px;
    margin-top: 5px;
}

.activities-search {
    padding: 5px 10px 5px 10px;
}

.header {
    background: #fff !important;
    margin-bottom: 5px;
    height: 48px;
    line-height: 48px;
    width: 100%;
    box-shadow: 0 0px 1.5px rgba(0, 0, 0, 0.004), 0 0px 9px rgba(0, 0, 0, 0.07);
    padding: 0 40px 0 10px !important;
}

    .header .right-header-items {
        float: right;
        padding-right: 10px;
    }

    .header .header-item {
        padding-right: 20px;
    }

    .header .subtitle {
        font-size: 13px;
        line-height: 15px !important;
        color: gray;
    }

    .header .bullet {
        margin: 0px 6px 0px 6px;
    }

.right-actions {
    margin-left: auto;
}

.autoscroll-list {
    overflow: auto;
    height: calc(100vh - 240px); /* Adjusted for content padding (200px + 40px for padding) */
    /* Use flex to fill the remaining of dropzone in Dropzone.razor*/
    display: flex;
    flex-direction: column;
}

.badge {
    padding: 1px 9px 3px 9px;
    border-radius: 15px;
}

    .badge.badge-none {
        color: #fff;
        background-color: gray;
    }

    .badge.badge-success {
        color: #fff;
        background-color: limegreen;
    }

    .badge.badge-working {
        color: #fff;
        background-color: deepskyblue;
    }

    .badge.badge-error {
        color: #fff;
        background-color: red;
    }

/* Instead of forcing full height everywhere, we use natural content sizing within scrollable containers */

/* Clean up any conflicting Ant Design layout rules */
.ant-layout {
    min-height: auto; /* Don't force min-height */
}

/* Page-specific content styling - pages can now have natural height and scroll within their container */
.home-content {
    min-height: auto; /* Remove forced height, let content flow naturally */
    padding: 20px; /* Add some padding for better content spacing */
}

/* Dashboard specific adjustments */
.home-container {
    padding-bottom: 40px; /* Add bottom padding so content doesn't touch the bottom */
}

/* Global content background - subtle warm background for all pages */
.content-background {
    background-color: #fff !important; /* Warm subtle background - slightly beige/cream tint */
}

/* Alternative content background options for easy switching */
.content-background-cool {
    background-color: #f8f9fb !important; /* Cool subtle background - slightly blue/purple tint */
}

.content-background-neutral {
    background-color: #fafafa !important; /* Original neutral background */
}

/* Shared styles for code blocks across the application */

.generated-code-block {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    margin: 12px 0;
    padding: 12px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow: hidden;
}

    .generated-code-block code {
        background: transparent;
        border: none;
        padding: 0;
        font-family: inherit;
        font-size: inherit;
        white-space: pre;
        display: block;
    }

/* For use within message content areas */
.message .content .generated-code-block,
.code-success-content .generated-code-block {
    margin: 8px 0;
}
