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

/* Layout + navigation */
.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item a {
    color: #d7d7d7;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
}

.nav-item a.active {
    color: white;
}

.nav-item a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link {
    color: #e6ecf5;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.sidebar .nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link.active:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16);
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.sidebar {
    display: revert !important;
}

.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.top-row a,
.top-row .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
}

.top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 640.98px) {
    .top-row:not(.auth) {
        display: none;
    }

    .top-row.auth {
        justify-content: space-between;
    }

    .top-row a,
    .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .navbar-toggler {
        display: none;
    }

    .collapse {
        display: block;
    }

    .nav-scrollable {
        height: 100vh;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100%;
        position: sticky;
        top: 0;
    }

    .layout-shell {
        display: block;
    }

    .layout-shell .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 250px;
    }

    .layout-shell > main {
        margin-left: 250px;
        min-width: 0;
    }

    .top-row {
        position: sticky;
        top: 0;
        z-index: 1;
    }
}

/* Marketing + landing */

.about-bg-gradient-1 {
    color: #fff;
}

.home-feature-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1;
    align-content: stretch;
    aspect-ratio: 2 / 1;
    border-radius: 5px;
    box-shadow: 0 10px 22px -8px #010813;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(90%);
    transition: 0.5s;
    max-height: 500px;
    max-width: 500px;
}

.home-feature-card:hover {
    filter: brightness(100%);
    background-color: lightgrey;
    transition: background-color 0.3s ease;
}

.home-feature-card-logo {
    display: block;
    width: 48px;
    height: 44px;
}

.home-feature-card-title {
    width: 100%;
    color: #e8edf4;
    padding: 10px;
    display: grid;
    grid-template-columns: 1;
    align-content: end;
}

.home-feature-card-title h3,
.home-feature-card-title h4 {
    margin: 0;
    color: #fff;
}

.cwe {
    background-image: url("/Images/clockworkengineering.svg");
    background-size: 90%;
}

.slpe {
    background-image: url("/Images/slpe-logo-purple.svg");
    background-size: 90%;
}

.primary-nav-bar-logo {
    width: 80%;
    height: 80%;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 20px;
}

.title-alignment {
    text-align: center;
}

.pricing-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    max-width: 100%;
    height: 100%;
    animation: fadeInAnimation ease 2s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.pricing-best {
    outline: 4px solid #437feb;
}

.recommended-col {
    background-color: #437feb;
    color: white;
    border-radius: 6px;
    top: -1.7rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
}

.description {
    height: 5rem;
}

.gradient-bg {
    background: #878a91;
    color: white;
}

/* Structure in slpe.css — only the app-specific image override here */
.home-hero-bg {
    background-image: url('../images/windmill-outlook-blue.jpg');
}

.custom-img {
    width: 100%;
    height: auto;
    max-width: 900px;
    margin: 0 auto;
    transition: transform 1s ease 0s;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.024) 0px 0px 0px 1px,
        rgba(0, 0, 0, 0.05) 0px 1px 0px 0px,
        rgba(0, 0, 0, 0.03) 0px 0px 8px 0px,
        rgba(0, 0, 0, 0.1) 0px 20px 30px 0px;
}

.img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 20vh;
}

.praise-section {
    min-height: 50vh;
    display: flex;
}


.praise-desc {
    min-height: 60vh;
}

@media (min-width: 1400px) {
    .h3-dynamic-size {
        font-size: 1.5rem;
    }

    .h2-dynamic-size {
        font-size: 2.4rem;
    }
}

@media (max-width: 1400px) {
    .h3-dynamic-size {
        font-size: 1rem;
    }

    .h2-dynamic-size {
        font-size: 1.75rem;
    }
}

@media (max-width: 1200px) {
    .praise-desc {
        min-height: 45vh;
    }
}

.home-hero-logo {
    display: block;
    width: 100%;
    max-width: 1250px;
    height: auto;
    margin: auto;
}

.price-button {
    height: 3rem;
}

.develop-section {
    background: #00173b;
    background: linear-gradient(180deg, rgba(0, 23, 59, 0.98) 45%, rgba(0, 15, 38, 1) 95%, rgba(0, 5, 15, 0.96) 100%);
    min-height: 40vh;
}

.divider {
    height: 2rem;
}

.pricing-section {
    background: #00173b;
    background: linear-gradient(180deg, rgba(0, 23, 59, 1) 45%, rgba(21, 41, 59, 1) 80%, rgba(108, 107, 118, 0.99) 100%);
    width: 100%;
    min-height: 80vh;
}

.recommended-button {
    background: #6b1010;
    background: linear-gradient(90deg, rgba(107, 16, 16, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    transition: background 0.5s ease;
}

.recommended-button:hover {
    background: linear-gradient(90deg, rgba(87, 14, 14, 1) 0%, rgba(199, 32, 32, 1) 50%, rgba(207, 141, 50, 1) 100%);
}

.patch-notes-bg {
    background-image: url('../images/windmill-sunset-offshore.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    height: auto;
    width: max-content;
    display: grid;
    align-self: center;
    min-height: 60vh;
}

.list-items {
    margin-left: 5%;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.patch-title {
    height: fit-content;
}

.tab-circle {
    height: 1rem;
    width: 1rem;
    background: white;
    opacity: 0.8;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}


.progress-bar-wrapper {
    width: 10%;
    height: 1rem;
    background-color: #ccc;
    opacity: 0.8;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 25px;
    transition: all 0.25s ease;
}

.progress-bar-fill {
    height: 100%;
    width: 100%;
    background-color: white;
    transform: scaleX(0);
    transform-origin: left;
}

.progress-bar-fill.animate {
    animation: fillBar 4.5s linear forwards;
    animation-iteration-count: infinite;
}

@keyframes fillBar {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* Table rules (fatigue, splice, hammer, results) are provided by slpe.css */

.save-status-container {
    display: flex;
    justify-content: flex-end;
    margin: 0.5rem 1rem;
}
