﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 15px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* header */
/*.header-banner {
    background: linear-gradient(to right, #0d0d6b, #0a0000);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.3rem 0.75rem;
    flex-wrap: wrap;
    gap: 0.4rem;
}*/

/* Title */
/*.header-banner h1 {
        color: #6e72d4;
        margin: 0;
        font-size: clamp(1.1rem, 4.5vw, 1.8rem);
        line-height: 1.2;
    }*/

/* Logo icon (default/desktop) */
/*.header-banner .logo-icon {
        background-color: #3f4245;
        border-radius: 6px;
        margin-right: 0.5rem;
        flex-shrink: 0;
        width: clamp(32px, 6vw, 48px);
        height: clamp(32px, 6vw, 48px);
    }*/

/* Toggle button */
/*.navbar-toggler {
    padding: 0.3rem 0.5rem;
    border: 1px solid #00bfff;
    background-color: #111c;
    border-radius: 0.4rem;
    align-self: center;
}

    .navbar-toggler i {
        font-size: 1rem;
    }*/

/* MOBILE ONLY Header */
/*@media (max-width: 576px) {
    .header-banner {
        padding: 0.2rem 0.5rem;
    }

        .header-banner h1 {
            font-size: 1rem;
        }

        .header-banner .logo-icon {
            width: 36px !important;
            height: 36px !important;
        }

    .navbar-toggler i {
        font-size: 0.9rem;
    }
}*/

.header-banner {
    background: linear-gradient(to right, #0d0d6b, #0a0000);
    padding: 0.3rem 0;
}

    .header-banner .logo-icon {
        border-radius: 6px;
        margin-right: 0.5rem;
        flex-shrink: 0;
        max-height: 64px;
        width: auto;
    }

    .header-banner .header-title {
        color: #6e72d4;
        margin: 0;
        font-size: clamp(1.1rem, 4.5vw, 1.8rem);
        line-height: 1.2;
    }

.navbar-toggler {
    padding: 0.3rem 0.5rem;
    border: 1px solid #00bfff;
    background-color: #111c;
    border-radius: 0.4rem;
    align-self: center;
}

    .navbar-toggler i {
        font-size: 1rem;
    }

@media (max-width: 576px) {
    .header-banner {
        padding: 0.2rem 0;
    }

        .header-banner .logo-icon {
            max-height: 45px;
        }

        .header-banner .header-title {
            font-size: 1rem;
        }

    .navbar-toggler i {
        font-size: 0.9rem;
    }
}
/* end header */

/* footer */
footer {
    background: #0a0a11;
    color: #226587;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -5px 10px rgba(0, 198, 255, 0.2), 0 -2px 10px #007bff, 0 -1px 5px #226587;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    footer,
    footer li,
    footer a,
    footer i {
        color: #808080;
        text-decoration: none;
        transition: color 0.5s ease;
    }

        footer a:hover,
        footer i:hover {
            color: rgba(0, 198, 255, 0.7);
            text-decoration: none;
        }

        footer hr {
            height: 3px;
            background: linear-gradient(90deg, #007bff, #00c6ff);
            margin: 10px 0 20px;
            border-radius: 2px;
            box-shadow: 0 0 8px rgba(0, 198, 255, 0.7);
        }
/* end footer */

/* login page */
/* register page */
.login-page, .register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem 1rem 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 550px;
    padding: 2rem;
    box-sizing: border-box;
}

.auth-card {
    max-height: 95vh;
    position: relative;
    background: linear-gradient(to bottom right, #174259, #246A8D);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    z-index: 1;
    width: 100%;
    overflow: hidden;
}

    .auth-card a {
        color: #88CBED;
        text-decoration: none;
        font-weight: 500;
        word-break: break-word;
    }

        .auth-card a:hover {
            color: #3AA9E1;
            text-decoration: underline;
        }

.legal-note {
    color: #C8DAEA;
    font-size: 1rem;
    display: inline !important;
}

.auth-logo {
    position: absolute;
    right: 200px;
    bottom: -150px;
    width: 135px;
    height: auto;
    opacity: 0.80;
    pointer-events: none;
    z-index: -1;
}

.btn-login {
    font-weight: bold;
    color: white;
    background-color: transparent;
    border: 2px solid;
    border-image: linear-gradient(to right, #9BAEC2, #8B8EDC, #3AA9E1) 1;
    border-radius: 0;
    padding: 0.5rem 1.5rem;
    text-align: center;
    white-space: nowrap;
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    width: auto;
    box-sizing: border-box;
}

.terms-link {
    font-weight: bold;
    color: inherit;
    text-decoration: underline;
}

    .terms-link:hover {
        color: #90cdf4 !important;
    }

@media (max-width: 600px) {
    .auth-container {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .auth-logo {
        width: 65px;
        right: 200px;
        bottom: -150px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-subtitle {
        font-size: 1rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 0.25rem;
    }

    .btn-login {
        font-size: 0.85rem;
        padding: 0.25rem 0.75rem;
    }
}

@media (max-width: 400px) {
    .auth-logo {
        display: none;
    }
}
/* end login page */
/* end register page */

/* about us page */
.our-team,
.ai-project {
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 0 7px #90cdf4;
}

    .our-team h4,
    .ai-project h4 {
        margin-top: 0;
        color: #90cdf4;
    }

.about-img {
    width: 60%;
    height: 250px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.logo-icon {
    height: 100px !important;
    width: auto !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block;
}
/* end about us */

/* navbar */
.navbar-custom {
    background-color: #226587;
}

    .navbar-custom .nav-link,
    .navbar-custom .navbar-text {
        color: #fff !important;
        transition: color 0.5s ease;
    }

.navbar-toggler {
    border-color: rgba(0, 198, 255, 0.7) !important;
}

.navbar-custom .navbar-brand:hover,
.navbar-custom .nav-link:hover {
    color: #b3daf4 !important;
}

body {
    background: linear-gradient(130deg, #000A14 0%, #053567 29%, #04131F 34%, #2B2D54 83%);
    color: #96a3c0;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
}
/* end navbar */

/* chatbot interface */
.chatbot-container {
    height: 750px;
    max-width: 1400px;
    margin: 40px auto;
    background: #181a23;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    min-height: 540px;
    border: 1px solid #23263a;
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(90deg, #6e72d4, #90cdf4 80%);
    padding: 1.2rem 2rem;
    text-align: center;
}

.chatbot-title {
    color: #fff;
    font-size: 1.6rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 600;
}

.chatbot-messages {
    position: relative;
    flex: 1;
    padding: 1.2rem;
    overflow-y: auto;
    background: #1e1e2f;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}

.chatbot-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    z-index: 0;
    user-select: none;
    width: 60%;
}

.chatbot-bg-text {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-bg-image {
    max-width: 40%;
    width: auto;
    height: auto;
    margin-bottom: 1rem;
}

.chatbot-bg-text {
    color: rgba(0, 198, 255, 0.7);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-message {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 80%;
}

    .chatbot-message.user {
        align-self: flex-end;
        align-items: flex-end;
    }

    .chatbot-message.computer {
        align-self: flex-start;
        align-items: flex-start;
    }

.chatbot-bubble {
    background: #3498db;
    color: #fff;
    padding: 0.7rem 1.1rem;
    border-radius: 1.2rem;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(52,152,219,0.08);
    word-break: break-word;
    margin-top: 0.2rem;
    max-width: 100%;
}

.chatbot-message.user .chatbot-bubble {
    background: #2ecc71;
    color: #fff;
}

.chatbot-time {
    font-size: 0.75rem;
    color: #acb3b8;
    margin-bottom: 0.1rem;
    margin-left: 0.2rem;
    margin-right: 0.2rem;
}

.chatbot-inputbar {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #23263a;
    border-top: 1px solid #2b2b3d;
    gap: 0;
    gap: 10px;
}

.chatbot-input {
    max-width: none !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 60px;
    max-height: 180px;
    padding: 0.7rem 1rem;
    border-radius: 1.2rem;
    border: none;
    background: #181a23;
    color: #fff;
    font-size: 1rem;
    outline: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: background 0.2s;
    resize: none;
    line-height: 1.5;
    overflow: hidden;
    margin-right: 0.5rem;
}

    .chatbot-input:focus {
        background: #23263a;
    }

.chatbot-plus-btn,
.chatbot-send-btn {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #3498db;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
    margin-right: 0;
    font-size: 1rem;
    color: #fff;
}

    .chatbot-send-btn:hover {
        background: #217dbb;
    }

    .chatbot-send-btn img {
        width: 24px;
        height: 24px;
    }

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}
/* end chatbot interface */

/* home page */
#homepage {
    font-family: 'Segoe UI', sans-serif;
    color: #e0e0e0;
    padding: 0;
    min-height: 100vh;
    padding-bottom: 4rem;
}

    #homepage .hero {
        text-align: center;
        padding: 6rem 2rem;
        color: #cce8ff;
    }

    #homepage .homepage-title {
        margin-bottom: 1rem;
        color: #cce8ff;
    }

    #homepage .homepage-subtitle {
        font-size: 1.80rem;
        color: #acb3b8;
        max-width: 700px;
        margin: 0 auto;
    }

    #homepage .features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        background: transparent;
        padding: 4rem 2rem;
        gap: 2rem 4rem;
    }

    #homepage .feature-box {
        background-color: #1a1f2b;
        border-radius: 1rem;
        padding: 2rem;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
        height: 100%;
        flex-direction: column;
        justify-content: flex-start;
        justify-content: center;
        text-align: center;
        overflow-x: hidden;
        min-height: 270px;
        min-width: 145px;
    }

    #homepage .feature-title {
        color: #66ccff;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    #homepage .feature-desc {
        color: #d3d7df;
        font-size: 1.25rem;
        flex-grow: 1;
    }

.cta-wrapper {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-bottom: 1rem;
}

#homepage .cta {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 4rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    box-sizing: border-box;
}

#homepage .cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
}

#homepage .cta-subtitle {
    font-size: 1.25rem;
    color: #a0d2f0;
    margin: 1rem auto 2rem;
    max-width: 700px;
}

#homepage .cta-button {
    background: #e0e0e0;
    color: black;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    #homepage .cta-button:hover {
        background: #217dbb;
        color: white;
    }

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#homepage,
#homepage .hero,
#homepage .features,
#homepage .cta-wrapper {
    max-width: 100%;
    overflow-x: hidden;
}

    #homepage .homepage-title {
        font-size: clamp(2.5rem, 6vw, 6rem);
        word-break: break-word;
    }

    #homepage .homepage-subtitle {
        font-size: clamp(1rem, 3vw, 1.8rem);
    }

    #homepage .features {
        padding-left: 1rem;
        padding-right: 1rem;
        box-sizing: border-box;
    }

    #homepage .feature-box {
        width: 100%;
        max-width: 300px;
        flex: 1 1 300px;
        box-sizing: border-box;
    }

    /* call to action */
    #homepage .cta {
        box-sizing: border-box;
    }

    #homepage .feature-desc,
    #homepage .feature-title {
        overflow-wrap: break-word;
    }

#workflowSuccessMsg {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 10000;
}

/* workflow base page */
#workflowTitlesHeader {
    display: flex;
    flex-direction: row;
    margin: 10px;
    justify-content: space-between;
    align-items: center;
}

    #workflowTitlesHeader h2 {
        font-weight: bold;
        color: white;
        font-size: 2em;
    }

    #workflowTitlesHeader div {
        display: flex;
        flex-direction: row;
        margin: 10px;
        justify-content: flex-end;
        align-items: center;
    }

        #workflowTitlesHeader div button {
            display: flex;
            flex-direction: row;
            margin: 10px;
            justify-content: space-between;
            background-color: #8B8EDC;
            border: none;
            font-size: 1.15em;
        }

            #workflowTitlesHeader div button:hover {
                background-color: #6E72D4;
            }

        #workflowTitlesHeader div input {
            background-color: #8B8EDC;
            border: none;
            font-size: 1.15em;
        }

            #workflowTitlesHeader div input:hover {
                background-color: #6E72D4;
            }

.workflow-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.workflow-card-line-separator {
    display: flex;
    position: relative;
    border-left: 10px solid white;
    background-color: white;
    border-radius: 12px;
    z-index: -1;
    visibility: visible;
}

.workflow-card {
    flex: 0 0 200px;
    background-color: #226587;
    color: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
    position: relative;
    margin: 15px;
}

.workflowLinks {
    text-align: center;
}

    .workflowLinks button {
        font-weight: bold;
        color: white;
        background-color: transparent;
        display: flex;
        padding: 10px;
        margin: auto;
        border: none;
        font-size: 1.25em;
    }

.workflow-card div h3 {
    text-align: center;
    margin-left: 2px;
    margin-right: 2px;
    padding: 3px;
}

.workflow-card:hover {
    transform: translateY(-4px);
    z-index: 10;
}

.workflow-card-image {
    width: 50%;
    height: 50%;
    margin: 0 auto 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background-color: #0B212C;
    text-align: center;
    aspect-ratio: 1 / 1;
}

    .workflow-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

.workflow-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-bottom: 2rem;
}

.workflow-card {
    position: relative;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.actions a {
    color: black;
    text-decoration: none;
}

.actions i {
    color: #3498db;
    margin-right: 4px;
}

.floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1abc9c;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1000;
}

    .floating-add-btn:hover {
        background-color: #16a085;
        text-decoration: none;
        color: white;
    }

html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.flex-fill {
    flex: 1;
}

.navbar-custom .nav-link.deeppink-link {
    color: deeppink !important;
}

/* create workflow page & workflow creation form */
.modal-title {
    color: #5c6ac4;
    font-weight: 600;
}

.form-label {
    color: #9ba1c9;
    font-weight: 500;
}

select {
    max-height: 200px;
    overflow-y: auto;
}

.image-upload-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    background: #f9f9f9;
    color: #7a85a1;
}

    .image-upload-area:hover {
        background: #eef;
    }

.floating-add-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #1abc9c;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
    z-index: 1000;
}

    .floating-add-btn:hover {
        background-color: #16a085;
        text-decoration: none;
        color: white;
    }

/* workflow task page */
.task-container {
    padding: 2rem;
    background-color: #1c1e22;
    border-radius: 8px;
    overflow-x: hidden;
}

@media (max-width: 576px) {
    .task-container {
        padding: 1rem;
    }

    .task-table td,
    .task-table th {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .task-description {
        font-size: 0.8rem;
    }

    .btn {
        margin-top: 0.3rem;
    }

    .task-table i {
        font-size: 0.9rem;
    }
}

.task-table th,
.task-table td {
    vertical-align: middle;
    text-align: center;
}

.task-table th {
    color: #3399ff;
}

.task-description {
    transition: all 0.3s ease;
}
/* end of all workflow pages */

/* organization page */
.your-orgs-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

.your-orgs-box {
    background-color: #2B2D54;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.orgs-title {
    color: white;
    font-size: 1.75rem;
    text-align: left;
    margin: 0;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* not in orgs */
.no-orgs-inner-box {
    background-color: #42447F;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
}

.plus-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-orgs-inner-box h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.no-orgs-inner-box p {
    color: #CDD6E0;
    font-size: 0.95rem;
}

.join-orgs-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.fancy-outline {
    position: relative;
    padding: 0.6rem 1.8rem;
    font-weight: bold;
    color: white;
    background: transparent;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    z-index: 0;
    overflow: hidden;
    border: none;
    text-align: center;
    white-space: nowrap;
    width: fit-content;
    max-width: 100%;
}

    .fancy-outline::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 8px;
        padding: 2px;
        background: linear-gradient(to right, #9BAEC2, #8B8EDC, #3AA9E1);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: destination-out;
        mask-composite: exclude;
        pointer-events: none;
    }

    .fancy-outline:hover {
        background-color: rgba(255, 255, 255, 0.07);
    }

@media (max-width: 600px) {
    .join-orgs-buttons {
        flex-direction: column;
        align-items: center;
    }

    .fancy-outline {
        width: fit-content;
    }
}
/* end organization pages */

/* error pages */
.error-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem 1rem 1rem;
    color: white;
    gap: 0.5rem;
}

.error-text {
    flex: 1;
    max-width: 500px;
}

.error-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.2rem;
    color: #c2c2c2;
    margin-bottom: 2rem;
}

.error-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid #3AA9E1;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
    text-transform: lowercase;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 0.5rem;
}

    .error-btn:hover {
        background-color: #B0DCF3;
        color: #002c5c;
    }

.error-icon {
    display: flex;
    align-items: flex-start;
}

    .error-icon img {
        max-width: 400px;
        height: auto;
    }

@media (max-width: 574px) {
    .error-title {
        font-size: 2rem;
    }

    .error-description {
        font-size: 1rem;
    }

    .error-icon img {
        max-width: 250px;
    }

    .error-btn {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 499px) {
    .error-icon {
        display: none;
    }
}

/* additional error pages */
a#LinkErrorPageToHomePage {
    color: white;
    text-decoration-line: none;
}

    a#LinkErrorPageToHomePage:hover {
        color: gray;
        text-decoration-line: underline;
    }

#ErrorContent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
    position: relative;
    z-index: 0;
    min-height: 300px;
    min-width: 300px;
    max-height: 900px;
    max-width: 900px;
    height: 60vh;
    width: 100vw;
}

#ErrorTextContent {
    background-color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 150px;
    min-width: 150px;
    max-height: 300px;
    max-width: 300px;
    height: 20vh;
    width: 20vw;
}

    #ErrorTextContent p {
        font-size: 1rem;
        text-align: center;
    }

#ErrorBackgroundImage {
    position: absolute;
    z-index: 0;
    min-height: 300px;
    min-width: 300px;
    max-height: 900px;
    max-width: 900px;
    height: 50vh;
    width: 50vw;
}

/* SIDEBAR STYLES - moved from _LayoutSidebar.cshtml for FOUC fix */
.sidebar-container {
    top: 0;
    left: 0;
    width: var(--sidebar-width, 300px);
    height: 100vh;
    z-index: 1000;
    border-right: 4px solid #226587;
    flex: 0 0 var(--sidebar-width, 300px);
}

.sidebar {
    background: #2B2D54;
    height: 100%;
    padding: 1rem;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-link,
.sidebar-link:visited,
.sidebar-link:focus,
.sidebar-link:active {
    color: #fff !important;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    padding: 0.75rem;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

    .sidebar-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #cce8ff !important;
        transform: translateX(5px);
    }

    .sidebar-link.active {
        background-color: rgba(255, 255, 255, 0.2);
        color: #cce8ff !important;
    }

    .sidebar-link i {
        color: #6e72d4;
    }

.sidebar-user-profile {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    padding: 0 0.25rem;
}

.user-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6e72d4, #8b8edc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-info {
    color: white;
    min-width: 0;
    overflow: hidden;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.user-role {
    font-size: 0.7rem;
    color: #b8c1ec;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.sidebar-settings-btn {
    color: #b8c1ec !important;
    padding: 0.4rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

    .sidebar-settings-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff !important;
        transform: rotate(15deg);
    }

.content-area {
    overflow-y: auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    /* Remove min-height: 100vh to prevent double scrollbars */
    min-height: unset;
}

.content-wrapper {
    padding: 2rem;
    flex: 1 0 auto;
}

.footer-with-sidebar {
    padding: 1rem;
    flex-shrink: 0;
}

.footer-with-sidebar {
    padding: 1rem;
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 260px;
    }

    .sidebar {
        padding: 0.75rem;
    }

    .sidebar-link {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .user-name {
        font-size: 0.75rem;
    }

    .user-role {
        font-size: 0.65rem;
    }

    .avatar-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .sidebar-settings-btn {
        width: 26px;
        height: 26px;
    }
}

@media (max-width: 576px) {
    .sidebar-container {
        display: none;
    }

    .content-area {
        margin-left: 0;
    }

    .footer-with-sidebar {
        margin-left: 0;
    }
}

.sidebar .nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar .nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sidebar .nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

    .sidebar .nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

.sidebar-header {
    min-height: 80px;
    padding-bottom: 8px;
}

.pmtron-header-text {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.main-layout {
    height: 100vh;
    display: flex;
}

.organization-card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
    min-height: 200px;
}

.organization-card {
    background-color: #226587;
    color: #fff;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    min-width: 340px;
    max-width: 420px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 0;
}

    .organization-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.16);
        z-index: 10;
    }

.organization-card-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background-color: #0B212C;
    text-align: center;
    aspect-ratio: 1 / 1;
}

    .organization-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 6px;
    }

.organizationLinks {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .organizationLinks h3 {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
        color: #fff;
    }

.status.in-progress {
    color: #cce8ff;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ThreeDotButtonsIdentifier {
    background: none;
    border: none;
    font-size: 1.5rem;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    cursor: pointer;
}

.dropdown-menu.actions {
    min-width: 140px;
}









/* General backgrounds */
.hero-section {
    padding: 64px 0;
}

.features-section, .terminology-section {
    padding: 64px 0;
}

.how-section {
    padding: 64px 0;
}

.cta-section {
    padding: 64px 0;
    border-radius: 0 0 24px 24px;
}

/* Titles and subtitles */
.homepage-title, .cta-title {
    color: #053567;
    font-weight: bold;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.section-title {
    color: white;
    font-weight: bold;
    font-size: clamp(2.5rem, 6vw, 4rem);
}



.homepage-subtitle, .section-subtitle, .cta-subtitle {
    color: #226587;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature, terminology, and how boxes */
.feature-box, .terminology-box, .how-box {
    background: #D7EDF9;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(53, 86, 103, 0.08);
    padding: 32px;
    margin-bottom: 24px;
    transition: box-shadow 0.2s;
}

    .feature-box:hover, .terminology-box:hover, .how-box:hover {
        box-shadow: 0 4px 24px rgba(53, 86, 103, 0.16);
    }

/* Chat box */
.chat-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(53, 86, 103, 0.08);
    padding: 24px;
    max-width: 370px;
    margin: 0 auto;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #3AA9E1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.chat-message {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 1rem;
}

.chat-message-in {
    background: #D7EDF9;
    color: #053567;
    text-align: left;
}

.chat-message-out {
    background: #E2E2F6;
    color: #226587;
    text-align: right;
}

/* Buttons */
.custom-btn {
    background: #3AA9E1;
    border-radius: 12px;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 18px 48px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(53, 86, 103, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
}

    .custom-btn:hover {
        background: #226587;
        color: #fff;
        box-shadow: 0 4px 16px rgba(53, 86, 103, 0.18);
    }

.custom-btn-outline {
    border: 2px solid #9BAEC2;
    color: #053567;
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s, color 0.2s;
}

    .custom-btn-outline:hover {
        background: #D7EDF9;
        color: #226587;
    }

.cta-button {
    background: #fff;
    color: #053567;
    border-radius: 8px;
    padding: 12px 32px;
    font-weight: bold;
    border: none;
    transition: background 0.2s, color 0.2s;
}

    .cta-button:hover {
        background: #3AA9E1;
        color: #fff;
    }

.cta-button-outline {
    background: linear-gradient(90deg, rgba(136,203,237,0.5) 20%, rgba(5,53,103,0.1) 100%);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 8px;
}

.cta-note {
    color: #88CBED;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section, .features-section, .how-section, .terminology-section, .cta-section {
        padding: 32px 0;
    }

    .chat-box {
        max-width: 100%;
    }
}




/* Homepage Feature, Terminology, and How Boxes - Dark Theme */
.feature-box, .terminology-box, .how-box {
    background: #1a1f2b;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 2.5rem 2rem;
    margin-bottom: 32px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 270px;
    transition: box-shadow 0.2s, transform 0.2s;
}

    .feature-box:hover, .terminology-box:hover, .how-box:hover {
        box-shadow: 0 8px 32px rgba(0,0,0,0.28);
        transform: translateY(-2px) scale(1.03);
    }

/* Feature/Terminology/How Titles and Descriptions */
.feature-title, .terminology-title, .how-title {
    color: #cce8ff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
}

.feature-desc, .terminology-desc, .how-desc {
    color: #d3d7df;
    font-size: 1.15rem;
    text-align: center;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Section Titles and Subtitles */
.homepage-title, .cta-title {
    color: #053567;
    font-weight: bold;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.section-subtitle, .homepage-subtitle, .cta-subtitle {
    color: #acb3b8;
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
    text-align: center;
}

/* Responsive grid for feature boxes */
@media (min-width: 768px) {
    .features-section .row,
    .terminology-section .row,
    .how-section .row {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem 1.5rem;
        justify-content: center;
    }

    .feature-box, .terminology-box, .how-box {
        max-width: 320px;
        flex: 1 1 320px;
    }
}

/* Container padding for sections */
.features-section, .terminology-section, .how-section {
    padding: 64px 0;
}

@media (max-width: 768px) {
    .feature-box, .terminology-box, .how-box {
        padding: 1.5rem 1rem;
        min-height: 180px;
    }

    .features-section, .terminology-section, .how-section {
        padding: 32px 0;
    }
}
