::selection {
    background-color: #0d6efd;
    color: #fff;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fe 0%, #f8f9fa 100%);
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-card {
    border-radius: 0.75rem;
    border: none;
}

/* Top bar user area */
.top-bar-user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.top-bar-username {
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
}

/* Base Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* Layout Structure */
.page {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 250px;
    background-color: #f8f9fa;
    border-right: 1px solid #dee2e6;
    overflow-y: auto;
    transition: width 0.3s ease;
    flex-shrink: 0;
    position: relative;
}

.sidebar.collapsed {
    width: 60px;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    min-width: 0;
}

.top-bar {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    height: 50px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    flex-shrink: 0;
}

.sidebar-toggle {
    border: none;
    background: none;
    font-size: 1.2rem;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    color: #0d6efd;
    text-decoration: none;
}

.content {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

/* Refined Typography */
h1 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #212529;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
    color: #212529;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #495057;
}

h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Card refinements */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.card.shadow-sm:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.card-body {
    padding: 1rem;
}

/* Button refinements */
.btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
}

/* Badge refinements */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* Table refinements */
.table {
    font-size: 0.9rem;
}

.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

/* Form refinements */
.form-label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #495057;
    margin-bottom: 0.375rem;
}

.form-control,
.form-select {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Issue Type Colors */
.issue-epic,
.text-issue-epic {
    color: #6f42c1 !important;
}

.bg-issue-epic {
    background-color: #6f42c1 !important;
    color: white !important;
}

.issue-story,
.text-issue-story {
    color: #198754 !important;
}

.bg-issue-story {
    background-color: #198754 !important;
    color: white !important;
}

.issue-task,
.text-issue-task {
    color: #0d6efd !important;
}

.bg-issue-task {
    background-color: #0d6efd !important;
    color: white !important;
}

.issue-bug,
.text-issue-bug {
    color: #8B0000 !important;
}

.bg-issue-bug {
    background-color: #8B0000 !important;
    color: white !important;
}

.border-issue-epic {
    border-color: #6f42c1 !important;
}

.border-issue-story {
    border-color: #198754 !important;
}

.border-issue-task {
    border-color: #0d6efd !important;
}

.border-issue-bug {
    border-color: #8B0000 !important;
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxmaWx0ZXIgeD0iLTUwJSIgeT0iLTUwJSIgd2lkdGg9IjIwMCUiIGhlaWdodD0iMjAwJSIgZmlsdGVyVW5pdHM9Im9iamVjdEJvdW5kaW5nQm94IiBpZD0iYSI+PGZlR2F1c3NpYW5CbHVyIHN0ZERldmlhdGlvbj0iMTcuNSIgaW49IlNvdXJjZUdyYXBoaWMiLz48L2ZpbHRlcj48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48dXNlIGZpbGw9IiMwMDAiIGZpbHRlcj0idXJsKCNhKSIgeGxpbms6aHJlZj0iI2IiLz48dXNlIGZpbGw9IiNGRkYiIHhsaW5rOmhyZWY9IiNiIi8+PC9nPjxkZWZzPjxwYXRoIGlkPSJiIiBkPSJNMjcuNSAwTDU1IDQ5SDB6Ii8+PC9kZWZzPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
