html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e52390;
}

.validation-message {
    color: #e52390;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Wrike HTML content styling - make hyperlinks noticeable */
.wrike-html-content a {
    color: #1976d2;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.wrike-html-content a:hover {
    color: #0d47a1;
    text-decoration: underline;
}

.wrike-html-content a:visited {
    color: #7b1fa2;
}

.wrike-html-content strong,
.wrike-html-content b {
    font-weight: 700;
}

.wrike-html-content em,
.wrike-html-content i {
    font-style: italic;
}

.wrike-html-content ul,
.wrike-html-content ol {
    margin: 8px 0;
    padding-left: 24px;
}

.wrike-html-content li {
    margin: 4px 0;
}

/* Wrike mention styling */
.wrike-mention {
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
}

.wrike-mention:hover {
    background-color: #bbdefb;
    text-decoration: none;
}

/* Flip card for Assignees/Followers */
.flip-card {
    perspective: 1000px;
    position: relative;
    min-height: 150px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card-inner.flipped {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.flip-card-front {
    position: relative;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

/* ============================================================================
   NAVIGATION APPBAR - Animated underline for buttons
   ============================================================================ */

/* Target all buttons in the nav AppBar */
.nav-appbar .mud-button-root {
    position: relative;
    overflow: visible;
}

/* Create the underline using ::after pseudo-element */
.nav-appbar .mud-button-root::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

/* Expand underline on hover */
.nav-appbar .mud-button-root:hover::after {
    width: 85%;
}

/* Exclude buttons inside dropdown menus from getting the underline */
.menu-dropdown-popover .mud-button-root::after,
.mud-list .mud-button-root::after,
.mud-popover .mud-button-root::after {
    display: none;
}

/* ============================================================================
   RICH TEXT EDITOR TABLE STYLES (Quill/MudExRichTextEdit)
   ============================================================================ */

/* Base table styles */
.ql-table-better,
table.ql-table-better {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

/* Table cell borders and padding */
.ql-table-better td,
.ql-table-better th {
    border: 1px solid #000000;
    padding: 8px;
    min-width: 50px;
}

/* Table block paragraphs inside cells */
.ql-table-block {
    margin: 0;
    padding: 0;
}

/* Center-aligned table content */
.ql-align-center {
    text-align: center;
}

/* Left-aligned table content (default) */
.ql-align-left {
    text-align: left;
}

/* Right-aligned table content */
.ql-align-right {
    text-align: right;
}

/* Selected cell highlight (when editing) */
.ql-cell-selected {
    background-color: rgba(0, 128, 0, 0.2);
}

/* Focused cell highlight (when editing) */
.ql-cell-focused {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
}

/* Ensure temporary elements don't display */
.ql-table-temporary {
    display: none;
}

/* ── Mobile-responsive overrides ───────────────────────────────────────── */

/* Make MudDialogs full-screen on small screens */
@media (max-width: 959.98px) {
    .mud-dialog {
        max-width: 100vw !important;
        max-height: 100vh !important;
        width: 100vw !important;
        height: 100vh !important;
        margin: 0 !important;
        border-radius: 0 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
    }

    .mud-dialog .mud-dialog-content {
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto;
    }

    /* MudDataGrid: enable horizontal scroll */
    .mud-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Expansion panels: reduce padding */
    .mud-expand-panel-content .mud-paper {
        padding: 8px !important;
    }

    /* InfoCard: add margin on mobile/tablet */
    .info-card {
        margin: 8px;
    }
}
