﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    /* Set the fixed height of the footer here */
    height: 60px;
    line-height: 60px; /* Vertically center the text there */
}

/** User Group **/ /****/
#userGroupUI {
    margin: 10px 0px 10px 0px;
}

    #userGroupUI input {
        display: inline;
        margin: 0px 10px 0px 10px;
    }

    #userGroupUI #groupIdTextBox {
        width: 400px;
    }

/** User Profile **/ /****/
.img-circle {
    border-radius: 50%;
}

.left-div {
    float: left;
    width: 100px;
    margin-right: 8px;
}

.right-div {
    margin-left: 108px;
    max-width: 400px;
}

    .right-div .thumb-list li {
        padding: 0 15px 0 0px;
        min-height: 94px;
    }

.thumb-list {
    list-style: none;
    padding: 0;
}

    .thumb-list li {
        position: relative;
        min-height: 75px;
        margin-bottom: 15px;
        padding: 0 15px 0 90px;
    }

    .thumb-list strong {
        display: block;
        font-family: "GothamBold",Arial,sans-serif;
        font-weight: bold;
        color: #0b2d71;
    }

/** Flip Container **/ /****/
.flip-container {
    perspective: 1000px;
}

    .flip-container:active .flipper, .flip-container.active .flipper {
        transform: rotateY(180deg);
    }

.flip-container, .front, .back {
    width: 94px;
    height: 94px;
    display: inline-block;
}

.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
}

.front, .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.front {
    z-index: 2;
    /* for firefox 31 */
    transform: rotateY(0deg);
}

.back {
    transform: rotateY(180deg);
}

/* ────────────────────────────────────────
   HOMEPAGE LAYOUT - Two Column Design
   ──────────────────────────────────────── */
.homepage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.menu-section {
    display: flex;
    flex-direction: column;
}

.menu-section h3 {
    color: var(--chevron-dark-blue);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--chevron-dark-blue);
    padding-bottom: 0.5rem;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-list li {
    list-style: none;
}

.menu-item {
    padding: 1.25rem;
    border: 1px solid var(--chevron-light-gray);
    border-radius: 4px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.menu-item:hover {
    border-color: var(--chevron-medium-blue);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 102, 178, 0.12);
    transform: translateY(-2px);
}

.menu-item h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--chevron-dark-blue);
    font-size: 1.125rem;
    font-weight: bold;
}

.menu-item p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--chevron-dark-gray);
}

.menu-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--chevron-dark-blue);
    color: var(--chevron-white);
    text-decoration: none;
    border-radius: 3px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.menu-link:hover {
    background-color: var(--chevron-medium-blue);
    text-decoration: none;
    color: var(--chevron-white);
}

.debug-section {
    display: flex;
    flex-direction: column;
}

.debug-section h3 {
    color: var(--chevron-dark-blue);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--chevron-dark-blue);
    padding-bottom: 0.5rem;
}

.debug-output {
    border: 1px solid var(--chevron-light-gray);
    border-radius: 4px;
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    background-color: #f5f5f5;
    word-wrap: break-word;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--chevron-dark-gray);
    line-height: 1.5;
}

/* Code Snippet Sections - Force vertical stacking */
.code-snippet-section {
    display: block !important;
    margin: 2rem 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
    flex-basis: auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.code-snippet-section h3 {
    color: var(--chevron-dark-blue);
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    margin-top: 0;
}

.code-snippet-section .code-panel pre {
    max-height: 400px;
    overflow-y: auto;
}

.code-snippet-section .code-tabs {
    display: flex;
    flex-wrap: wrap;
}

.code-snippet-section .code-content {
    display: block;
}

/* Main Tabs Section */
.main-tabs-section {
    display: block !important;
    margin: 2rem 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box;
    background-color: #f9f9f9;
    border: 1px solid var(--chevron-light-gray);
    border-radius: 4px;
}

.main-tabs-section .code-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: #f5f5f5;
    border-bottom: 1px solid var(--chevron-light-gray);
}

.main-tabs-section .code-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--chevron-dark-gray);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-tabs-section .code-tab:hover {
    background-color: #e8e8e8;
}

.main-tabs-section .code-tab.active {
    color: var(--chevron-dark-blue);
    border-bottom-color: var(--chevron-dark-blue);
    background-color: white;
}

.main-tabs-section .code-content {
    display: block;
    padding: 20px;
}

.main-tabs-section .code-panel {
    display: none;
}

.main-tabs-section .code-panel.active {
    display: block;
}

/* Ensure main container displays content vertically */
main.container {
    display: block !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .homepage-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .homepage-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .menu-section h3,
    .debug-section h3 {
        font-size: 1.25rem;
    }

    .menu-item {
        padding: 1rem;
    }

    .debug-output {
        min-height: 200px;
    }

    .code-snippet-section h3 {
        font-size: 1.1rem;
    }
}
