:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

.companies-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.companies-header {
    text-align: center;
    margin-bottom: 40px;
}

.companies-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.companies-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.companies-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.industry-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.filter-option input {
    margin-right: 10px;
}

.filter-option span {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.clear-filter {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    display: inline-block;
}

.filter-section select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: var(--white);
}

/* Companies List */
.companies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.company-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.company-logo {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.company-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.company-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.company-info h3 a:hover {
    color: var(--primary-color);
}

.company-industry {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #d1d5db;
    font-size: 1.1rem;
}

.star.filled {
    color: var(--warning-color);
}

.rating-value {
    font-weight: 600;
    color: var(--text-dark);
}

.review-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

.company-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 150px;
}

.btn-primary, .btn-secondary {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.page-dots {
    padding: 8px 12px;
    color: var(--text-light);
}

.no-companies {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
}

.no-companies h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.no-companies p {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .companies-content {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .company-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .company-actions {
        flex-direction: row;
        justify-content: center;
    }
}