/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e3a5f;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Lake-inspired animated background */
.lake-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    animation: gentleWave 20s ease-in-out infinite;
}

@keyframes gentleWave {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.02) rotate(0.5deg); }
    50% { transform: scale(1.01) rotate(0deg); }
    75% { transform: scale(1.02) rotate(-0.5deg); }
}

/* Floating particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 50%;
    animation: float 15s linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(41, 128, 185, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 40px rgba(41, 128, 185, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(41, 128, 185, 0.3));
    transition: all 0.3s ease;
}

.nav-brand:hover .nav-logo {
    transform: scale(1.1) rotate(3deg);
    filter: drop-shadow(0 4px 12px rgba(41, 128, 185, 0.5));
}

.nav-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.nav-brand:hover::after {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #1e3a5f;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 25px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(93, 173, 226, 0.1));
    border-radius: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    color: #2980b9;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    opacity: 1;
}

/* Main content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 140px);
    position: relative;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, 
        rgba(41, 128, 185, 0.9) 0%, 
        rgba(52, 152, 219, 0.8) 25%,
        rgba(93, 173, 226, 0.7) 50%,
        rgba(133, 193, 233, 0.6) 75%,
        rgba(174, 214, 241, 0.5) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,133.3C960,128,1056,96,1152,85.3C1248,75,1344,85,1392,90.7L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom center;
    background-size: cover;
    animation: waveFlow 8s ease-in-out infinite;
}

@keyframes waveFlow {
    0%, 100% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-20px) scaleY(1.1); }
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 25px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 0 4px 20px rgba(255,255,255,0.3); }
    100% { text-shadow: 0 8px 30px rgba(255,255,255,0.5); }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #2980b9;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
    color: #1e3a5f;
}

/* Skills section */
.skills {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(41, 128, 185, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.skills h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 
        0 10px 30px rgba(41, 128, 185, 0.1),
        0 1px 8px rgba(41, 128, 185, 0.1);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(41, 128, 185, 0.1);
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-card:hover::before {
    transform: translateX(0);
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 50px rgba(41, 128, 185, 0.2),
        0 5px 20px rgba(41, 128, 185, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.skill-card i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.skill-card h3 {
    margin-bottom: 20px;
    color: #1e3a5f;
    font-weight: 700;
    font-size: 1.4rem;
}

.skill-card p {
    color: #4a6fa5;
    line-height: 1.7;
    font-weight: 400;
}

/* Portfolio section */
.portfolio {
    padding: 100px 20px;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(20px);
    position: relative;
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 30%, rgba(93, 173, 226, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 30% 70%, rgba(41, 128, 185, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.portfolio h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(41, 128, 185, 0.1),
        0 5px 15px rgba(41, 128, 185, 0.08);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(41, 128, 185, 0.1);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 1;
}

.project-card:hover::before {
    transform: translateX(0);
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(41, 128, 185, 0.2),
        0 10px 30px rgba(41, 128, 185, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2980b9;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(41, 128, 185, 0.1) 0%, transparent 70%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.project-card:hover .project-image::before {
    opacity: 1;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 18px;
    color: #1e3a5f;
    font-weight: 700;
    font-size: 1.3rem;
}

.project-content p {
    color: #4a6fa5;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.tech-tag {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 128, 185, 0.4);
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.project-link {
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(41, 128, 185, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-link:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
}

/* Contact section */
.contact {
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 40% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(41, 128, 185, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db);
    border-radius: 2px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 25px;
    box-shadow: 
        0 20px 50px rgba(41, 128, 185, 0.1),
        0 5px 20px rgba(41, 128, 185, 0.08);
    border: 1px solid rgba(41, 128, 185, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2980b9, #3498db, #5dade2);
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1e3a5f;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid rgba(41, 128, 185, 0.2);
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #1e3a5f;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.submit-btn {
    background: linear-gradient(135deg, #2980b9, #3498db);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(41, 128, 185, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1f5f85, #2980b9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(41, 128, 185, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3a5f, #2c5282, #3182ce);
    color: white;
    padding: 50px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: footerShimmer 10s ease-in-out infinite;
}

@keyframes footerShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.footer p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Mobile menu button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(30, 58, 95, 0.2);
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle:hover {
    background: rgba(41, 128, 185, 0.1);
    border-color: rgba(41, 128, 185, 0.3);
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #1e3a5f;
    background: #1e3a5f;
    margin: 3px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        padding: 0 15px;
        position: relative;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.nav-menu-active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 12px 20px;
        display: block;
        width: 100%;
        text-align: left;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(93, 173, 226, 0.1));
        transform: translateX(5px);
    }
    
    .hero {
        padding: 80px 15px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .skills,
    .portfolio,
    .contact {
        padding: 60px 15px;
    }
    
    .skills h2,
    .portfolio h2,
    .contact h2 {
        font-size: 2.2rem;
    }
    
    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .skill-card,
    .project-card {
        margin: 0 10px;
    }
    
    .contact-form {
        padding: 30px 25px;
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .skills h2,
    .portfolio h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
}

/* ============================================
   CRM Styles - Clean Flexbox Layout
   ============================================ */

/* CRM Container and Layout */
.crm-container {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

.crm-header {
    background: #1976d2;
    color: white;
    padding: 40px 30px;
    margin: 20px 0 30px 0;
    border-radius: 12px;
}

.crm-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.crm-header .breadcrumb {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    margin: 0 0 15px 0;
}

/* Removed all CRM spacing rules to fix button overlap issues */

/* CRM Cards */
.crm-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.crm-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #495057;
}

.crm-card .card-body {
    padding: 20px;
}

/* Metric Cards */
.metric-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.metric-card.primary {
    border-left-color: #007bff;
}

.metric-card.success {
    border-left-color: #28a745;
}

.metric-card.info {
    border-left-color: #17a2b8;
}

.metric-card.warning {
    border-left-color: #ffc107;
}

/* Clickable Metric Cards */
.metric-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.metric-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.metric-card.clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.metric-card.clickable:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #495057;
    margin-bottom: 8px;
    line-height: 1;
}

.metric-label {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* CRM Tables */
.crm-table {
    background: white;
}

.crm-table th {
    background: #f8f9fa;
    color: #495057;
    font-weight: 600;
    padding: 15px 12px;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9rem;
}

.crm-table td {
    padding: 12px;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
}

.crm-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.new {
    background: #6c757d;
    color: white;
}

.status-badge.contacted {
    background: #007bff;
    color: white;
}

.status-badge.qualified {
    background: #17a2b8;
    color: white;
}

.status-badge.converted,
.status-badge.won {
    background: #28a745;
    color: white;
}

.status-badge.unqualified,
.status-badge.lost {
    background: #dc3545;
    color: white;
}

.status-badge.active {
    background: #007bff;
    color: white;
}

.status-badge.proposal-sent {
    background: #17a2b8;
    color: white;
}

.status-badge.negotiating {
    background: #ffc107;
    color: #212529;
}

.status-badge.on-hold {
    background: #6c757d;
    color: white;
}

/* Progress Bars */
.confidence-progress {
    height: 20px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.confidence-progress .progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.75rem;
    color: white;
}

.progress-bar.bg-success {
    background: #28a745;
}

.progress-bar.bg-warning {
    background: #ffc107;
    color: #212529;
}

.progress-bar.bg-info {
    background: #17a2b8;
}

/* CRM Buttons - Basic styling only */
.btn-crm {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    margin: 4px;
}

.btn-crm.primary {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-crm.primary:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.btn-crm.success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-crm.success:hover {
    background: #1e7e34;
    border-color: #1e7e34;
}

.btn-crm.warning {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.btn-crm.warning:hover {
    background: #e0a800;
    border-color: #e0a800;
}

.btn-crm.secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-crm.secondary:hover {
    background: #545b62;
    border-color: #545b62;
}

/* Simplified button group styling */
.btn-group .btn-crm:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group .btn-crm:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Overdue Alerts */
.overdue-alert {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.overdue-alert .alert-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.overdue-alert .alert-header i {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #721c24;
}

.overdue-alert h5 {
    color: #721c24;
    font-weight: 600;
    margin: 0;
}

/* Form Styling */
.crm-form .form-control,
.crm-form .form-select {
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    transition: border-color 0.2s ease;
    font-size: 1rem;
    min-height: 45px;
    width: 100%;
    margin-bottom: 1rem;
}

/* Remove forced column padding - let Bootstrap handle it */

.crm-form .form-control:focus,
.crm-form .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.crm-form .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 10px;
    font-size: 0.9rem;
    display: block;
}

/* Activity Timeline */
.activity-item {
    border-left: 3px solid #007bff;
    padding: 12px 16px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.activity-item:hover {
    background: #e9ecef;
}

.activity-type {
    font-weight: 600;
    color: #007bff;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.activity-date {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Responsive CRM */
@media (max-width: 768px) {
    .crm-header h1 {
        font-size: 1.8rem;
    }
    
    .metric-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .crm-table th,
    .crm-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
    
    .btn-crm {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .crm-header h1 {
        font-size: 1.5rem;
    }
    
    .metric-value {
        font-size: 1.8rem;
    }
}

/* ============================================
   End CRM Styles
   ============================================ */