.d-flex {
    position: relative;
}

.costumers-index-card-body {
    padding: 20px;
    background: #ffffff;
}

.costumers-index-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: #f9fdf9;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.costumers-index-thead-light th {
    background: linear-gradient(90deg, #4caf50, #81c784);
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 3px solid #388e3c;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.costumers-index-thead-light th:first-child {
    border-top-left-radius: 10px;
}

.costumers-index-thead-light th:last-child {
    border-top-right-radius: 10px;
}

.costumers-index-row {
    transition: background-color 0.2s ease;
}

.costumers-index-row:hover {
    background-color: #f0f9f0;
}

.costumers-index-row td {
    padding: 10px 15px;
    font-size: 13px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.costumers-index-btn-add-costumers {
    position: absolute;
    top: 10px;
    right: 10px;
    text-decoration: none;
    background-color: #81c784;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.costumers-index-btn-add-costumers:hover {
    background-color: #66bb6a;
    transform: scale(1.05);
    color: white;
}

.costumers-index-btn-delete-costumers {
    background-color: #f44336;
    color: white;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 12px;
    transition: background-color 0.25s ease, transform 0.2s ease;
    border: none;
}

.costumers-index-btn-delete-costumers:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
}

.costumers-index-head-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.col-md-4 {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.costumers-index-search-bar {
    border-radius: 12px;
    font-size: 15px;
    padding: 12px 16px;
    border: 1px solid #66bb6a;
    background: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.costumers-index-search-bar::placeholder {
    color: #b0b0b0;
    font-style: italic;
}

.costumers-index-filter-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.costumers-index-filter-btn:hover {
    color: #67a36a;
}

.costumers-index-filter-menu {
    position: absolute;
    top: 40px;
    right: 0;
    display: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 5px 0;
    z-index: 10;
    width: 120px;
}

.costumers-index-filter-menu button {
    background: none;
    border: none;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.costumers-index-filter-menu button:hover {
    background-color: #f0f4f8;
}

.costumers-index-filter-menu .active {
    font-weight: bold;
    color: #67a36a;
}

.costumers-index-btn-search {
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    font-weight: 500;
    cursor: pointer;
    background-color: #81c784;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 8px rgba(67, 160, 71, 0.4);
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.costumers-index-btn-search:hover {
    background-color: #66bb6a;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(56, 142, 60, 0.5);
    color: white;
}

.costumers-index-user-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .costumers-index-row {
        flex-direction: column;
        align-items: stretch;
    }

    .costumers-index-btn-search {
        width: 100%;
    }
}
