body {
    background: #f8fafc;
    min-height: 100vh;
}

.companies-hero {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.companies-hero > div {
    flex: 1;
}

.companies-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: 'Raleway', sans-serif;
    letter-spacing: -1.5px;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.companies-hero h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #14b8a6, #0891b2, #8b5cf6);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(20, 184, 166, 0.3);
}

.companies-hero p {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 24px;
}

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

.companies-controls {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.search-form input[type="text"],
.search-form select {
    padding: 10px 14px;
    border: 2px solid #14b8a6;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    height: 42px;
}

.search-form input[type="text"]:focus,
.search-form select:focus {
    outline: none;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.search-form input[type="text"] {
    flex: 2;
    min-width: 0;
}

.search-form input[type="text"]:nth-child(2),
.search-form input[type="text"]:nth-child(3) {
    flex: 1;
    min-width: 120px;
}

.search-form select {
    flex: 1;
    min-width: 180px;
    max-width: 250px;
}

.search-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 42px;
}

.search-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.reset-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.reset-btn:hover {
    background: #fecaca;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    border-radius: 8px;
    color: #fff;
    cursor: help;
    transition: all 0.3s ease;
    height: 42px;
}

.stat-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.stat-compact i {
    font-size: 16px;
}

.stat-compact span {
    font-size: 16px;
    font-weight: 700;
}

.controls-right select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 42px;
}

.controls-right select:focus {
    outline: none;
    border-color: #14b8a6;
}

.companies-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.company-item {
    background: #fff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(20, 184, 166, 0.08);
    border: 1px solid #e0f2f1;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    align-items: center;
}

.company-item:hover {
    border-color: #14b8a6;
    box-shadow: 0 4px 16px rgba(20, 184, 166, 0.15);
    transform: translateY(-2px);
    background: linear-gradient(to right, #ffffff 0%, #f0fdfa 100%);
}

.company-item-logo {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #99f6e4;
    transition: all 0.3s ease;
    padding: 12px;
    flex-shrink: 0;
}

.company-item:hover .company-item-logo {
    border-color: #5eead4;
    box-shadow: 0 2px 12px rgba(20, 184, 166, 0.25);
    transform: scale(1.05);
}

.company-item-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.company-item-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    font-size: 48px;
    color: #14b8a6;
}

.company-item-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.company-item-header {
    margin-bottom: 2px;
}

.company-item-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f766e;
    margin: 0;
    line-height: 1.4;
}

.company-item-fullname {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.company-item-description {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-item-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 11px;
    color: #475569;
    font-weight: 600;
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 6px;
    border: 1px solid #99f6e4;
}

.metadata-item i {
    color: #14b8a6;
    font-size: 11px;
}

.company-item-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.company-item-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.company-item-status i {
    font-size: 10px;
}

.company-item:hover .company-item-status {
    transform: scale(1.05);
}

.status-active {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #fff;
    border: 1px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.status-confirmed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: 1px solid #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.status-unconfirmed {
    background: linear-gradient(135deg, #FCD34D 0%, #FBB020 100%);
    color: #78350F;
    border: 1px solid #FCD34D;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.25);
}

.status-pending {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: #fff;
    border: 1px solid #fb923c;
    box-shadow: 0 2px 8px rgba(251, 146, 60, 0.25);
}

.status-blocked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: 1px solid #ef4444;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.company-item-arrow {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.company-item:hover .company-item-arrow {
    transform: translateX(4px) scale(1.1);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.35);
}

.companies-empty {
    background: #fff;
    padding: 60px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.companies-empty i {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.companies-empty h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.companies-empty p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 35px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 24px;
    background: #fff;
    color: #14b8a6;
    border: 2px solid #14b8a6;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(.disabled) {
    background: #14b8a6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-link {
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: #fff;
    color: #14b8a6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-link:hover {
    border-color: #14b8a6;
    background: #14b8a6;
    color: #fff;
    transform: translateY(-1px);
}

.pagination-link.active {
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    color: #fff;
    border-color: #14b8a6;
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

.pagination-dots {
    padding: 0 8px;
    color: #9ca3af;
    font-weight: 700;
}

.pagination-goto {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    padding: 6px;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
}

.pagination-goto input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    color: #14b8a6;
}

.pagination-goto input:focus {
    outline: none;
    border-color: #14b8a6;
}

.pagination-goto button {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
    border: none;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-goto button:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(20, 184, 166, 0.3);
}

@media (max-width: 1024px) {
    .search-form input[type="text"]:first-child {
        flex: 1 1 100%;
    }

    .search-form input[type="text"]:nth-child(2),
    .search-form input[type="text"]:nth-child(3) {
        flex: 1 1 calc(50% - 5px);
        min-width: 150px;
    }

    .search-form select {
        flex: 1 1 calc(50% - 5px);
        min-width: 150px;
    }

    .search-form button {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .companies-hero h1 {
        font-size: 32px;
    }

    .companies-hero p {
        font-size: 16px;
    }

    .search-form {
        width: 100%;
    }

    .search-form input[type="text"],
    .search-form select,
    .search-form button {
        flex: 1 1 100%;
        min-width: 0;
    }

    .companies-controls {
        flex-direction: column;
    }

    .companies-header-bar {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .company-item {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .company-item-logo {
        margin: 0 auto;
    }

    .company-item-right {
        flex-direction: row;
        justify-content: center;
    }

    .pagination {
        flex-wrap: wrap;
    }
}
