:root {
    --primary-color: #174b79;
    /* --secondary-color: #cf9c1e; */
    --secondary-color: #ffd600;
}

@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px !important;
    }
}

.header {
    margin-bottom: 1rem !important;
}

.border-bottom {
    border-bottom: 1px solid var(--primary-color) !important;
}

.content {
    margin-top: 1rem !important;
}

.wrapper:before {
    height: 10rem !important;
}

/* reset password */
.mb-2-8 {
    margin-bottom: 2.8rem;
}

.title-space {
    padding-bottom: 0.6rem;
}

.btn-accoring-to-text {
    width: revert;
}

/* reset password */

.btn-primary,
.list-group-item.active,
.bg-primary-dark,
.splash .splash-icon {
    background-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary,
.list-group-item.active,
.bg-primary-dark {
    border: var(--primary-color) !important;
}

.btn-outline-primary {
    background-color: transparent !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--secondary-color) !important;
}

a.sidebar-link .fab,
a.sidebar-link .fal,
a.sidebar-link .far,
a.sidebar-link .fas,
a.sidebar-link svg,
.text-primary {
    color: var(--primary-color) !important;
}

.sidebar-item.active>.sidebar-link .fab,
.sidebar-item.active>.sidebar-link .fal,
.sidebar-item.active>.sidebar-link .far,
.sidebar-item.active>.sidebar-link .fas,
.sidebar-item.active>.sidebar-link svg,
.sidebar-item.active>.sidebar-link {
    color: var(--secondary-color) !important;
}

.sidebar-item.active>.sidebar-link {
    background-color: var(--primary-color) !important;
}


.sidebar-link:hover {
    color: var(--primary-color) !important;
    background-color: #e9e9e9 !important;
}

.sidebar-brand,
.sidebar-brand:hover,
.wrapper:before {
    background-color: var(--primary-color) !important;
}

/* .header-title {
    color: #ed1c24 !important;
} */

.dispatch-note {
    display: block;
    /* Ensures the badge behaves like a block element */
    max-width: 100%;
    /* Prevents overflow */
    white-space: normal;
    /* Allows wrapping */
    word-wrap: break-word;
    /* Breaks long words */
    overflow-wrap: break-word;
    /* Ensures text wraps properly */
    text-align: left;
    /* Align text properly */
    padding: 8px;
    /* Adds spacing inside the badge */
}

input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--primary-color) !important;
    border-width: 1px !important;
}

.sidebar-user {
    padding: 1rem 0rem 0rem !important;
}

.cardscroll {
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    max-height: 20rem;
}

.text-bg-warning,
.bg-warning {
    background-color: var(--secondary-color) !important;
}

.sidebar-user img {
    height: 5rem !important;
    width: auto !important;
}

.logo {
    height: 4rem !important;
}

.developer-brand-link {
    color: #174b79 !important;
    font-weight: 700;
    text-decoration: none;
}

.developer-brand-link:hover {
    color: #0f3557 !important;
    text-decoration: underline;
}

.center-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.nav-tab {
    --bs-nav-link-padding-x: 1rem;
    --bs-nav-link-padding-y: 0.5rem;
    --bs-nav-link-font-weight: ;
    --bs-nav-link-color: var(--bs-link-color);
    --bs-nav-link-hover-color: var(--bs-link-hover-color);
    --bs-nav-link-disabled-color: var(--bs-secondary-color);
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin-bottom: 0;
    padding-left: 0;
}

.nav-item-tab {
    padding: 0.5rem !important;
}

.nav-tab .active {
    background-color: #ececec;
}

.sidebar-link,
a.sidebar-link {
    border-radius: .6rem !important;
    padding: .5rem .6rem !important;
}

.sidebar [data-bs-toggle=collapse]:before {
    top: 1.1rem !important;
}

.sidebar-item {
    margin-bottom: 0.3rem !important;
}

.sidebar-dropdown {
    padding-left: 1rem !important;
}

.min-height {
    min-height: 85vh !important;
}

.big-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #007bff;
    background-color: #fff;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.avatar-sm {
    height: 32px !important;
    width: 32px !important;
    min-width: 32px;
    min-height: 32px;
}

.avatar-md {
    height: 48px !important;
    width: 48px !important;
    min-width: 48px;
    min-height: 48px;
}

.avatar-lg {
    height: 64px !important;
    width: 64px !important;
    min-width: 64px;
    min-height: 64px;
}

.avatar i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm i {
    font-size: 12px;
}

.avatar-md i {
    font-size: 16px;
}

.avatar-lg i {
    font-size: 20px;
}

.avatar>* {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.quick-action-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar.d-flex {
    display: flex !important;
}

.stats-card .bg-primary,
.stats-card .bg-info,
.stats-card .bg-warning,
.stats-card .bg-success,
.stats-card .bg-danger {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.stats-card .bg-primary i,
.stats-card .bg-info i,
.stats-card .bg-warning i,
.stats-card .bg-success i,
.stats-card .bg-danger i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.validation-message {
    font-size: 13px !important;
}

.support-shell {
    color: #1b2838;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.support-hero {
    background:
        linear-gradient(120deg, rgba(12, 54, 92, 0.98), rgba(17, 93, 104, 0.94)),
        url('/storage/settings/consat_logo.png') right 2rem center / 180px auto no-repeat;
    border-radius: 8px;
    color: #ffffff;
    overflow: hidden;
    padding: 3rem;
    box-shadow: 0 18px 50px rgba(12, 54, 92, 0.16);
}

.support-hero .badge {
    background: rgba(255, 214, 0, 0.18);
    color: #fff7b0;
    border: 1px solid rgba(255, 214, 0, 0.35);
}

.support-panel,
.support-step,
.support-status-card {
    border: 1px solid #d8e1e8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 42, 66, 0.08);
}

.support-panel {
    padding: 1.5rem;
}

.support-panel--accent {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
}

.support-step {
    height: 100%;
    padding: 1.25rem;
    background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.support-step-number {
    align-items: center;
    background: var(--primary-color);
    border-radius: 50%;
    color: var(--secondary-color);
    display: inline-flex;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 2rem;
}

.support-choice {
    border: 1px solid #d8e1e8;
    border-radius: 8px;
    display: block;
    padding: 1rem;
    background: #f9fbfc;
}

.support-choice:hover {
    border-color: #1f5f8b;
    background: #ffffff;
}

.support-muted {
    color: #64748b;
}

.support-shell .form-control,
.support-shell .form-select,
.support-status-card .form-control,
.support-status-card .form-select {
    background-color: #f9fbfd;
    border: 1px solid #cfd8e3;
    color: #1e293b;
}

.support-shell .form-control:focus,
.support-shell .form-select:focus,
.support-status-card .form-control:focus,
.support-status-card .form-select:focus {
    background-color: #ffffff;
    border-color: #1f5f8b;
    box-shadow: 0 0 0 0.2rem rgba(31, 95, 139, 0.12);
}

.support-shell .form-text,
.support-status-card .form-text {
    color: #5b6b7c;
}

.support-shell .btn-primary,
.support-shell .btn-outline-primary {
    border-radius: 8px;
}

.support-status-pill {
    border-radius: 999px;
    display: inline-flex;
    font-weight: 700;
    padding: .4rem .8rem;
}

.support-status-open,
.support-status-in-progress,
.support-status-transferred,
.support-status-escalated {
    background: #fff7d6;
    color: #735f00;
}

.support-status-resolved {
    background: #dff6ea;
    color: #176b46;
}

.support-meta-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-meta-item {
    background: #f9fbfd;
    border: 1px solid #e4ebf1;
    border-radius: 8px;
    padding: .9rem 1rem;
}

.support-status-card .alert {
    border-radius: 8px;
    border: 1px solid rgba(31, 95, 139, 0.16);
}

.support-panel h1,
.support-panel h2,
.support-status-card h1,
.support-status-card h2 {
    color: #0f172a;
}

.support-panel .row,
.support-status-card .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.auth-card-signup {
    border-radius: 8px !important;
    box-shadow: 0 20px 60px rgba(23, 75, 121, 0.16) !important;
}

.signup-auth {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
    min-height: 620px;
}

.signup-auth__intro {
    background:
        linear-gradient(145deg, rgba(23, 75, 121, 0.97), rgba(18, 107, 92, 0.94)),
        url('/storage/settings/consat_logo.png') right 1.5rem bottom 1.5rem / 180px auto no-repeat;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.25rem;
}

.signup-auth__brand {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.signup-auth__brand .logo {
    background: #ffffff;
    border-radius: 8px;
    height: 4.5rem !important;
    padding: .55rem;
}

.signup-auth__eyebrow {
    color: #ffd600;
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.signup-auth__brand h1,
.signup-auth__form-header h2 {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.signup-auth__lead {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.7;
    margin: 2rem 0;
    max-width: 30rem;
}

.signup-auth__steps {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.signup-auth__step {
    display: grid;
    gap: .15rem .85rem;
    grid-template-columns: 2.5rem 1fr;
    padding: 1rem 0;
}

.signup-auth__step + .signup-auth__step {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signup-auth__step span {
    align-items: center;
    background: rgba(255, 214, 0, 0.14);
    border: 1px solid rgba(255, 214, 0, 0.34);
    border-radius: 50%;
    color: #fff4a3;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    grid-row: span 2;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.signup-auth__step strong {
    color: #ffffff;
    font-size: .95rem;
}

.signup-auth__step small {
    color: rgba(255, 255, 255, 0.72);
}

.signup-auth__departments {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2rem;
}

.signup-auth__departments span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: .78rem;
    padding: .45rem .7rem;
}

.signin-auth {
    grid-template-columns: minmax(300px, 1fr) minmax(340px, .9fr);
    min-height: 560px;
}

.signin-auth__access-list {
    display: grid;
    gap: .85rem;
}

.signin-auth__access-list div {
    display: grid;
    gap: .15rem .85rem;
    grid-template-columns: 2.25rem 1fr;
    padding: .9rem 0;
}

.signin-auth__access-list div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signin-auth__access-list span {
    align-items: center;
    background: rgba(255, 214, 0, 0.14);
    border: 1px solid rgba(255, 214, 0, 0.34);
    border-radius: 50%;
    color: #fff4a3;
    display: inline-flex;
    grid-row: span 2;
    height: 2.15rem;
    justify-content: center;
    width: 2.15rem;
}

.signin-auth__access-list strong {
    color: #ffffff;
    font-size: .95rem;
}

.signin-auth__access-list small {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

.signup-auth__form-panel {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.25rem;
}

.signup-auth__form-header {
    margin-bottom: 1.5rem;
}

.signup-auth__form-header h2 {
    color: var(--primary-color);
}

.signup-auth__form-header p {
    color: #64748b;
    margin: .5rem 0 0;
}

.signup-auth__form .form-label {
    color: #24364a;
    font-weight: 600;
    margin-bottom: .45rem;
}

.signup-auth__form .form-control {
    border-color: #d7e0e7;
    border-radius: 8px;
    min-height: 44px;
}

.signup-auth__form .form-control::placeholder {
    color: #94a3b8;
}

.signup-auth__terms {
    border-bottom: 1px solid #e8eef3;
    border-top: 1px solid #e8eef3;
    margin: 1.25rem 0;
    padding: 1rem 0;
}

.signup-auth__terms .form-check-label {
    color: #475569;
    line-height: 1.6;
}

.signup-auth__submit {
    border-radius: 8px;
    font-weight: 700;
    min-height: 46px;
}

.signup-auth__signin {
    color: #64748b;
    margin-top: 1rem;
    text-align: center;
}

.signin-auth__links {
    display: flex;
    justify-content: flex-end;
    margin: .85rem 0 1.25rem;
}

.signup-auth .password-field span {
    align-items: center;
    bottom: 0;
    color: #64748b;
    display: flex;
    height: 44px;
    position: absolute;
    right: .85rem;
}

.signup-auth .password-field .form-control {
    padding-right: 2.75rem;
}

@media (max-width: 767.98px) {
    .support-hero {
        background: linear-gradient(120deg, rgba(23, 75, 121, 0.97), rgba(18, 107, 92, 0.94));
        padding: 2rem 1.25rem;
    }

    .support-meta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .signup-auth {
        grid-template-columns: 1fr;
    }

    .signup-auth__intro {
        background: linear-gradient(145deg, rgba(23, 75, 121, 0.98), rgba(18, 107, 92, 0.95));
        gap: 1.5rem;
        padding: 1.75rem;
    }

    .signup-auth__lead,
    .signup-auth__departments {
        margin: 0;
    }

    .signup-auth__form-panel {
        padding: 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .signup-auth__brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .signup-auth__intro,
    .signup-auth__form-panel {
        padding: 1.25rem;
    }
}
