:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --ellen-purple: #8e44ad;
}

body {
    background-color: #f0f2f5;
    font-family: "Outfit", sans-serif;
    padding-bottom: 80px;
}

.hero-card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: "\F1D5";
    font-family: "bootstrap-icons";
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 10rem;
    opacity: 0.1;
}

.card-daya {
    background: linear-gradient(135deg, #ff8c00 0%, #ffa500 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(255, 140, 0, 0.2);
    position: relative;
    overflow: hidden;
    border: none;
    text-decoration: none;
    display: block;
    transition: 0.3s;
}

.card-daya:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.3);
    color: white;
}

.card-daya::after {
    content: "\F473";
    font-family: "bootstrap-icons";
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.15;
    transform: rotate(-15deg);
}

.stat-card {
    background: white;
    border: none;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    color: #2c3e50;
}

.stat-card small {
    color: #7f8c8d;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.btn-menu {
    background: white;
    border: none;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
    text-decoration: none;
    color: var(--primary);
    display: block;
    height: 100%;
    border: 1px solid transparent;
}

.btn-menu:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.btn-menu i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.btn-ellen:hover {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
    color: white !important;
}

.btn-ellen:hover i {
    color: white !important;
}

.creative-footer {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2a3a 100%);
    border-radius: 20px 20px 0 0;
    padding: 40px 0 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 4rem;
}

.footer-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.signature-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

@keyframes spinGear {
    100% {
        transform: rotate(360deg);
    }
}

.gear-spin {
    animation: spinGear 4s linear infinite;
    display: inline-block;
    color: #adb5bd;
}

@keyframes pulseHeart {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.heart-pulse {
    animation: pulseHeart 1.5s infinite;
    display: inline-block;
    color: #ff4757;
    text-shadow: 0 0 10px rgba(255, 71, 87, 0.5);
}

.gemini-oyin-text {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 50%, #fdfbfb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.1rem;
    font-weight: 800;
}

.gemini-oyin-text i,
.gemini-oyin-text span {
    -webkit-text-fill-color: initial;
}

.footer-link {
    transition: 0.3s;
    padding: 10px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    body {
        padding-bottom: 90px !important;
    }
}

.chat-container-ellen {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.msg-ellen-v2 {
    padding: 10px 14px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 85%;
}

.msg-user {
    align-self: flex-end;
    background: #3498db;
    color: white;
    border-bottom-right-radius: 2px;
}

.msg-bot {
    align-self: flex-start;
    background: white;
    border: 1px solid #e2e8f0;
    color: #2c3e50;
    border-bottom-left-radius: 2px;
}

@keyframes pulseRed {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes pulseGreen {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile height optimizations */
@media (max-width: 768px) {
    .power-card-main { min-height: 190px !important; }
    .power-carousel-inner { min-height: 160px !important; }
    .power-slide-content { height: 140px !important; }
    .power-slide-canvas { max-height: 110px !important; }
    .chart-log-container { min-height: 150px !important; }
    .chart-aset-container { height: 180px !important; }
    .msla-adaptive-card { height: 280px !important; }
    .msla-chart-container { height: 110px !important; }
    .jadwal-adaptive-card { height: 280px !important; }
}

.custom-pin {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-pin:hover {
    transform: scale(1.2);
}
