/* Ensure proper Font Awesome loading */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Fix any encoding issues */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure icons display properly */
.fas, .fab, .far, .fal, .fa {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands" !important;
    font-weight: 900;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.fab {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

/* Rest of your existing CSS... */
:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-color);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.hero-section::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card h3 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    color: white;
    font-size: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.navbar-brand {
    font-size: 1.5rem;
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
    background-color: #f8fafc;
}

.social-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); }
.social-icon.facebook { background: #1877f2; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.tiktok { background: #000; }
.social-icon.youtube { background: #ff0000; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.pinterest { background: #bd081c; }
.social-icon.snapchat { background: #fffc00; color: #000; }

.alert {
    border: none;
    border-radius: 8px;
}

.badge {
    font-size: 0.75rem;
    padding: 0.5em 0.75em;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    color: white;
}

.sidebar {
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

.sidebar .nav-link {
    color: #6b7280;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.revenue-chart {
    min-height: 300px;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
}

.link-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.link-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.copy-btn {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.advertiser-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.star-btn {
    background: none;
    border: none;
    color: #fbbf24;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.star-btn:hover {
    color: #f59e0b;
    transform: scale(1.1);
}

.star-btn.starred {
    color: #f59e0b;
}

.social-linkpage {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.offer-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.offer-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    text-decoration: none;
    color: inherit;
}

/* Mobile navigation improvements */
@media (max-width: 991.98px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem 1rem;
        display: block;
        text-align: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 1rem auto;
    }
}

/* Desktop navigation */
@media (min-width: 992px) {
    .navbar-nav .btn {
        border-radius: 0.375rem;
        padding: 0.5rem 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Fix for navbar brand spacing */
.navbar-brand {
    margin-right: auto;
}

/* Ensure proper button styling in navbar */
.navbar-nav .btn {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Improved star button styling */
.star-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.star-btn:hover {
    color: #ffc107;
    transform: scale(1.1);
    background-color: rgba(255, 193, 7, 0.1);
}

.star-btn.starred {
    color: #ffc107;
}

.star-btn.starred:hover {
    color: #e0a800;
}

/* Mobile responsiveness for link items */
@media (max-width: 768px) {
    .link-item {
        margin-bottom: 1rem;
    }
    
    .advertiser-logo {
        width: 30px;
        height: 30px;
    }
    
    .input-group .form-control {
        font-size: 0.875rem;
    }
    
    .copy-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }
}

/* Pagination styling */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}