@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Hide the default sidebar */
.sidebar {
    display: none !important;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 3.5rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    padding: 0 1rem;
}

    .top-row a {
        margin-left: 1.5rem;
        text-decoration: none;
    }

.content {
    flex: 1;
    padding: 1.1rem;
    overflow-y: auto;
}

/* Validation styles */
.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;
    }

/* Syncfusion Sidebar Styling */
.e-sidebar {
    background-color: #333;
    color: white;
    height: 100vh !important;
    overflow-y: auto;
}

/* Sidebar Links */
.nav-links {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

    .nav-links li {
        padding: 5px 0;
    }

    .nav-links a {
        text-decoration: none;
        color: white;
        display: block;
        padding: 10px 15px;
        transition: background 0.3s;
    }

        .nav-links a:hover {
            background-color: #444;
            border-radius: 4px;
        }

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #444;
}

.brand {
    font-size: 20px;
    font-weight: bold;
}

/* Menu Button */
.menu-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Toggle Button */
.toggle-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-right: auto;
}

/* For docked sidebar */
.e-sidebar.e-dock.e-close {
    visibility: visible;
    width: 60px !important;
}

/* Button styles from your existing code */
.buttonB {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    transition-duration: 0.4s;
    cursor: pointer;
}

.button2 {
    background-color: white;
    color: black;
    border: 2px solid #008CBA;
}

    .button2:hover {
        background-color: #008CBA;
        color: white;
    }

/* Adjustments for mobile */
@media (max-width: 768px) {
    .e-sidebar {
        position: fixed !important;
        z-index: 1000;
    }

    .e-sidebar-overlay {
        z-index: 999;
    }

    .top-row {
        position: relative;
        z-index: 1;
    }
}
.custom-card {
    height: auto; /* Set desired height */
    max-height: 800px; /* Optional: Prevent it from growing too much */
}