:root { --primary: #6c5ce7; --secondary: #00cec9; --accent: #fdcb6e; --bg: #f8faff; }
body { font-family: 'Quicksand', sans-serif; background: #f0f2f5; padding-top: 90px; }

/* Sidebar Styling */
.sidebar-sticky { position: sticky; top: 100px; }
.profile-card { background: white; border-radius: 30px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eef; }

.stat-box { background: #f8f9ff; border-radius: 20px; padding: 15px; margin-bottom: 12px; border-left: 4px solid var(--primary); }

.last-mission-box { background: linear-gradient(135deg, #6c5ce7, #a29bfe); color: white; border-radius: 20px; padding: 20px; margin-top: 20px; }

/* Main Content Styling */
.content-area { background: white; border-radius: 40px; padding: 40px; min-height: 80vh; box-shadow: 0 10px 40px rgba(0,0,0,0.03); }

.nav-pills-custom { background: #f1f2f6; padding: 8px; border-radius: 50px; margin-bottom: 40px; display: inline-flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; max-width: 100%; -webkit-overflow-scrolling: touch; -ms-overflow-style: none; scrollbar-width: none; }
.nav-pills-custom::-webkit-scrollbar { display: none; }
.nav-pills-custom .nav-link { border-radius: 50px; padding: 10px 25px; font-weight: 700; color: #747d8c; border: none; white-space: nowrap; }
.nav-pills-custom .nav-link.active { background: var(--primary); color: white; box-shadow: 0 8px 15px rgba(108, 92, 231, 0.2); }

.nav-item { flex: 0 0 auto; }

.sector-card { background: #fff; border: 2px solid #f1f2f6; border-radius: 30px; padding: 30px; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; display: flex; flex-direction: column; }
.sector-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 15px 35px rgba(0,0,0,0.05); }

.icon-circle { width: 70px; height: 70px; background: #f0edff; color: var(--primary); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.8rem; }

.btn-launch { background: var(--accent); color: #2d3436; font-family: 'Fredoka One'; padding: 12px; border-radius: 15px; text-decoration: none; text-align: center; margin-top: auto; display: block; border: none; box-shadow: 0 4px 0 #d39e00; }
.btn-launch:hover { background: var(--secondary); color: white; box-shadow: 0 4px 0 #009797; }

.tab-pane.active { animation: slideUpFade 0.4s ease-out forwards; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
    body { padding-top: 80px; }
    .content-area { padding: 20px 15px; border-radius: 25px; min-height: auto; }
    .content-area h2 { font-size: 1.5rem; }
    .content-area .mb-4 { text-align: center; }
    .nav-pills-custom { display: flex; justify-content: flex-start; margin-bottom: 20px; border-radius: 15px; width: 100%; gap: 5px; padding: 5px; }
    .nav-pills-custom .nav-link { padding: 8px 18px; font-size: 0.9rem; border-radius: 25px; }
    .sector-card { padding: 15px; border-radius: 15px; display: grid; grid-template-columns: auto 1fr; gap: 4px 15px; align-items: center; }
    .icon-circle { width: 55px; height: 55px; font-size: 1.4rem; margin-bottom: 0; grid-row: span 2; }
    .sector-card h4 { font-size: 1.1rem; margin-bottom: 0 !important; align-self: end; }
    .sector-card p { font-size: 0.85rem; margin-bottom: 0 !important; align-self: start; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .btn-launch { grid-column: 1 / -1; font-size: 0.9rem; padding: 10px; margin-top: 10px !important; }
}

.sidebar-toggle-btn { position: fixed; bottom: 90px; right: 20px; background: var(--primary); color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4); z-index: 1040; border: none; font-size: 1.3rem; transition: transform 0.3s; }
.sidebar-toggle-btn:active { transform: scale(0.9); }
@media (min-width: 769px) { .sidebar-toggle-btn { display: none; } }
