@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyN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wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

    /* Mention popup and mention token styles */
    .mention-popup { font-family: inherit; font-size: 14px; }
    .mention-item { padding: 6px 8px; }
    .mention-item.mention-selected { background: #f1f7ff; }
    .mention {
        background: #e7f3ff;
        color: #0366d6;
        padding: 2px 6px;
        border-radius: 3px;
        font-weight: bold;
        border: 1px solid #b3d3f7;
        box-shadow: 0 1px 2px rgba(3,102,214,0.07);
    }

/* =================================
   Flag Icons
   ================================= */

.flag-icon {
    width: 20px;
    height: 15px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.flag-icon-sm {
    width: 16px;
    height: 12px;
}

.flag-icon-lg {
    width: 24px;
    height: 18px;
}

/* =================================
   RTL (Right-to-Left) Support
   ================================= */

/* Base RTL styles */
[dir="rtl"] {
    text-align: right;
}

/* ================================= 
   FIXED: Page layout RTL fixes 
   ================================= */

/* Default LTR layout */
.page {
    display: flex;
    flex-direction: row;
}

.sidebar {
    order: 1;
    width: 250px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

main {
    order: 2;
    flex: 1;
    margin-left: 0;
    margin-right: 0;
}

/* RTL layout - sidebar moves to right */
[dir="rtl"] .page {
    flex-direction: row-reverse;
}

[dir="rtl"] .sidebar {
    order: 1;
    right: 0;
    left: auto;
}

[dir="rtl"] main {
    order: 2;
    margin-left: 0;
    margin-right: 0;
}

/* Top row navigation */
[dir="rtl"] .top-row {
    direction: rtl;
}

[dir="rtl"] .top-row .d-flex {
    direction: rtl;
}

/* Navigation RTL fixes */
[dir="rtl"] .nav-scrollable {
    direction: rtl;
}

[dir="rtl"] .nav-item {
    text-align: right;
}

[dir="rtl"] .nav-link {
    text-align: right;
    padding-left: 0.5rem;
    padding-right: 1rem;
}

[dir="rtl"] .nav-link .oi {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .navbar-brand {
    margin-left: auto;
    margin-right: 0;
}

/* Dropdown fixes */
[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-menu-end {
    left: auto;
    right: 0;
}

[dir="rtl"] .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.255em;
}

/* Flex layout RTL fixes */
[dir="rtl"] .d-flex.justify-content-end {
    justify-content: flex-start;
}

[dir="rtl"] .d-flex.justify-content-between {
    flex-direction: row;
}

[dir="rtl"] .d-flex.align-items-center {
    flex-direction: row;
}

/* Gap and spacing fixes */
[dir="rtl"] .gap-2 > * + * {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Bootstrap margin/padding RTL overrides */
[dir="rtl"] .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

[dir="rtl"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

/* Flag icon RTL fixes */
[dir="rtl"] .flag-icon {
    margin-left: 0.5rem;
    margin-right: 0;
}

[dir="rtl"] .me-2.flag-icon {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

/* Content and card RTL fixes */
[dir="rtl"] .content {
    direction: rtl;
}

[dir="rtl"] .card {
    text-align: right;
}

[dir="rtl"] .card-body {
    text-align: right;
}

[dir="rtl"] .card-title {
    text-align: right;
}

[dir="rtl"] .card-text {
    text-align: right;
}

/* Table RTL fixes */
[dir="rtl"] .table {
    direction: rtl;
}

[dir="rtl"] .table th,
[dir="rtl"] .table td {
    text-align: right;
}

/* Form RTL fixes */
[dir="rtl"] .form-control {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .form-check {
    text-align: right;
    padding-left: 0;
    padding-right: 1.25em;
}

[dir="rtl"] .form-check-input {
    margin-left: 0.25rem;
    margin-right: 0;
    float: right;
}

[dir="rtl"] .form-switch .form-check-input {
    margin-left: -2.5em;
    margin-right: 0;
}

/* Button and badge RTL fixes */
[dir="rtl"] .btn {
    text-align: center;
}

[dir="rtl"] .badge {
    direction: ltr; /* Keep badges LTR for numbers and mixed content */
}

/* Alert and message RTL fixes */
[dir="rtl"] .alert {
    text-align: right;
    direction: rtl;
}

[dir="rtl"] .text-muted {
    text-align: right;
}

/* Modal RTL fixes */
[dir="rtl"] .modal-header {
    direction: rtl;
}

[dir="rtl"] .modal-body {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .modal-footer {
    direction: rtl;
}

[dir="rtl"] .btn-close {
    left: 1rem;
    right: auto;
}

/* Project card specific RTL fixes */
[dir="rtl"] .project-card {
    direction: rtl;
}

[dir="rtl"] .project-card .d-flex {
    direction: rtl;
}

/* Container and row RTL fixes */
[dir="rtl"] .container-fluid {
    direction: rtl;
}

[dir="rtl"] .row {
    direction: rtl;
}

/* Spinner RTL fixes */
[dir="rtl"] .spinner-border {
    margin: 0 auto;
}

/* Language switcher specific fixes */
#languageDropdown {
    min-width: 120px;
}

[dir="rtl"] #languageDropdown {
    direction: ltr; /* Keep the button text LTR for mixed content */
}

[dir="rtl"] .dropdown-item {
    text-align: right;
    direction: rtl;
}

/* Dropdown item flex layout for flags */
.dropdown-item {
    display: flex;
    align-items: center;
}

[dir="rtl"] .dropdown-item {
    flex-direction: row-reverse;
    text-align: right;
}

/* Fix for Hebrew page title in browser tab */
[dir="rtl"] title {
    direction: rtl;
}

/* ================================= 
   Media Queries for Responsive Design
   ================================= */

@media (max-width: 767px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    [dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    
    main {
        margin-left: 0;
        margin-right: 0;
    }
    
    [dir="rtl"] main {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ================================= 
   Kanban Board Responsive Styles
   ================================= */

/* Large screens - more space for 6+ columns */
@media (max-width: 1400px) {
    .kanban-column {
        min-width: 180px !important;
        max-width: 200px !important;
    }
}

/* Medium screens - compact for 6 columns */
@media (max-width: 1200px) {
    .kanban-column {
        min-width: 160px !important;
        max-width: 180px !important;
    }
    .kanban-board {
        gap: 0.25rem !important;
    }
}

/* Small screens - very compact */
@media (max-width: 992px) {
    .kanban-column {
        min-width: 140px !important;
        max-width: 160px !important;
    }
    .kanban-column-header {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.8rem !important;
    }
    .kanban-task .card-body {
        padding: 0.5rem !important;
    }
}

/* Mobile screens - minimal layout */
@media (max-width: 768px) {
    .container-fluid.kanban-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .kanban-column {
        min-width: 120px !important;
        max-width: 140px !important;
    }
    .kanban-board {
        gap: 0.125rem !important;
    }
}

/*# sourceMappingURL=site.css.map */
