@import url("https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap");

body {
    background-color: #fff5ea;
    font-family: var(--DashboardBodyFont) !important;
}

.card-management {
    padding: 20px;
}

.header h2 {
    margin: 0;
}

.search-options {
    background: #eef3f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-search {
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 20px;
    cursor: pointer;
    transition: 0.3s ease;
    background: radial-gradient(circle, #2e77f2, #59c7fa);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--ButtonFont) !important;
    font-size: 16px !important;
    padding: 28px 20px !important;
}

.card-actions button {
    background: #eddac4;
    border: none;
    color: #262a41;
    border-radius: 10px;
    text-transform: capitalize;
    padding: 10px;
    font-size: 16px;
}

.cards {
    display: flex; /* Flex layout */
    flex-wrap: wrap; /* Wrap to next line on small screens */
    gap: 30px; /* Space between cards */
    justify-content: center; /* Center cards horizontally */
    width: 100%;
    margin: auto;
}

.card {
    width: 100%;
    border-radius: 20px;
    color: #fff;
    padding: 20px;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Add Card */
.add-card {
    background: #eddac4;
    border: 2px dashed #9c7c4b;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

    .add-card button {
        border: none;
        background: none;
        font-size: 18px;
        font-weight: 500;
        color: #6d4c2f;
        cursor: pointer;
    }

.card1 {
    background: linear-gradient(135deg, #5d4b8b, #2a1f5f);
    color: white;
}

.card2 {
    background: linear-gradient(135deg, #0ba360, #3cba92);
    color: white;
}

.card3 {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: white;
}

.actions button {
    margin-right: 10px;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.add-card {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #aaa;
    background: #f7f2ec;
    color: #555;
}

.export {
    margin-top: 20px;
}

.btn-export {
    background: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-family: var(--headingFont) !important;
}

.search-options {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e0d5e8;
    border-color: rgba(0, 0, 0, 0.12);
}

.section-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.filters {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

    .filter-item label {
        color: #3a224c;
        font-family: var(--headingFont);
        font-size: 15px;
    }

    /* .filter-item input,
.filter-item select {
  border: 1px solid #d3dae6;
  background: #fff;
  font-size: 14px;
  border-radius: 8px;
  text-transform: none;
  font-weight: 500;
  padding-left: 16px;
  padding-right: 16px;
  margin-right: 8px;
  background-color: #f1f1f1;
  padding: 12px 12px;
  font-family: var(--headingFontLight);
} */
    .filter-item .MuiSelect-select,
    .filter-item .MuiInputBase-root {
        border-radius: 8px !important;
        background-color: #fff5ea;
        font-family: var(--headingFontLight);
    }

    .filter-item fieldset {
        border: 1px solid #e0d5e8 !important;
        border-radius: 8px !important;
    }

    .filter-item.flex-grow {
        flex: 1;
    }

.btn-search:hover {
    opacity: 0.9;
}

.label {
    font-size: 12px;
    opacity: 0.8;
}

.value {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

/* Actions */
.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    border-radius: 10px;
    border: none;
    background: #eddac4;
    color: #262a41;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
    font-family: var(--DashboardBodyFont) !important;
}

    .btn:hover {
        background: #e0d0c3;
    }

/* Add Card */
.add-card {
    background: #e9d4b6;
    border: 2px dashed #9c7c4b;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .add-card button {
        border: none;
        background: none;
        font-size: 18px;
        font-weight: 500;
        color: #6d4c2f;
        cursor: pointer;
        font-family: var(--DashboardBodyFont) !important;
    }

/* Export Button */
.export {
    margin-top: 30px;
    text-align: center;
}

.btn-export {
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 13px 30px;
    cursor: pointer;
    transition: 0.3s ease;
    background: radial-gradient(circle, #2e77f2, #59c7fa);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--ButtonFont) !important;
}

    .btn-export:hover {
        background: #553721;
    }

/* Color Variants */
.card1 {
    background: linear-gradient(135deg, #4a1dbb, #5c33d3, #5f65f4, #52a4f7);
}

.card2 {
    background: linear-gradient(135deg, #007991, #78ffd6);
}

.card3 {
    background: linear-gradient(135deg, #f12711, #f5af19, #2f80ed, #8e2de2);
}

/* Wrapper (card + actions) */
.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-radius: 16px;
    background: #fdf3e9;
    padding: 10px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    flex: 1 1 250px;
}

/* Card only */
.card {
    width: 100%;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 20px;
    position: relative;
    display: flex;
    box-shadow: none !important;
}

/* Chip */
.card-chip {
    width: 40px;
    height: 30px;
    border-radius: 6px;
    background: gold;
    position: absolute;
    top: 15px;
    left: 20px;
}

/* Logo */
.card-logo {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 18px;
    font-weight: bold;
}

/* Number */
.card-number {
    font-size: 20px;
    letter-spacing: 3px;
    margin-top: 60px;
    font-weight: bold;
    font-family: var(--DashboardBodyFont) !important;
}

/* Holder + Expiry */
.card-details {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-family: var(--DashboardBodyFont) !important;
}

.label {
    font-size: 12px;
    opacity: 0.8;
}

.value {
    font-size: 14px;
    font-weight: 500;
    margin-top: 2px;
}

/* Actions below card */
.card-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px;
    background: #fdf3e9;
    padding: 10px;
    border-radius: 12px;
}

.btn {
    flex: 1;
    padding: 10px;
    margin: 0 5px;
    border-radius: 10px;
    border: none;
    background: #f2e6d9;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s ease;
}

    .btn:hover {
        background: #e0d0c3;
    }

/* Gradients */
.card1 .card {
    background: linear-gradient(135deg, #4a1dbb, #5c33d3, #5f65f4, #52a4f7);
}

.card2 .card {
    background: linear-gradient(135deg, #007991, #78ffd6);
}

.card3 .card {
    background: linear-gradient(135deg, #f12711, #f5af19, #2f80ed, #8e2de2);
}

.card-parent {
    margin-top: 30px;
}

/* Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(5 3 32 / 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Modal Box */
.modal {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 550px;
    max-width: 90%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 9999;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0px;
}

.modal h2 {
    font-size: 28px;
    margin: 0;
    color: #3a224c;
}

/* Close Button */
.close-btn {
    background: #0085fe;
    cursor: pointer;
    padding: 4px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: -8px;
    margin-right: -8px;
    position: absolute;
    border: 10px solid #34334c;
    right: 0;
    top: 2px;
}

    .close-btn:hover {
        background: #f5f5f5;
        color: #333;
    }

    .close-btn svg {
        display: block;
    }

.modal-subtitle {
    margin-bottom: 25px;
    text-align: center;
    color: #85878d;
    font-size: 15px;
    font-family: var(--headingFontLight) !important;
    padding-top: 0px;
    margin-top: 0px;
}

/* Input Groups */
.input-group {
    margin-bottom: 20px;
    gap:0px !important;
}

.modal form input {
    width: 100%;
    padding: 13px;
    background-color: #fff5ea;
    font-family: var(--headingFontLight);
    border: none;
    border-radius: 8px !important;
}

    .modal form input:focus {
        border-color: #6d4c2f;
    }

.modal-overlay fieldset {
    border-radius: 8px !important;
}
/* Row Inputs for Expiry Date and CVV */
.row-inputs {
    display: flex;
    gap: 15px;
}

    .row-inputs .input-group {
        flex: 1;
        margin-bottom: 0;
    }

/* Modal Buttons */
.modal-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 25px;
}

.save-btn {
    transition: all 0.2s ease;
    font-family: var(--ButtonFont) !important;
    font-weight: 400;
    color: #fff5ea;
    width: 30%;
    border-radius: 10px;
    font-size: 17px;
    text-transform: capitalize;
    padding: 10px;
    background: radial-gradient(circle, #2e77f2, #59c7fa);
    border: 1px solid #4aacf8;
}

    .save-btn:hover {
        background: #5a3d25;
    }

.card-management {
    float: left;
    width: 100%;
    padding: 0px 20px 20px 0px;
}

.PageTitle {
    padding-left: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
