.customer-database-add-btn {
    font-size: 1vw;
    padding: 10px 20px;
    background-color: #0052CC;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Gilroy-Bold', sans-serif;
    margin-bottom: 1vw;
}

.customer-database-add-btn:hover {
    background: linear-gradient(to bottom, #0052CC 10%, #002966 100%);
    color: #ffffff;
    border-color: #0052CC;
}

.customer-database-add-btn img {
    width: 100%;
    height: auto;
    max-width: 1.4vw;
    margin-right: .2vw;
    vertical-align: middle;
}



/* TABLE  css*/

/* Customer Database Table Styles */
.customer-database-table-container {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
}

.customer-database-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

.customer-database-table thead {
    background: #CBCDD2;
}

.customer-database-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-family: 'Gilroy-SemiBold', sans-serif;
    font-size: .86vw;
    color: #333;
    text-transform: none;
    letter-spacing: 0;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

.customer-database-table thead th:last-child {
    border-right: none;
}

.customer-database-table tbody tr {
    transition: background 0.2s ease;
}

.customer-database-table tbody tr:hover {
    background: #fafafa;
}

.customer-database-table tbody td {
    padding: 16px 20px;
    font-size: .9vw;
    font-family: 'Gilroy-SemiBold', sans-serif;
    color: #333;
    vertical-align: middle;
    border-right: 2px solid #CBCDD2;
    border-bottom: 2px solid #CBCDD2;
}

.customer-database-table tbody td:last-child {
    border-right: none;
}

.customer-database-table tbody tr:last-child td {
    border-bottom: none;
}

/* Center align View and Delete columns */
.customer-database-table tbody td:nth-child(7),
.customer-database-table tbody td:nth-child(8) {
    text-align: center;
}

/* Table Status Dropdown */
/* Table Status Dropdown */
.table-status-select {
    padding: 6px 30px 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8vw;
    font-family: 'Gilroy-SemiBold', sans-serif;
    cursor: pointer;
    outline: none;
    appearance: none;
    accent-color: #9ca3af; /* Grey accent color */
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    transition: all 0.2s ease;
}

.table-status-select:hover {
    background-color: #f3f4f6; /* Light grey on hover */
}

.table-status-select:focus {
    outline: none;
    background-color: #f3f4f6; /* Light grey on focus */
}

/* Dropdown options styling with grey hover */
.table-status-select option {
    padding: 8px;
    font-family: 'Gilroy-SemiBold', sans-serif;
    background: white;
    color: #333;
}

/* Override browser's blue highlight with grey using box-shadow */
.table-status-select option:hover,
.table-status-select option:checked {
    box-shadow: 0 0 10px 100px #e5e7eb inset !important; /* Grey highlight */
    background-color: #e5e7eb !important;
    color: #333 !important;
}

/* Customer Modal Overlay */
.customer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.customer-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Customer Modal Content */
.customer-modal-content {
    background-color: #fff;
    margin: 2% auto;
    width: 90%;
    max-width: 60vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Customer Modal Header */
.customer-modal-header {
    padding: 20px 30px;
    background: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid #e5e7eb;
}

.customer-modal-header h2 {
    margin: 0;
    font-size: 1.5vw;
    color: #000000;
    font-family: 'Gilroy-Bold', sans-serif;
}

.customer-modal-close {
    color: #000000;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease;
    line-height: 1;
}

.customer-modal-close:hover {
    transform: scale(1.2);
}

/* Customer Modal Body */
.customer-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Customer Form Sections */
.customer-form-section {
    margin-bottom: 30px;
}

.customer-section-title {
    font-size: 1.2vw;
    font-family: 'Gilroy-Bold', sans-serif;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0052CC;
}

/* Customer Form Rows */
.customer-form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

/* Customer Form Group */
.customer-form-group {
    display: flex;
    flex-direction: column;
}

.customer-label {
    font-size: 0.9vw;
    font-family: 'Gilroy-SemiBold', sans-serif;
    color: #333;
    margin-bottom: 8px;
}

.customer-required {
    color: #dc2626;
    font-weight: bold;
}

/* Customer Input Fields */
.customer-input {
    padding: 12px 16px;
    border: 1px solid #CBCDD2;
    border-radius: 6px;
    font-size: 0.9vw;
    font-family: 'Gilroy-Regular', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.customer-input:focus {
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.customer-input::placeholder {
    color: #999;
}

/* Customer Modal Footer */
.customer-modal-footer {
    padding: 20px 30px;
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.customer-form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Customer Submit Button */
.customer-btn-submit {
    padding: 12px 40px;
    background: linear-gradient(to bottom, #0052CC 10%, #002966 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1vw;
    font-family: 'Gilroy-Bold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}

/* Customer Clear Button */
.customer-btn-clear {
    padding: 12px 40px;
    background: transparent;
    color: #666;
    border: 2px solid #CBCDD2;
    border-radius: 6px;
    font-size: 1vw;
    font-family: 'Gilroy-Bold', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-btn-clear:hover {
    background: #f3f4f6;
    border-color: #999;
}

/* Table Action Buttons */

/* Customer Table Action Buttons with Images */
.customer-table-view-btn,
.customer-table-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto; /* Center the button */
}

.customer-table-view-btn {
    background: transparent;
}

.customer-table-view-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
}

.customer-table-view-btn img {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto; /* Center the image */
}

.customer-table-delete-btn {
    background: transparent;
}

.customer-table-delete-btn:hover {
    background: #fee2e2;
    transform: scale(1.1);
}

.customer-table-delete-btn img {
    width: 20px;
    height: 20px;
    display: block;
    margin: 0 auto; /* Center the image */
}


/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .customer-database-add-btn {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .customer-database-add-btn img {
        max-width: 1.25rem;
        margin-right: 0.5rem;
    }

    .customer-database-table {
        min-width: 900px;
    }

    .customer-database-table thead th {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }

    .customer-database-table tbody td {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }

    .table-status-select {
        padding: 0.5rem 2rem 0.5rem 0.75rem;
        font-size: 0.875rem;
    }

    .customer-modal-content {
        max-width: 80vw;
        max-height: 85vh;
    }

    .customer-modal-header h2 {
        font-size: 1.5rem;
    }

    .customer-section-title {
        font-size: 1.25rem;
    }

    .customer-form-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .customer-label {
        font-size: 0.875rem;
    }

    .customer-input {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .customer-btn-submit,
    .customer-btn-clear {
        padding: 0.75rem 2rem;
        font-size: 0.875rem;
    }

    .customer-table-view-btn img,
    .customer-table-delete-btn img {
        width: 18px;
        height: 18px;
    }
}

/* Mobile (481px - 767px) */
@media (max-width: 767px) {
    .customer-database-add-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
        margin-bottom: 1rem;
    }

    .customer-database-add-btn img {
        max-width: 1rem;
        margin-right: 0.375rem;
    }

    .customer-database-table-container {
        border-radius: 8px;
    }

    .customer-database-table {
        min-width: 100%;
        font-size: 0.75rem;
    }

    .customer-database-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .customer-database-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.75rem;
    }

    .table-status-select {
        padding: 0.375rem 1.5rem 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .customer-modal-content {
        max-width: 95vw;
        max-height: 90vh;
        margin: 1% auto;
    }

    .customer-modal-header {
        padding: 1rem 1.25rem;
    }

    .customer-modal-header h2 {
        font-size: 1.25rem;
    }

    .customer-modal-close {
        font-size: 28px;
    }

    .customer-modal-body {
        padding: 1.25rem;
    }

    .customer-section-title {
        font-size: 1.125rem;
        margin-bottom: 1rem;
    }

    .customer-form-row {
        grid-template-columns: 1fr;
        gap: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .customer-label {
        font-size: 0.8125rem;
        margin-bottom: 0.5rem;
    }

    .customer-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }

    .customer-modal-footer {
        padding: 1rem 1.25rem;
    }

    .customer-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .customer-btn-submit,
    .customer-btn-clear {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .customer-table-view-btn,
    .customer-table-delete-btn {
        padding: 0.5rem;
    }

    .customer-table-view-btn img,
    .customer-table-delete-btn img {
        width: 16px;
        height: 16px;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .customer-database-add-btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }

    .customer-database-add-btn img {
        max-width: 0.875rem;
        margin-right: 0.25rem;
    }

    .customer-database-table thead th {
        padding: 0.625rem 0.375rem;
        font-size: 0.6875rem;
    }

    .customer-database-table tbody td {
        padding: 0.625rem 0.375rem;
        font-size: 0.6875rem;
    }

    .table-status-select {
        padding: 0.3125rem 1.25rem 0.3125rem 0.375rem;
        font-size: 0.6875rem;
    }

    .customer-modal-header h2 {
        font-size: 1.125rem;
    }

    .customer-modal-close {
        font-size: 24px;
    }

    .customer-section-title {
        font-size: 1rem;
    }

    .customer-label {
        font-size: 0.75rem;
    }

    .customer-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .customer-btn-submit,
    .customer-btn-clear {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }

    .customer-table-view-btn img,
    .customer-table-delete-btn img {
        width: 14px;
        height: 14px;
    }
}
