:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    --fixed-navbar-height: 96px;
    --fixed-navbar-height-mobile: 86px;
}

/* Universal fix for fixed navigation - prevent content from going under navbar */
body {
    padding-top: var(--fixed-navbar-height) !important; /* Adjust based on navbar height */
}

/* Responsive navbar height adjustments */
@media (max-width: 768px) {
    body {
        padding-top: var(--fixed-navbar-height-mobile) !important; /* Smaller navbar on mobile */
    }
}

@media (min-width: 769px) {
    body {
        padding-top: var(--fixed-navbar-height) !important; /* Standard navbar height on desktop */
    }
}

/* Ensure navbar doesn't overlap content on any screen size */
.navbar-fixed-top + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure main content has proper spacing */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal container adjustments for fixed navbar */
.container,
.container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal content area fixes */
.content-area,
.page-content,
.main-content,
.dashboard-content,
.interviews-content,
.jobs-content,
.profile-content,
.subscriptions-content,
.company-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal page wrapper fix */
.page-wrapper,
.content-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal card and section fixes */
.card,
.card-body,
.section,
.content-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal search and filter sections */
.search-section,
.filter-section,
.content-filters,
.filters,
.search-filters {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal page header fixes */
.page-header,
.content-header,
.section-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal row and column fixes */
.row,
.col,
[class*="col-"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal override for any conflicting styles */
.py-0,
.mt-0,
.pt-0 {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Universal fix for all direct children of main content */
main > *,
.container > *,
.container-fluid > * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal fix for specific page types */
.interviews-page-content,
.jobs-page-content,
.subscriptions-page-content,
.company-page-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Universal fix for all page content */
[class*="page-content"],
[class*="content-area"],
[class*="main-content"] {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.verification-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

.verification-badge.basic {
    background-color: #3b82f6;
}

.verification-badge.premium {
    background-color: #f59e0b;
}

.verification-badge.enterprise {
    background-color: #8b5cf6;
}

/* Role badge styling */
.navbar .badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

.navbar .d-flex.flex-column {
    line-height: 1.2;
}

.navbar .d-flex.flex-column span:first-child {
    font-weight: 600;
}

.card-hover:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

.stats-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4f46e5;
    border-color: #4f46e5;
}

/* Global Pagination Styles - Higher Specificity */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    gap: 0.25rem !important;
}

/* Tailwind pagination override */
nav[role="navigation"][aria-label="Pagination Navigation"] {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

/* Tailwind pagination buttons */
nav[role="navigation"] a,
nav[role="navigation"] span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0 0.125rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    transition: all 0.15s ease-in-out !important;
}

nav[role="navigation"] a:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Active page */
nav[role="navigation"] span[aria-current="page"] span {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

/* Disabled state */
nav[role="navigation"] a[aria-disabled="true"],
nav[role="navigation"] span[aria-disabled="true"] {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Pagination navigation container */
.pagination nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.pagination .page-item {
    margin: 0 !important;
}

.pagination .page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    transition: all 0.15s ease-in-out !important;
}

.pagination .page-link:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.pagination .page-item.active .page-link {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

.pagination .page-item.disabled .page-link:hover {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Pagination info text */
.pagination-info {
    text-align: center;
    color: #6c757d;
    font-size: 0.875rem;
    margin: 0.5rem 0;
}

/* Pagination arrows and special elements */
.pagination .page-link svg,
.pagination .page-link i {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 0.875rem !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Specific styling for Bootstrap Icons in pagination */
.pagination .page-link .bi {
    font-size: 0.875rem !important;
    line-height: 1 !important;
    width: 0.875rem !important;
    height: 0.875rem !important;
    display: inline-block !important;
}

/* Tailwind SVG arrows styling */
nav[role="navigation"] svg {
    width: 1rem !important;
    height: 1rem !important;
    font-size: 0.875rem !important;
}

/* Override Tailwind flex classes */
nav[role="navigation"] .flex {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

nav[role="navigation"] .hidden {
    display: none !important;
}

nav[role="navigation"] .sm\\:flex {
    display: flex !important;
}

nav[role="navigation"] .sm\\:hidden {
    display: none !important;
}

/* Override any large arrow rendering */
.pagination .page-link {
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
}

/* Ensure no large symbols are rendered */
.pagination .page-link::before,
.pagination .page-link::after {
    display: none !important;
}

/* Force all pagination content to be properly sized */
.pagination * {
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
}

/* Specific override for any large arrows or symbols */
.pagination .page-link {
    max-width: 2.5rem !important;
    max-height: 2.5rem !important;
    overflow: hidden !important;
    text-align: center !important;
}

/* Ensure pagination container doesn't have extra margins */
.pagination-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.pagination-wrapper nav {
    margin: 0 !important;
}

.pagination-wrapper .pagination {
    margin: 0 !important;
}

/* Override any default pagination margins */
.pagination-wrapper .d-flex {
    margin: 0 !important;
}

/* Clean pagination item styling */
.pagination .page-item {
    display: inline-block !important;
    margin: 0 0.125rem !important;
    list-style: none !important;
}

/* Ensure pagination is a flex container */
.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.pagination .page-item a,
.pagination .page-item span {
    display: block !important;
    padding: 0.375rem 0.75rem !important;
    margin: 0 !important;
    line-height: 1.25 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    text-align: center !important;
    transition: all 0.15s ease-in-out !important;
}

.pagination .page-item a:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.pagination .page-item.active span {
    color: #fff !important;
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.pagination .page-item.disabled span {
    color: #6c757d !important;
    background-color: #fff !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Override any Bootstrap default pagination styles */
.pagination-lg .page-link {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
}

.pagination-sm .page-link {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    min-width: 2.5rem !important;
    height: 2.5rem !important;
}

/* Responsive pagination */
@media (max-width: 576px) {
    .pagination .page-link {
        padding: 0.25rem 0.5rem !important;
        min-width: 2rem !important;
        height: 2rem !important;
        font-size: 0.8rem !important;
    }
}

/* Fixed navbar spacing */
body {
    padding-top: 80px;
    /* Account for fixed navbar height */
}

/* Modern Footer Styles */
.footer-modern {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 50%, #4a5568 100%);
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
}

.footer-brand img {
    filter: brightness(1.1);
    transition: all 0.3s ease;
}

.footer-brand img:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.footer-description {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.footer-title {
    color: #f7fafc;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #a0aec0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #f7fafc;
    padding-left: 15px;
}

.footer-links a:hover::before {
    width: 10px;
}

.newsletter-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-title {
    color: #f7fafc;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    color: #a0aec0;
    margin-bottom: 0;
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f7fafc;
    border-radius: 12px 0 0 12px;
    padding: 0.75rem 1rem;
}

.newsletter-input::placeholder {
    color: #a0aec0;
}

.newsletter-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: #f7fafc;
}

.newsletter-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0 12px 12px 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.copyright {
    color: #a0aec0;
    margin-bottom: 0;
    font-size: 0.9rem;
}

.separator {
    margin: 0 1rem;
    color: #4a5568;
}

.tagline {
    color: #667eea;
    font-weight: 600;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stat-item {
    color: #a0aec0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.stat-item:hover {
    color: #667eea;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-modern {
        padding: 3rem 0 1.5rem;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }

    .newsletter-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .newsletter-btn {
        border-radius: 12px;
        width: 100%;
    }

    .footer-stats {
        justify-content: center;
        margin-top: 1rem;
    }

    .footer-bottom .row {
        text-align: center;
    }
}