:root {
    --bg-sidebar: #174757;
    --bg-content: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-sidebar: #e2e8f0;
    --accent-color: #0b6a82;
    --hover-bg: rgba(255, 255, 255, 0.1);
    --border-color: #edf2f7;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}


/* ================= DASHBOARD ================= */
.stackcontainer {
    background-color: #f1f5f9;
    color: var(--text-primary);
    /*min-height: 100vh;*/
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px;
    border-radius: 16px;
}

.stack-dashboard {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: var(--bg-content);
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    overflow: hidden;
    min-height: 650px;
    margin-top: 40px;
}

/* ================= SIDEBAR ================= */

.stack-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    padding: 40px 0;
    border-right: 1px solid var(--border-color);
}

.stack-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .stack-nav li {
        padding: 16px 24px 16px 25px;
        cursor: pointer;
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--text-sidebar);
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 30px;
        margin-left: 16px;
        transition: 0.3s;
    }

        .stack-nav li.active {
            background: var(--bg-content);
            color: var(--accent-color);
            font-weight: 600;
            border-left: 5px solid var(--accent-color);
        }

        .stack-nav li:hover:not(.active) {
            background: var(--hover-bg);
            color: #fff;
        }

.stack-arrow {
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
}

.stack-nav li.active .stack-arrow {
    opacity: 1;
}

/* ================= CONTENT ================= */

.stack-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.stack-tab {
    display: none;
    animation: fadeUp 0.4s ease;
}

    .stack-tab.active {
        display: block;
    }

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= GRID ================= */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 10px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: #17475714;
    border: 1px solid #0b6a822b;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

    .stack-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 10px 15px -3px #0b6a8263;
    }

/*.stack-img {
    font-size: 3rem;
    margin-bottom: 12px;
    transition: 0.3s;
}*/

.stack-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 12px;
    transition: 0.3s;
    display: block;
}



.stack-item:hover .stack-img {
    transform: scale(1.1);
}

.stack-name {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}

.stack-item:hover .stack-name {
    color: var(--text-primary);
}

/* ================= CTA ALT ================= */

.stack-cta-section-alt {
    margin-top: 50px;
    padding: 10px;
}

.stack-cta-card-alt {
    background-color: #17475714;
    border: 1px solid #0b6a822b;
    border-radius: 20px;
    padding: 30px;
    transition: 0.3s;
}

    .stack-cta-card-alt:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(11,106,130,0.15);
    }

.stack-cta-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.stack-cta-title-alt {
    font-size: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, #0b6a82, #174757);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stack-cta-description {
    font-size: 16px;
    color: #64748b;
}

.stack-cta-action-section {
    margin-top: 20px;
}

.stack-cta-button-alt {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #0b6a82, #174757);
    color: #fff;
    transition: 0.3s;
}

    .stack-cta-button-alt:hover {
        transform: translateY(-3px);
        color: #abc5cb;
    }

/* ================= COLORS ================= */

.color-purple {
    color: #9b59b6;
}

.color-blue {
    color: #3498db;
}

.color-blue-dark {
    color: #2c3e50;
}

.color-cyan {
    color: #00d8ff;
}

.color-red {
    color: #e74c3c;
}

.color-indigo {
    color: #5a67d8;
}

.color-pink {
    color: #d63384;
}

.color-green {
    color: #2ecc71;
}

.color-orange {
    color: #e67e22;
}

.color-grey {
    color: #95a5a6;
}

.color-yellow {
    color: #ffd845;
}

.gcp-icon {
    background: linear-gradient( 90deg, #4285F4 25%, #EA4335 25% 50%, #FBBC05 50% 75%, #34A853 75% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stack-auto-height .stack-dashboard {
    min-height: auto;
}

.stack-nav::-webkit-scrollbar {
    height: 6px;
}

.stack-nav::-webkit-scrollbar-track {
    background: transparent;
}

.stack-nav::-webkit-scrollbar-thumb {
    background: #23839b;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 850px) {
    .stackcontainer {
        margin-top: 45px;
        padding: 15px;
    }

    .stack-dashboard {
        flex-direction: column;
        
    }

    .stack-sidebar {
        width: 100%;
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .stack-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 20px;
        gap: 12px;
    }

    .stack-nav li {
        margin-left: 0;
        border-radius: 20px;
        padding: 8px 16px;
        white-space: nowrap;
        background: rgba(255,255,255,0.1);
        font-size: 0.95rem;
    }

    .stack-content {
        padding: 10px;
    }

    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stack-img {
        font-size: 2.2rem;
        width: 50px;
        height: 50px;
    }

    .stack-cta-title-alt {
        font-size: 18px;
    }

    .stack-cta-description {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .stackcontainer {
        margin-top: 45px;
        padding: 20px 12px 40px 12px;
        border-radius: 0;
    }

    .stack-dashboard {
        margin-top: 20px;
        border-radius: 16px;
    }

    .stack-content {
        padding-bottom: 25px;
    }


    .stack-name {
        font-size: 14px;
    }

    .stack-cta-title-alt {
        font-size: 18px;
    }

    .stack-cta-description {
        font-size: 14px;
    }

    .stack-cta-button-alt {
        padding: 10px 15px;
    }

    .stack-img {
        width: 40px;
        height: 40px;
    }
}