/* =========================================
   RESET / BASE
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --container-width: 1440px;
    --color-bg: #f6f7f9;
    --color-surface: #ffffff;
    --color-surface-alt: #f9f9fa;
    --color-text: #111111;
    --color-text-soft: #666666;
    --color-line: #e7e7e7;
    --color-accent: #EB5202;
    --color-accent-dark: #D94A00;
    --color-accent-soft: rgba(235, 82, 2, 0.08);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.08);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --header-height: 96px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    min-height: 100%;
}

body {
    min-height: 100%;
    font-family: "Barlow", sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin-bottom: 0;
}

.app-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================================
   HEADER
========================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-line);
}

.app-header__inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.app-brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
}

.app-brand__eyebrow {
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.app-brand__title {
    font-family: "Syncopate", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #000000;
}

.app-header__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
    flex: 1 1 auto;
    min-width: 0;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
}

    .app-nav a {
        position: relative;
        display: inline-flex;
        align-items: center;
        min-height: 42px;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-size: 18px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        color: #111111;
        transition: color 0.2s ease;
    }

        .app-nav a::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -4px;
            width: 100%;
            height: 2px;
            background: var(--color-accent);
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            transition: transform 0.2s ease;
        }

        .app-nav a:hover::after,
        .app-nav a:focus-visible::after,
        .app-nav a.active::after {
            transform: translateX(-50%) scaleX(1);
        }

.app-user-area {
    flex: 0 0 auto;
}

    .app-user-area ul {
        display: flex;
        align-items: center;
        gap: 12px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .app-user-area a,
    .app-user-area button,
    .app-user-area .nav-link {
        min-height: 44px;
        padding: 0 18px;
        border: 1.5px solid var(--color-accent);
        border-radius: var(--radius-pill);
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-size: 16px;
        font-weight: 700;
        line-height: 1;
        text-transform: uppercase;
        color: #111111;
        transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease, border-color 0.2s ease;
    }

        .app-user-area a:hover,
        .app-user-area button:hover,
        .app-user-area .nav-link:hover {
            background: var(--color-accent);
            color: #ffffff;
            transform: translateY(-1px);
        }

    .app-user-area form {
        margin: 0;
    }

.app-nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
    padding: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

    .app-nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        margin: 5px auto;
        background: var(--color-accent);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .app-nav-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .app-nav-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .app-nav-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* =========================================
   MAIN LAYOUT
========================================= */

.app-main {
    flex: 1 1 auto;
    padding: 36px 0 56px;
}

/* =========================================
   FOOTER
========================================= */

.app-footer {
    background: #ffffff;
    border-top: 1px solid var(--color-line);
}

.app-footer__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--color-text-soft);
    font-size: 15px;
}

.app-footer__right a {
    transition: color 0.2s ease;
}

    .app-footer__right a:hover {
        color: var(--color-accent);
    }

/* =========================================
   PAGE STRUCTURE
========================================= */

.page-header {
    margin-bottom: 28px;
}

.page-title {
    margin: 0;
    font-family: "Syncopate", sans-serif;
    font-size: 38px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.page-subtitle {
    margin-top: 12px;
    max-width: 900px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-soft);
}

/* =========================================
   CARDS / PANELS
========================================= */

.card,
.app-card {
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.app-card {
    padding: 28px;
}

.app-card__title {
    margin: 0 0 18px;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: #111111;
}

/* =========================================
   BUTTONS
========================================= */

.btn,
button,
input[type="submit"],
input[type="button"] {
    border-radius: var(--radius-pill);
}

    .btn-primary,
    .btn.btn-primary {
        border: 2px solid var(--color-accent);
        background: var(--color-accent);
        color: #ffffff;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
        transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
    }

        .btn-primary:hover,
        .btn.btn-primary:hover {
            background: var(--color-accent-dark);
            border-color: var(--color-accent-dark);
            transform: translateY(-1px);
        }

    .btn-outline-primary,
    .btn.btn-outline-primary {
        border: 2px solid var(--color-accent);
        background: transparent;
        color: #111111;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-weight: 700;
        text-transform: uppercase;
    }

        .btn-outline-primary:hover,
        .btn.btn-outline-primary:hover {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: #ffffff;
        }

    .btn-secondary,
    .btn.btn-secondary {
        border: 1px solid var(--color-line);
        background: #ffffff;
        color: #111111;
    }

/* =========================================
   FORMS
========================================= */

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"] {
    min-height: 50px;
    border: 1px solid #e4c6b4;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    box-shadow: none;
}

    textarea.form-control,
    textarea {
        min-height: 120px;
        padding-top: 14px;
        resize: vertical;
    }

.form-label,
label {
    margin-bottom: 8px;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #111111;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
button:focus,
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(235, 82, 2, 0.14);
    outline: none;
}

/* =========================================
   TABLES
========================================= */

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.table {
    margin-bottom: 0;
    background: #ffffff;
    border-collapse: separate;
    border-spacing: 0;
}

    .table > :not(caption) > * > * {
        padding: 16px 18px;
        border-bottom: 1px solid var(--color-line);
        vertical-align: middle;
    }

    .table thead th {
        background: #111111;
        color: #ffffff;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-size: 15px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 0;
    }

    .table tbody tr:hover {
        background: rgba(235, 82, 2, 0.03);
    }

/* =========================================
   BADGES / STATUS
========================================= */

.badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.status-badge--accent {
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
}

.status-badge--neutral {
    background: #f1f1f1;
    color: #555555;
}

/* =========================================
   ALERTS / VALIDATION
========================================= */

.validation-summary-errors,
.text-danger,
.field-validation-error {
    color: #b42318 !important;
}

    .validation-summary-errors ul {
        padding-left: 18px;
        margin-top: 8px;
    }

.alert {
    border: 0;
    border-radius: 14px;
    padding: 16px 18px;
}

.alert-success {
    background: #eef8f2;
    color: #14532d;
}

.alert-danger {
    background: #fef1f1;
    color: #991b1b;
}

/* =========================================
   BOOTSTRAP CLEANUP OVERRIDES
========================================= */

.navbar,
.navbar-expand-sm,
.navbar-light,
.bg-white,
.border-bottom,
.box-shadow,
.footer {
    all: unset;
}

.container,
.container-fluid {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}

main.pb-3 {
    padding-bottom: 0 !important;
}

/* =========================================
   LOGIN PARTIAL COMPATIBILITY
========================================= */

.app-user-area .navbar-nav {
    flex-direction: row;
}

.app-user-area .nav-item {
    list-style: none;
}

.app-user-area .nav-link {
    padding: 0 18px !important;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .app-brand__title {
        font-size: 21px;
    }

    .app-nav {
        gap: 22px;
    }

    .page-title {
        font-size: 32px;
    }
}

@media (max-width: 900px) {
    .app-header__inner {
        min-height: 84px;
    }

    .app-nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .app-header__right {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 24px 24px;
        background: #ffffff;
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow-md);
    }

        .app-header__right.is-open {
            display: flex;
        }

    .app-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
    }

        .app-nav a {
            min-height: 52px;
            width: 100%;
            justify-content: flex-start;
            border-bottom: 1px solid var(--color-line);
        }

            .app-nav a::after {
                display: none;
            }

    .app-user-area {
        width: 100%;
    }

        .app-user-area ul {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .app-user-area a,
        .app-user-area button,
        .app-user-area .nav-link {
            width: 100%;
        }

    .app-main {
        padding-top: 28px;
    }

    .app-footer__inner {
        min-height: auto;
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .app-container {
        padding: 0 18px;
    }

    .app-brand__eyebrow {
        font-size: 11px;
    }

    .app-brand__title {
        font-size: 18px;
    }

    .page-title {
        font-size: 26px;
        line-height: 1.12;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .app-card {
        padding: 20px;
    }

    .app-card__title {
        font-size: 20px;
    }

    .table > :not(caption) > * > * {
        padding: 14px 12px;
    }
}


/* =========================================
   PROJECTS INDEX
========================================= */

.projects-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.projects-page__header-actions {
    flex: 0 0 auto;
}

.projects-page__create-btn {
    min-height: 50px;
    padding: 0 24px;
    font-size: 17px;
}

.projects-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.projects-summary__card {
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.projects-summary__label {
    display: block;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-soft);
    margin-bottom: 10px;
}

.projects-summary__value {
    display: block;
    font-family: "Syncopate", sans-serif;
    font-size: 28px;
    line-height: 1.1;
    color: var(--color-accent);
}

.projects-card {
    padding: 0;
    overflow: hidden;
}

.projects-card__top {
    padding: 24px 28px 0;
}

.projects-table-wrap {
    box-shadow: none;
    border-radius: 0 0 20px 20px;
}

.projects-table {
    min-width: 1200px;
}

.projects-table__name-cell {
    display: flex;
    align-items: center;
}

.projects-table__name {
    font-size: 17px;
    line-height: 1.35;
    color: #111111;
}

.projects-status {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.projects-status--status {
    background: rgba(235, 82, 2, 0.1);
    color: #b84305;
}

.projects-status--priority {
    background: #f3f3f3;
    color: #333333;
}

.project-users-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}

.project-users-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #ededed;
}

.project-users-list__email {
    font-size: 14px;
    line-height: 1.45;
    color: #111111;
    word-break: break-word;
}

.project-users-list__role {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(235, 82, 2, 0.08);
    color: var(--color-accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.projects-table__empty {
    color: var(--color-text-soft);
    font-size: 14px;
}

.projects-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 220px;
}

    .projects-actions .btn {
        min-height: 38px;
        padding: 0 14px;
        font-size: 14px;
        font-weight: 700;
    }

    .projects-actions .btn-outline-secondary {
        border: 1.5px solid #d8d8d8;
        color: #111111;
        background: #ffffff;
    }

        .projects-actions .btn-outline-secondary:hover {
            background: #111111;
            border-color: #111111;
            color: #ffffff;
        }

    .projects-actions .btn-outline-primary {
        border: 1.5px solid var(--color-accent);
        color: #111111;
        background: transparent;
    }

        .projects-actions .btn-outline-primary:hover {
            background: var(--color-accent);
            border-color: var(--color-accent);
            color: #ffffff;
        }

    .projects-actions .btn-outline-danger {
        border: 1.5px solid #d92d20;
        color: #d92d20;
        background: transparent;
    }

        .projects-actions .btn-outline-danger:hover {
            background: #d92d20;
            border-color: #d92d20;
            color: #ffffff;
        }

@media (max-width: 900px) {
    .projects-summary {
        grid-template-columns: 1fr;
    }

    .projects-card__top {
        padding: 20px 20px 0;
    }
}

@media (max-width: 640px) {
    .projects-page__create-btn {
        width: 100%;
    }

    .projects-summary__card {
        padding: 20px;
    }

    .projects-summary__value {
        font-size: 22px;
    }
}

.projects-page__create-btn,
.btn.projects-page__create-btn,
a.projects-page__create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 26px;
    line-height: 1;
    vertical-align: middle;
}

/* =========================================
   PROJECT CREATE / EDIT FORM
========================================= */

.row > .col-md-6:has(form[asp-action="Create"]),
.row > .col-md-6:has(form) {
    max-width: 100%;
    flex: 0 0 100%;
}

form[asp-action="Create"] {
    max-width: 980px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

h1 {
    margin: 0 0 10px;
    font-family: "Syncopate", sans-serif;
    font-size: 34px;
    line-height: 1.12;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

h4 {
    margin: 0;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
}

hr {
    margin: 22px 0 28px;
    border: 0;
    border-top: 1px solid var(--color-line);
    opacity: 1;
}

form[asp-action="Create"] .mb-3 {
    margin-bottom: 20px !important;
}

form[asp-action="Create"] .form-label {
    margin-bottom: 8px;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
}

form[asp-action="Create"] .form-control,
form[asp-action="Create"] .form-select {
    min-height: 52px;
    border: 1px solid #e8cbbb;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    box-shadow: none;
}

form[asp-action="Create"] textarea.form-control {
    min-height: 130px;
    padding-top: 14px;
    resize: vertical;
}

form[asp-action="Create"] .form-control:focus,
form[asp-action="Create"] .form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(235, 82, 2, 0.14);
}

form[asp-action="Create"] .input-group {
    align-items: stretch;
}

form[asp-action="Create"] .input-group-text {
    min-width: 62px;
    border: 1px solid #e8cbbb;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #f7f2ef;
    color: #7a5b4b;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    justify-content: center;
}

form[asp-action="Create"] .input-group .form-control {
    border-radius: 12px 0 0 12px;
}

form[asp-action="Create"] .text-danger {
    display: inline-block;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

form[asp-action="Create"] .text-warning {
    display: inline-block;
    margin-top: 8px !important;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    color: #a16207 !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}

form[asp-action="Create"] .validation-summary-errors {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fef1f1;
    border: 1px solid #f5c2c7;
}

    form[asp-action="Create"] .validation-summary-errors ul {
        margin: 0;
        padding-left: 18px;
    }

/* Assigned users list */

#assigned-users-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

#no-assigned-users-message {
    padding: 16px 18px;
    border: 1px dashed #d8d8d8;
    border-radius: 14px;
    background: #fafafa;
    color: var(--color-text-soft) !important;
}

.pending-user-row {
    margin-bottom: 0 !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    background: #fcfcfc;
    padding: 18px !important;
    box-shadow: none;
}

    .pending-user-row .form-control[readonly] {
        background: #ffffff;
        color: #222222;
    }

/* New assignment button */

#show-new-assignment-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1.5px solid var(--color-accent);
    border-radius: 999px;
    background: transparent;
    color: #111111;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease, transform 0.18s ease;
}

    #show-new-assignment-btn:hover {
        background: var(--color-accent);
        color: #ffffff;
        transform: translateY(-1px);
    }

/* New assignment block */

#new-assignment-row {
    border: 1px solid #ececec !important;
    border-radius: 18px !important;
    background: #fafafa;
    padding: 22px !important;
    margin-top: 16px !important;
}

    #new-assignment-row h5 {
        margin: 0 0 18px;
        font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
        font-size: 20px;
        line-height: 1.2;
        font-weight: 700;
        text-transform: uppercase;
        color: #111111;
    }

#confirm-new-assignment-btn,
#cancel-new-assignment-btn,
.remove-pending-user-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 16px;
    line-height: 1;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
}

#confirm-new-assignment-btn {
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    color: #ffffff;
}

    #confirm-new-assignment-btn:hover {
        background: var(--color-accent-dark);
        border-color: var(--color-accent-dark);
    }

#cancel-new-assignment-btn {
    border: 1.5px solid #d8d8d8;
    background: #ffffff;
    color: #111111;
}

    #cancel-new-assignment-btn:hover {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }

.remove-pending-user-btn {
    width: 100%;
    border-width: 1.5px;
}

/* Bottom action bar */

form[asp-action="Create"] .mt-4.d-flex.gap-2 {
    margin-top: 30px !important;
    padding-top: 8px;
    flex-wrap: wrap;
    align-items: center;
}

    form[asp-action="Create"] .mt-4.d-flex.gap-2 .btn {
        min-height: 50px;
        padding: 0 24px;
        font-size: 16px;
        font-weight: 700;
        text-transform: uppercase;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

form[asp-action="Create"] .btn-primary {
    border-width: 2px;
}

form[asp-action="Create"] .btn-outline-secondary {
    border: 1.5px solid #d8d8d8;
    color: #111111;
    background: #ffffff;
}

    form[asp-action="Create"] .btn-outline-secondary:hover {
        background: #111111;
        border-color: #111111;
        color: #ffffff;
    }

/* Better spacing inside bootstrap rows in this form */

form[asp-action="Create"] .row {
    --bs-gutter-x: 18px;
    --bs-gutter-y: 14px;
}

/* Responsive */

@media (max-width: 900px) {
    form[asp-action="Create"] {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    h1 {
        font-size: 28px;
    }

    h4 {
        font-size: 20px;
    }

    form[asp-action="Create"] {
        padding: 20px;
        border-radius: 18px;
    }

    #new-assignment-row {
        padding: 18px !important;
    }

    form[asp-action="Create"] .col-md-3.d-flex.gap-2 {
        flex-direction: column;
    }

    #confirm-new-assignment-btn,
    #cancel-new-assignment-btn,
    #show-new-assignment-btn,
    form[asp-action="Create"] .mt-4.d-flex.gap-2 .btn {
        width: 100%;
    }

    form[asp-action="Create"] .mt-4.d-flex.gap-2 {
        flex-direction: column;
        align-items: stretch;
    }
}

/* =========================================
   PROJECTS TABLE ACTIONS ALIGN FIX
========================================= */

.projects-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    align-items: flex-start;
    min-width: 210px;
}

    .projects-actions .btn,
    .projects-actions a.btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 0 16px;
        line-height: 1;
        vertical-align: middle;
        white-space: nowrap;
        margin: 0;
    }

.projects-table td:last-child {
    vertical-align: top;
}

.projects-table .btn-sm {
    font-size: 14px;
    line-height: 1;
    padding: 0 16px;
}

/* opcionális: Törlés menjen külön sorba szépen */
.projects-actions .btn-outline-danger {
    clear: both;
}

/* =========================================
   EVENT DESCRIPTION TRUNCATE
========================================= */

.event-description {
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================
   BRAND / HEADER TEXT UPDATES
========================================= */

.app-brand__eyebrow {
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-accent);
}

.app-brand__title {
    font-family: "Syncopate", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: #000000;
}

.app-user-area .nav-link,
.app-user-area a,
.app-user-area button {
    font-size: 15px;
}

/* =========================================
   PROJECT SUMMARY ACTION CARD
========================================= */

.projects-summary__card--action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-summary__action-btn,
.btn.projects-summary__action-btn,
a.projects-summary__action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    min-width: 190px;
    padding: 0 28px;
    line-height: 1;
    font-size: 17px;
}

/* =========================================
   FOOTER TEXT
========================================= */

.app-footer__left span {
    display: inline-block;
}

/* =========================================
   AUTH / LOGIN
========================================= */

.auth-page {
    display: flex;
    justify-content: center;
    padding: 48px 0 24px;
}

.auth-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.auth-title {
    margin: 0 0 24px;
    font-family: "Syncopate", sans-serif;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.auth-card .form-label {
    margin-bottom: 8px;
    font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    color: #111111;
}

.auth-card .form-control {
    min-height: 52px;
    border: 1px solid #e8cbbb;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-size: 16px;
    box-shadow: none;
}

    .auth-card .form-control:focus {
        border-color: var(--color-accent);
        box-shadow: 0 0 0 4px rgba(235, 82, 2, 0.14);
    }

.auth-card .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 28px;
}

.auth-card .form-check-input {
    margin-top: 0;
}

.auth-card .form-check-label {
    margin-bottom: 0;
    font-family: "Barlow", sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
}

.auth-submit-wrap {
    margin-top: 12px;
    margin-bottom: 30px; /* ez ad nagyobb helyet a gomb alatt */
}

.auth-submit-btn {
    min-height: 52px;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-links p {
    margin: 0 0 12px;
}

.auth-links a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

    .auth-links a:hover {
        color: var(--color-accent);
    }

@media (max-width: 640px) {
    .auth-page {
        padding: 28px 0 12px;
    }

    .auth-card {
        padding: 22px;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-submit-btn {
        width: 100%;
    }
}