.company-index {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.company-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.company-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    position: relative;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d0e3ff;
}

.company-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background: linear-gradient(120deg, #f9fbfd 0%, #f0f7ff 100%);
    border-bottom: 1px solid #edf2f7;
}

.company-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(165deg, #414141, #0176FE);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.company-name-wrapper {
    flex: 1;
    min-width: 0;
}

.company-name {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-id {
    font-size: 13px;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.company-body {
    padding: 20px;
}

.company-description {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

.company-contacts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f0f7ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: #4299e1;
}

.contact-label {
    color: #718096;
    min-width: 70px;
}

.contact-value {
    color: #2d3748;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-footer {
    padding: 15px 20px;
    background: #f8fafc;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.company-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;


}

.btn-action:hover {
    transform: scale(1.1);
}

.btn-view {
    background: #dddddd;

}

.btn-update {
    background: #dddddd;
}

.btn-delete {
    background: #dddddd;
}

.company-date {
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

@media (max-width: 768px) {
    .company-list {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}