:root {
    --primary-color: #10B981;
    --secondary-color: #0F172A;
    --light-gray: #F8FAFC;
    --dark-gray: #334155;
    --white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 35px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0DA271;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(16, 185, 129, 0.1);
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

table th,
table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

table tr:hover {
    background-color: rgba(16, 185, 129, 0.05);
}

table th {
    font-weight: 600;
    color: var(--dark-gray);
    background-color: rgba(15, 23, 42, 0.02);
    position: sticky;
    top: 0;
    z-index: 10;
}

table tr:last-child td {
    border-bottom: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Status Badge Colors */
.badge-primary {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-secondary {
    background-color: #E2E8F0;
    color: #475569;
}

.badge-success {
    background-color: #DCFCE7;
    color: #166534;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #B91C1C;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background-color: #DBEAFE;
    color: #1E40AF;
}

.badge-light {
    background-color: #F8FAFC;
    color: #334155;
}

.badge-dark {
    background-color: #1E293B;
    color: #F8FAFC;
}

.badge-purple {
    background-color: #F3E8FF;
    color: #6B21A8;
}

.platform-icons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 40px 0;
}

.platform-icons img {
    height: 40px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.platform-icons img:hover {
    opacity: 1;
}

.testimonials {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
}

.testimonial-card {
    flex: 1;
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.testimonial-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-content {
    flex: 1;
}

.testimonial-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-company {
    font-size: 14px;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.testimonial-stat {
    display: flex;
    align-items: center;
}

.testimonial-percentage {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 99px;
    padding: 4px 10px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 10px;
}

.services {
    text-align: center;
    margin: 60px 0;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.service-categories {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
}

.service-category {
    flex: 1;
    padding: 20px;
}

.service-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-list {
    text-align: left;
}

.service-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.service-item i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Upload form styling */
.upload-form {
    max-width: 600px;
    margin: 0 auto;
}

.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.file-upload:hover {
    border-color: var(--primary-color);
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.file-upload p {
    margin-bottom: 0;
}

.progress {
    width: 100%;
    height: 8px;
    margin-top: 20px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0;
    transition: width 0.3s ease;
}

/* Responsive table styles */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Responsive styles for mobile devices */
@media (max-width: 768px) {
    /* Header and navigation adjustments */
    header {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    
    header .logo {
        justify-content: center;
    }
    
    header nav ul {
        justify-content: center;
    }
    
    header .btn-primary {
        width: 100%;
        text-align: center;
    }
    
    /* Container padding adjustment */
    .container {
        padding: 10px;
    }
    
    /* Card adjustments */
    .card {
        padding: 15px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .card-header h2 {
        margin-bottom: 10px;
    }
    
    .card-header .btn {
        width: 100%;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    /* Form adjustments */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        padding: 12px 10px;
        font-size: 16px; /* Prevent zoom on focus in iOS */
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    /* General responsive adjustments */
    .testimonials {
        flex-direction: column;
    }
    
    .service-categories {
        flex-direction: column;
    }
    
    .platform-icons {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* Mobile-optimized table view */
    .table-mobile-optimized {
        width: 100%;
    }
    
    .table-mobile-optimized thead {
        display: none; /* Hide table header on mobile */
    }
    
    .table-mobile-optimized tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 1rem;
        background-color: #f9f9f9;
    }
    
    .table-mobile-optimized tbody td {
        display: flex;
        justify-content: space-between;
        text-align: right;
        padding: 8px 10px;
        border-bottom: 1px solid #eee;
    }
    
    .table-mobile-optimized tbody td:last-child {
        border-bottom: none;
    }
    
    .table-mobile-optimized td:before {
        content: attr(data-label);
        font-weight: 600;
        float: left;
        text-align: left;
    }
    
    /* Adjust action buttons on mobile */
    .table-mobile-optimized .action-buttons {
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }
    
    /* Lead details page adjustments */
    .lead-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* File upload adjustments */
    .file-upload {
        padding: 20px 15px;
    }
    
    /* Embed code box */
    .embed-code {
        font-size: 12px;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
    }
    
    /* File items adjustments */
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .file-actions {
        align-self: flex-end;
    }
}
