﻿body {
    /*background-color: #e0e0e0;*/
    background-color: #EEE;
    font-family: 'Segoe UI', sans-serif;
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1; /* allows content to grow and push footer down */
}

.app-title {
    font-size: 1.6em !important;
}

footer {
    background-color: #262626;
    color: #FFF !important;
    padding-left: 20px;
    line-height: 32px !important;
    font-size: 80%;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}


i {
    color: #000000;
}

.text-shadow {
    color: #999 !important;
}

/*.sidebar {*/
    /*background: #f4f4f4;*/
    /*width: 225px;
    min-height: 100vh;
    padding: 1rem;
    background: #262626;
    color: #f4f4f4;
}

    .sidebar .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: bold;
        margin-bottom: 2rem;
    }

    .sidebar .nav-link {*/
        /*color: #333;*/
        /*margin: 0.5rem 0;
        display: block;
        text-decoration: none;*/

        /* Improved Styles */
        /*color: #f4f4f4;        
    }

        .sidebar .nav-link:hover {*/
            /*color: #0d6efd;*/
            /* Improved Styles */
            /*color: #999;
        }*/

.sidebar {
    width: 225px;
    min-height: 100vh;
    padding: 1rem;
    background: #262626;
    color: #f4f4f4;
    position: relative;
    display: flex;
    flex-direction: column;    
}

    .sidebar .logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-weight: bold;
        margin-bottom: 2rem;
    }

    .sidebar .nav-link {
        margin: 0.5rem 0;
        display: block;
        text-decoration: none;
        color: #f4f4f4;
    }

        .sidebar .nav-link:hover {
            color: #999;
        }
    
    .sidebar .copyright {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        font-size: 0.8rem;
        color: #999;
        text-align: left;
        opacity: 0.8;
    }


.menu-item {
    position: relative;
    z-index: 2;
}

    .menu-item > i {
        position: absolute;
        font-size: 24px;
        right: 0px;
        top: -7px;
        z-index: 1;
    }

.content {
    display: grid;
    grid-template-columns: minmax(auto, 225px) 1fr;
    gap: 5px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f4f4f4;
    padding: 1rem 2rem;
}

.topbar-right {
    min-width: 445px;
    justify-content: flex-end;
}

.language-switch {
    background-color: #ffffff;
    padding: 5px 10px;
    border-radius: 15px;
    margin-right: 10px;
}

.icon-cont {
    margin: 15px;
}

    .icon-cont > i {
        margin: 5px;
    }

.user-cont {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

    .user-cont img {
        border-radius: 50%;
    }

    .user-cont p {
        margin: 0px 15px;
        font-weight: 500;
        color: #262626;
        font-size: 0.95rem;
    }

    .user-cont svg {
        transition: transform 0.3s ease;
    }

.dashboard-grid {
    margin: 2rem 1rem 0rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.card-tile {
    position: relative;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #fff;
}

    .card-tile:hover .card-icon img {
        transition: .5s ease-in-out;
        transform: scale(1.3);
    }

.card-icon img {
    transition: .5s ease-in-out;
}

.card-left {
    position: relative;
    padding: 2rem 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    min-width: 223px;
    background-image: url("../Assets/wcpd-pane-bg.png");
    background-size: contain;
}

.card-left-bg-1 {
    background-image: url("../Assets/wcpd-pane-bg.png");
}

.card-left-bg-2 {
    background-image: url("../Assets/nbrp-pane-bg.png");
}

.card-left-bg-3 {
    background-image: url("../Assets/fsbh-pane-bg.png");
}

.card-left-bg-4 {
    background-image: url("../Assets/fs101-pane-bg.png");
}

.card-right {
    padding: 1rem 3rem 1rem 0rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 200px;
}

.card-right .arrow {
    position: absolute;
    top: 10px;
    right: 10px;
}

.card-icon {
    background: #fff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    position: absolute;
    left: 50px;
    top: calc(50% - 40px);
}

.arrow {
    font-size: 1.6rem;
    color: #333;
}

.coming-soon {
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;    
}

/* Dropdown container */
.user-dropdown {
    display: none;
    position: absolute;
    top: 85%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 180px;
    z-index: 10;
}

    .user-dropdown li {
        padding: 0.5rem 1rem;
        cursor: pointer;
        transition: background 0.2s;
    }

        .user-dropdown li:hover {
            background: #f3f3f3;
        }

/* Show dropdown on hover */
.user-cont:hover .user-dropdown {
    display: block;
}

/* Rotate arrow when open */
.user-cont:hover svg {
    transform: rotate(180deg);
}

/* Match the button style to the arrow link */
button.tile-card {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

    button.tile-card h6 {
        margin: 0;
        font-size: 1rem;
        color: #000;
    }

    button.tile-card .arrow {
        font-size: 1.6rem;
        color: #333;
        margin-left: auto;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    button.tile-card:hover .arrow i {
        color: #000;
        transform: translateX(4px);
    }

    button.tile-card:disabled,
    button.tile-card.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

        button.tile-card:disabled .arrow i,
        button.tile-card.disabled .arrow i {
            color: #888;
            transform: none;
        }


@media (max-width: 1408px) {
    .card-left-bg-1,
    .card-left-bg-2,
    .card-left-bg-3,
    .card-left-bg-4 {
        background-size: cover;
    }

    .card-right {
        max-width: 200px;
    }
}

@media (max-width: 1135px) {
    .dashboard-grid {
        margin: 2rem 1rem 0rem 1rem;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}


/* Make each card visually clickable */
.link-tile {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .link-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }

    /* Disabled card style */
    .link-tile.disabled-tile {
        pointer-events: none;
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Keep the original tag look */
    .link-tile .coming-soon {
        color: #888;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .link-tile .app-title {
        font-size: 1.6em !important;
        color: #000;
    }

/* Form container */
.full-card-form {
    width: 100%;
    height: 100%;
}

/* Button acts as the clickable surface */
.full-card-button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .full-card-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Inner text and icon styling */
    .full-card-button .app-title {
        font-size: 1.6em !important;
        color: #000;
    }

    .full-card-button .arrow {
        font-size: 1.6rem;
        color: #333;
        margin-left: auto;
        transition: color 0.3s ease, transform 0.3s ease;
    }

    .full-card-button:hover .arrow i {
        color: #000;
        transform: translateX(4px);
    }

    /* Keep your original left/right layout */
    .full-card-button .card-left {
        position: relative;
        padding: 2rem 1rem;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 200px;
        min-width: 223px;
        background-size: contain;
    }

    .full-card-button .card-right {
        padding: 1rem 3rem 1rem 0rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 200px;
    }


.support-contact {
    font-size: 0.9rem; /* slightly smaller text */
    color: #ddd; /* softer paragraph text against dark background */
    margin-top: 1rem;
}

    .support-contact a {
        font-weight: bold; /* emphasize links */
        text-decoration: underline; /* underline both phone and email links */
        color: #ffffff; /* white link color */
    }

        .support-contact a:hover {
            color: #FFCC05; /* FireSmart yellow on hover */
        }

.mobile-nav-cont {
    display: none;
}

.mobile-account-menu {
    display: none;
}

.support-contact-cont {
    display: none;
}

@media (max-width: 1024px) {
    .content {
        display: flex;
    }

    .mobile-nav-cont {
        display: flex;
    }

    .main,
    nav {
        width: 100%;
    }

    .topbar {
        display: none;
    }

    .sidebar {
        display: none;
    }
}

@media (max-width: 700px) {
    .user-label {
        display: none !important;
    }
}

@media (max-width: 575px) {
    .user-label {
        display: none !important;
    }

    .login-partial-cont {
        display: none !important;
    }

    .mobile-account-menu,
    .support-contact-cont {
        display: flex;
    }
}
