:root {
    --primary-color: #0400d6;
    --secondary-color: #6c5ce7;
    --accent-color: #00b894;
    --background-color: #f0f2f5;
    --card-hover-color: #e3f2fd;
}

body {
    background-color: var(--background-color);
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.2s;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.nav-link i {
    margin-right: 0.5rem;
}

.main-content {
    padding: 3rem 0;
}

.welcome-card {
    background: linear-gradient(135deg, white, #f8f9fa);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 3rem;
    margin-bottom: 3rem;
    border: none;
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.welcome-card h1 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.welcome-card .lead {
    color: #666;
    font-size: 1.2rem;
}

.feature-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: none;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,.1);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Custom animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-card, .feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}


       /* Dropdown hover styles */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
}
.dropdown-menu {
    margin-top: 0;
    border-radius: 8px;
    border-top: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease;
}
.dropdown-item:hover {
    background-color: rgba(39, 0, 195, 0.1);
}
.dropdown-item i {
    margin-right: 0.5rem;
}

/* User dropdown styles */
.nav-link.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link.dropdown-toggle i {
    font-size: 1.2rem;
}

.username {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item:hover {
    background-color: var(--card-hover-color);
}

.dropdown-item i {
    font-size: 1rem;
}

.dropdown-item.text-danger:hover {
    background-color: #fee2e2;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem;
    }

    .feature-card {
        margin-bottom: 1rem;
    }

    .username {
        display: none;
    }
    
    .nav-link.dropdown-toggle {
        padding: 0.5rem;
    }
}

.topic-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.topic-description {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Solutions Dropdown Hover Effects */
.dropdown-menu .dropdown-item {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(5px);
}

.dropdown-menu .dropdown-item i {
    transition: transform 0.3s ease;
}

.dropdown-menu .dropdown-item:hover i {
    transform: scale(1.2);
}

/* Active state for current page */
.dropdown-menu .dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

/* Hover effect for dropdown toggle */
.nav-link.dropdown-toggle:hover {
    color: var(--primary-color) !important;
}

/* Smooth dropdown animation */
.dropdown-menu {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 