@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400..700&display=swap');

.hide {
    display: none !important;
}

.show {
    display: block !important;
}

th {
    display: table-cell;
    cursor: pointer;
}

.contactform {
    cursor: pointer;
}

:root {
    --color-black: #41423d;
    --color-neutral-100: #f5f4f0;
    --color-neutral: #dfddd0;
    --color-primary-100: #f0f7f5;
    --color-primary-200: #e0eeeb;
    --color-primary-300: #cfe5e0;
    --color-primary: #3f9783;
    --color-primary-500: #327969;
    --color-white: #fbfcfa;
    --text-font-family: 'Inter', sans-serif;
    --title-font-family: 'Lora', serif;
    --title-font-weight: 500;
    --text-color: #000000;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font: normal 16px/1.5 sans-serif;
}

.content {
    /* align-items: center;
display: grid; */
    min-height: 100vh;
    padding: 2.5rem;
    width: 100%;
}



h1 {
    color: var(--color-primary);
    font-family: var(--title-font-family);
    font-size: 2.5rem;
    font-weight: var(--title-font-weight);
    margin: 0;
}

a {
    color: var(--color-primary);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
}

a:hover {
    color: var(--color-primary-500);
}

main {
    align-items: center;
    display: grid;
    min-height: 100vh;
    padding: 2.5rem;
    width: 100%;
}

main .content {
    margin: 0 auto;
    width: 100%;
}

.main-header {
    margin: 0 0 2.5rem;
}

.main-header.grid {
    align-items: center;
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
}

.button {
    background: var(--color-primary);
    border: 0;
    border-radius: .25rem;
    color: var(--color-white);
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    height: 3rem;
    line-height: 3rem;
    padding: 0 15px;
    align-items: center;
    display: grid;
    gap: 5px;
    grid-auto-flow: column;
}

.button:hover {
    background: var(--color-primary-500);
}

.button i {
    font-size: 1.25rem;
}

.button.icon {
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    width: 3rem;
}

.button.link {
    background: none;
    color: var(--color-primary);
    justify-content: start;
    padding: 0;
}

.button.link:hover {
    color: var(--color-primary-500);
}

.button.link i {
    font-size: inherit;
}

.card {
    border: 1px solid var(--color-neutral);
    border-radius: .25rem;
    background: var(--color-white);
    margin: 0 0 2.5rem;
    overflow: auto;
    /* padding: 1.5rem 1.5rem 2.5rem; */
    width: 100%;
}

.checkbox {
    background: var(--color-white);
    border: 1px solid var(--color-neutral);
    border-radius: .25rem;
    cursor: pointer;
    height: 1.5rem;
    position: relative;
    width: 1.5rem;
}

.checkbox input[type="checkbox"] {
    cursor: pointer;
    height: 0;
    opacity: 0;
    position: relative;
    width: 0;
}

.checkbox .checkmark::after {
    background: var(--color-primary);
    border: 0;
    border-radius: .25rem;
    color: var(--color-white);
    content: "\f00c";
    display: block;
    font-family: "Font Awesome 6 Free";
    font-size: .75rem;
    font-weight: 900;
    height: 1.5rem;
    width: 1.5rem;
    display: grid;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -1px;
    top: -1px;
}

.checkbox .checkmark.minus::after {
    content: "\f068";
}

.checkbox .checkmark {
    display: none;
}

.checkbox input[type="checkbox"]:checked~.checkmark {
    display: block;
}

.select {
    background: var(--color-white);
    border: 1px solid var(--color-neutral);
    border-radius: .25rem;
    color: var(--color-black);
    display: inline-block;
    font: inherit;
    height: 3rem;
    margin: 0 1rem 0 0;
    padding: 0 1rem;
    position: relative;
    width: 12rem;
}

.select::after {
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    height: 3rem;
    line-height: 3rem;
    padding: 0 1rem;
    position: absolute;
    right: 0;
    top: 0;
}

select {
    appearance: none;
    background-color: transparent;
    border: 0;
    cursor: inherit;
    font: inherit;
    height: 3rem;
    margin: 0;
    padding: 0 1rem 0 0;
    width: 100%;
}

.changePage {
    background: var(--color-white);
    border: 1px solid var(--color-neutral);
    border-radius: .25rem;
    color: var(--color-black);
    display: inline-block;
    font: inherit;
    height: 3rem;
    margin: 0 .5rem;
    padding: 0 1rem;
}

#caratFilter input[type="number"],
#caratFilter input[type="text"] {
    border-radius: .25rem;
    color: var(--color-black);
    display: inline-block;
    font: inherit;
    height: 3rem;
}

.colors {
    display: grid;
    justify-content: start;
    gap: 1.5rem;
    grid-auto-flow: column;
    margin: 2.5rem 0;
}

.color {
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
}

.color.black {
    background: var(--color-black);
}

.color.neutral-100 {
    background: var(--color-neutral-100);
    border: 1px solid var(--color-neutral);
}

.color.neutral {
    background: var(--color-neutral);
}

.color.primary-100 {
    background: var(--color-primary-100);
    border: 1px solid var(--color-primary-300);
}

.color.primary-200 {
    background: var(--color-primary-200);
    border: 1px solid var(--color-primary-300);
}

.color.primary-300 {
    background: var(--color-primary-300);
}

.color.primary {
    background: var(--color-primary);
}

.color.primary-500 {
    background: var(--color-primary-500);
}

.color.white {
    background: var(--color-white);
    border: 1px solid var(--color-neutral);
}

.paging.grid {
    align-items: center;
    display: grid;
    gap: .75rem;
    grid-auto-flow: column;
}

.paging span {
    margin: 0 .75rem;
}

table {
    border-collapse: collapse;
    width: 100%;
}

td,
th {
    border-bottom: 1px solid var(--color-primary-300);
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

th {
    padding: 1.5rem 1rem;
}

td {
    padding: 1rem;
}

tbody tr {
    cursor: pointer;
}

tbody tr.selected td {
    background: var(--color-primary-200);
}

tbody tr:hover:not(.selected) td,
tbody tr.hover:not(.selected) td {
    background: var(--color-primary-100);
}

.table-footer,
.table-header {
    font-size: .875rem;
}

.table-footer {
    margin: -1.5rem 0 0;
}

.table-header {
    margin: 0 0 1rem;
}

.table-footer.grid,
.table-header.grid {
    align-items: center;
    display: grid;
    grid-auto-flow: column;
    justify-content: space-between;
}

.icon-size {
    font-size: 20px;
}

.action-button,
.action-buttons {
    display: flex;
}

.action-button button,
.action-buttons select {
    margin-left: 10px;
}

.summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background-color: var(--color-primary-200);
    padding: 10px 0;
    margin: 20px 0;
    gap: 10px;
    border-radius: 10px;
}

.summary-item {
    text-align: center;
    font-size: 1.2em;
    padding: 10px;
    position: relative;
}

.summary-items {
    padding: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.summary-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 1px;
}

.summary-item:last-child::after {
    display: none;
}

.summary-items a {
    color: var(--text-color);
    text-decoration: none;
}

.summary-line {
    border-right: 2px solid var(--color-primary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    /* Stack name and number vertically */
    margin-left: 10px;
    /* Spacing between icon and text */
}

.contactform {
    display: flex;
    justify-content: flex-start;
    font-size: larger;
    align-items: center;
}

.contactform a {
    display: flex;
    align-items: center;
}

.contactform i {
    font-size: 20px !important;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    background: var(--color-primary-200);
    color: var(--color-primary-500);
}

#contactModal .modal-dialog,
#downloadModal .modal-dialog {
    max-width: 350px;
    margin: 0 auto;
}

.custom_checkbox {
    display: inline-block;
    padding: 0;
    margin-bottom: 10px;
}

.custom_checkbox .form-check-input {
    display: none;
}

.custom_checkbox .form-check-label {
    padding: 5px 20px;
    border: 1px solid #ddd;
    border-radius: 40px;
}

.custom_checkbox .form-check-input:checked+.form-check-label {
    background: var(--color-primary-500);
    color: #fff;
}

.shape_select_wrapper {
    display: flex;
    flex-wrap: wrap;
}

.shape_select_wrapper .custom_checkbox .form-check-label {
    padding: 9px 15px;
    border: 1px solid #ddd;
    border-radius: 7px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    line-height: 14px;
    width: 100px;
    text-align: center;
    height: 100px;
}

.shape_select_wrapper .custom_checkbox .form-check-label img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin: 0 0 5px;
    filter: grayscale(1);
}

.shape_select_wrapper .custom_checkbox .form-check-input:checked+.form-check-label img {
    filter: brightness(0) invert(1);
}

@media (max-width: 767px) {
    .main-header {
        display: block;
    }

    .content {
        padding: 15px;
    }

    .action-buttons,
    .action-button {
        display: flex;
        /* flex-direction: column; */
        gap: .5rem;
    }

    .action-buttons select {
        margin-left: 0px;
    }

    .paging {
        flex-direction: column;
        gap: .5rem;
    }

    .summary {
        grid-template-columns: 1fr;
    }

    .summary-line {
        border-right: none;
        border-bottom: 2px solid var(--color-primary);
    }

    .summary-items {
        flex-direction: column;
    }

    .table-footer.grid {
        align-items: center;
        display: grid;
        grid-auto-flow: column;
        justify-content: space-between;
    }

    .table-footer.grid>span {
        text-align: center;
        margin: 0 15px 0 0;
    }

    .table-footer.grid .paging.grid {
        align-items: center;
        display: grid;
        gap: .75rem;
        grid-auto-flow: column;
    }

    .table-footer.grid .paging.grid>span {
        display: none;
    }

    .card:has(table) {
        padding: 0;
    }

    .summary {
        background-color: transparent;
        padding: 10px 0;
    }

    .summary-line {
        border-bottom: 0;
        background: var(--color-primary-200);
    }

    .summary-items {
        background: var(--color-primary-200);
    }

    .action-button button,
    .action-buttons select {
        margin-left: 0;
    }
}

@media (max-width: 481px) {
    .custom_checkbox {
        width: calc(50% - .5rem);
    }

    .shape_select_wrapper .custom_checkbox .form-check-label {
        width: 100%;
    }
}

.label-on-border {
    position: absolute;
    top: 0;
    left: 1.75rem;
    background: white;
    padding: 0 0.25rem;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #6c757d;
}

#shapeList,
#colorList,
#clarityList,
#cutList,
#polishList,
#symmetryList,
#labList {
    cursor: pointer;
}

.bg-primary {
    --bs-bg-opacity: 1;
    background-color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-primary) !important;
    --bs-btn-border-color: var(--color-primary) !important;
}

.form-control:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: var(--color-primary-300) !important;
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--color-primary-300) !important;
}

.focusable:focus {
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    border-color: var(--color-primary-300) !important;
    outline: 0;
    box-shadow: 0 0 0 .25rem var(--color-primary-300) !important;
}

.badge {
    padding: 0.5em;
    font-size: 0.9em;
}

#loader {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    /* border: 5px solid #f3f3f3; */
    /* border-top: 5px solid var(--color-primary); */
    /* border-radius: 50%; */
    /* animation: spin 1s linear infinite; */
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

#loader .loader_img {
    /* background: url('diamond.png'); */
    background: url('diamond-loader.gif');
    width: 100px;
    height: 100px;
    display: block;
    background-size: 100px;
    border-radius: 50%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.mobile-logo {
    display: none !important;
}

@media only screen and (max-width: 768px) {
    .logo-company {
        display: none;
    }

    .mobile-logo {
        display: block !important;
    }
}