@charset "UTF-8";


html {
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    
    font-size: 14px;
}

:root {
    
    --bg-color: #f0f2f5;
    
    --surface-color: #ffffff;
    
    --text-color: #2d3436;
    
    --primary-color: #00b894;
    
    --primary-text: #000;
    
    --secondary-color: #2980b9;
    
    --secondary-text: #ffffff;
    --neutral-color: #b2bec3;
    
    --border-color: #00b894;
    
    --shadow-color: rgba(0, 184, 148, 0.2);
    
    --input-bg: #ffffff;
}

body {
    color: var(--text-color);
    touch-action: none;
    font-size: 14px;
    font-family: "Varela Round", "Arial Rounded MT Bold", sans-serif;
    background-color: var(--bg-color);
    line-height: 1.42857143;
}


[ng-cloak],
.ng-cloak,
.ng-hide {
    display: none !important;
}



.mat-toolbar.ma {
    border-bottom: none;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary-color);
    position: sticky;
    top: 0px;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 16px;
}

#filterBox {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 15px;
    z-index: 101;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    
}

.mat-toolbar.bottom {
    border-top: none;
    background-color: var(--surface-color);
    color: var(--text-color);
    position: sticky;
    bottom: 0px;
    min-height: 10px;
    z-index: 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.md-dialog-container {
    z-index: 1050 !important;
}

.md-dialog-backdrop {
    z-index: 1040 !important;
}

md-dialog {
    
    overflow: hidden;
    
    display: flex;
    
    flex-direction: column;
    max-height: 90vh;
    
    max-width: 90vw;
    
}

md-dialog-content {
    flex: 1 1 auto;
    
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

md-dialog-actions {
    flex: 0 0 auto;
    
    padding: 10px;
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
}

md-content {
    background-color: var(--surface-color);
    color: var(--text-color);
}

.md-toolbar-tools h2,
.md-toolbar-tools h3 {
    color: var(--text-color);
    font-weight: bold;
}


button.md-button,
a.md-button,
.btn {
    border-radius: 30px !important;
    
    text-transform: none;
    font-weight: bold;
}


.btn1,
.btn2,
.btn3,
.btn4 {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    touch-action: manipulation;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}


.btn1 {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-text);
    margin: 5px;
    font-weight: bold;
}


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


.btn3 {
    background-color: var(--neutral-color);
    border-color: var(--neutral-color);
    color: #333;
    
    font-weight: bold;
}


.btn4 {
    background-color: #fff;
    border-color: #ddd;
    color: #666;
}


.btn1:hover,
.btn1:focus,
.btn2:hover,
.btn2:focus,
.btn3:hover,
.btn3:focus,
.btn4:hover,
.btn4:focus {
    filter: brightness(0.9);
}

.btn3:hover,
.btn3:focus {
    color: #333;
    
}



.btn-outline-dark {
    border: none;
    background-color: var(--primary-color);
    
    color: #fff;
    
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    padding: 6px 15px;
    margin: 0 !important;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
    white-space: nowrap;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-outline-dark:hover {
    background-color: #00a884;
    
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .btn-outline-dark {
        padding: 4px 10px;
        font-size: 0.9rem;
        right: 2px;
    }
}

.add-btn {
    border-radius: 20px;
    margin: 10px auto;
    width: 90%;
    background-color: var(--primary-color);
    color: var(--primary-text);
    font-weight: bold;
    border: 1px solid var(--border-color);
    z-index: 2;
}

.add-btn:hover {
    background-color: var(--secondary-color);
    color: var(--secondary-text);
    transform: translateY(-1px);
    box-shadow: 0 2px 5px var(--shadow-color);
}


.search-form {
    margin: 0 15px;
    padding-left: 0;
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 600px;
    min-width: 150px;
    border: none;
    background-color: #f0f2f5;
    color: var(--text-color);
    border-radius: 30px;
    padding: 10px 20px 10px 45px;
    
    outline: none;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
    transition: all 0.2s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--primary-color), 0 4px 12px rgba(0, 184, 148, 0.2);
    transform: scale(1.02);
}

.search-icon {
    display: inline-block;
    color: #fff;
    font-size: 1.2rem;
}

.md-icon {
    fill: #fff;
}


input[type="checkbox"] {
    display: none;
}

input[type="checkbox"]+label {
    display: inline-block;
    padding: 5px 10px;
    color: #888;
    user-select: none;
    border-radius: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

input[type="checkbox"]:checked+label {
    color: var(--primary-text);
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--shadow-color);
}


.dialog-toolbar {
    background-color: var(--surface-color) !important;
    border-bottom: 2px solid var(--border-color);
    color: var(--primary-color) !important;
    border-radius: 5px 5px 0 0;
}

.dialog-row-container {
    text-align: center;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
}


md-nav-bar {
    min-height: 40px !important;
    height: 40px !important;
}

md-nav-bar .md-button {
    line-height: 40px !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 10px !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
}

.md-nav-bar {
    border-bottom: 1px solid var(--border-color);
}

.dialog-sub-item-container {
    position: relative;
    height: auto;
    display: block;
    padding: 5px;
    margin-bottom: 10px;
    width: 95px;
    
    max-width: 95px;
    overflow: hidden;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dialog-item-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    margin: 5px 0;
    padding: 0 2px;
}


.item-card {
    text-align: center;
    background-color: var(--surface-color);
    padding-bottom: 0px;
    margin: 0px;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    overflow: hidden;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}


.grid-row,
.grid-item,
.carousel-container,
.loading-spacer {
    margin: 0px;
}

.grid-item {
    padding: 5px;
}


.filter-box {
    border-radius: 15px;
    background-color: #fff;
    margin: 10px;
    border: none;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 15px;
}

.total-box,
.restore-box {
    margin: 10px;
    border: none;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.restore-box {
    background-color: #e8f5e9;
    color: #2e7d32;
    text-align: center;
}


div.totaldiv {
    margin: 0px auto 5px auto;
    width: fit-content;
    padding: 6px 20px;
    border-radius: 20px;
    text-align: center;
    background-color: var(--surface-color);
    color: var(--text-color);
    box-shadow: 0 2px 5px var(--shadow-color);
    word-break: keep-all;
    border: 1px solid var(--border-color);
    position: relative;
}

div.totaldiv span,
div.total span {
    font-weight: bold;
    color: #ff5252;
}



.cart-badge,
.cart-badge.badge {
    position: absolute;
    top: -8px;
    right: -30px;
    
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff !important;
    background-color: #ff5252 !important;
    
    border-radius: 10px !important;
    
    padding: 0 5px !important;
    min-width: 20px;
    width: auto;
    height: 20px;
    line-height: 20px;
    
    text-align: center;
    white-space: nowrap;
    z-index: 20;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--bg-color);
    
}


.cart {
    position: relative !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.2s;
    color: var(--primary-color);
    margin-left: 10px;
    cursor: pointer;
}

.cart:hover {
    background-color: rgba(0, 184, 148, 0.1);
}

.mat-toolbar.ma .md-button.md-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin: 0 5px;
    color: var(--primary-color);
    transition: background-color 0.2s;
}

.mat-toolbar.ma .md-button.md-icon-button:hover {
    background-color: rgba(0, 184, 148, 0.1);
}

.cart-icon-container {
    position: relative;
    display: inline-block;
}


.badge-bottom-left {
    bottom: 2px;
    left: 2%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    position: absolute;
}

.item-index-badge {
    top: 0;
    left: 0;
    border-radius: 10px 0 0 0;
    background-color: #777;
    color: #fff;
    padding: 3px 7px;
    position: absolute;
}

.dialog-badge-cooking {
    position: absolute;
    width: 35px;
    left: 0px;
    top: 20px;
}

.dialog-sub-recipe-cooking {
    position: absolute;
    width: 30px;
    left: 0px;
}


.dialog-main-image {
    height: 90px;
}

.dialog-sub-image {
    height: 70px;
}

.item-image {
    height: 30vmin;
    max-height: 150px;
    object-fit: contain;
}

.item-name-header,
.dialog-item-name {
    color: #444;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
}

.dialog-item-name {
    color: #000888;
    font-size: 14px;
    height: 28px;
}

.dialog-item-multiplier {
    color: #000888;
    font-size: 100%;
}


.pagination {
    margin: 10px 0;
    display: inline-flex;
    border-radius: 4px;
}

.pagination>li {
    display: inline;
}

.pagination>li>a,
.pagination>li>span {
    position: relative;
    float: left;
    padding: 6px 12px;
    margin-left: -1px;
    line-height: 1.42857143;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
}

.pagination>li:first-child>a,
.pagination>li:first-child>span {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    margin-left: 0;
}

.pagination>li:last-child>a,
.pagination>li:last-child>span {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.pagination>li>a:hover,
.pagination>li>span:hover,
.pagination>li>a:focus,
.pagination>li>span:focus {
    z-index: 2;
    color: var(--primary-text);
    background-color: var(--primary-color);
    border-color: var(--border-color);
}

.pagination>.active>a,
.pagination>.active>span {
    z-index: 3;
    color: var(--primary-text);
    cursor: default;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination>.disabled>span,
.pagination>.disabled>a {
    color: var(--neutral-color);
    cursor: not-allowed;
    background-color: var(--bg-color);
    border-color: var(--border-color);
}


.black {
    height: 100vh;
    width: 100vw;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    top: 0;
    display: none;
    z-index: 1;
}


.loader {
    z-index: 9999;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-wheel {
    margin: 0;
    
    width: 120px;
    height: 120px;
    border: 8px solid rgba(0, 184, 148, 0.1);
    
    border-radius: 50%;
    border-top: 8px solid var(--primary-color);
    
    border-right: 8px solid rgba(0, 184, 148, 0.5);
    
    border-bottom: 8px solid transparent;
    border-left: 8px solid transparent;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
    
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.2);
    
}

.loader-text {
    font-size: 1.2rem;
    margin: 20px 0 0 0;
    
    color: var(--primary-color);
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-shadow: 2px 2px 0px #fff;
    letter-spacing: 2px;
}

.loader-text:after {
    content: "圖鑑資料載入中";
    animation: load 2s linear infinite;
    color: var(--text-color);
    
}

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

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

@keyframes load {
    0% {
        content: "圖鑑資料載入中";
        opacity: 0.3;
    }

    33% {
        content: "圖鑑資料載入中.";
        opacity: 0.6;
    }

    67% {
        content: "圖鑑資料載入中..";
        opacity: 1;
    }

    100% {
        content: "圖鑑資料載入中...";
        opacity: 0.3;
    }
}


::-webkit-scrollbar {
    display: none;
}

.md-dialog-content::-webkit-scrollbar {
    display: none;
}

.dialog-sub-item-container::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.dialog-sub-item-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dialog-sub-item-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 5px;
}


.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.margin-auto {
    margin: auto;
}

.width-100 {
    width: 100%;
}

.tablet {
    width: 100%;
    border-collapse: collapse;
}

.tablet tr:nth-child(odd) {
    background-color: #f1f1f1;
}

.tablet tr:nth-child(even) {
    background-color: #ffffff;
}


.carousel {
    margin-bottom: 0;
}

.carousel-caption {
    bottom: 3rem;
    z-index: 10;
}

.carousel-item {
    height: 32rem;
    background-color: #0000000b;
}

.carousel-item>img {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 32rem;
}


.item-card {
    text-align: center;
    background-color: white;
    
    padding-top: 0px;
    
    padding-bottom: 0px;
    margin: 0px;
    border: none;
    
    color: var(--text-color);
    border-radius: 15px;
    
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    
}


.item-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #74b9ff, #a29bfe);
    
    width: 100%;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.item-name-header {
    font-size: 0.95rem;
    font-weight: bold;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 5px;
    margin: 5px 0;
    background-color: #f8fcfd;
    
    border-top: 1px dashed #eee;
    border-bottom: 1px dashed #eee;
}

.add-btn {
    width: 100%;
    border: none;
    padding: 8px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    
}


.special-add-all-card {
    border: 2px solid #fdcb6e !important;
    background-color: #fffaf0 !important;
}

.special-add-all-card::before {
    background: linear-gradient(90deg, #ffeaa7, #fdcb6e) !important;
}

.add-all-btn {
    background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%) !important;
    color: white !important;
    font-size: 1.1rem !important;
    padding: 12px 0 !important;
    border-radius: 0 0 15px 15px !important;
    
    margin: 0 !important;
    width: 100%;
    border: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.add-all-btn:hover {
    filter: brightness(1.1);
}

.item-qty-label {
    position: absolute;
    top: 8px;
    
    left: 8px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #555;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.item-image-container {
    position: relative;
    
    height: 30vmin;
    max-height: 150px;
    padding-top: 0px;
    
    width: 100%;
    
    pointer-events: auto;
    
    cursor: zoom-in;
    
}

.item-image {
    height: 30vmin;
    max-height: 150px;
    object-fit: contain;
    position: relative;
}

.item-image.zoomable {
    cursor: zoom-in;
    transition: transform 0.2s;
}

.item-image.zoomable:active {
    transform: scale(0.95);
}


.badge-bottom-right-sm {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 30%;
    max-width: 30px;
    margin: 0 !important;
}

.badge-top-right-sm {
    position: absolute;
    top: 2px;
    
    right: 3px;
    width: 20%;
    max-width: 20px;
    margin: 0 !important;
}

.badge-top-left-md {
    position: absolute;
    top: 2px;
    
    left: 2px;
    width: 50%;
    max-width: 50px;
    margin: 0 !important;
}

.item-index-badge {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 10px 0 10px 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    margin: 0 !important;
    font-size: 0.85rem;
}


.filter-container {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #f0f0f0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.filter-title i {
    margin-right: 10px;
    background: rgba(0, 184, 148, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.filter-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.btn-sm-action {
    font-size: 0.9rem !important;
    padding: 0 15px !important;
    min-height: 32px !important;
    line-height: 32px !important;
    margin: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-pill {
    margin: 0 !important;
    cursor: pointer;
}

.filter-pill input[type="checkbox"] {
    display: none;
}

.filter-pill .pill-label {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: #000;
    
    font-size: 0.95rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-weight: 500;
}

.filter-pill input[type="checkbox"]:checked+.pill-label {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    transform: translateY(-1px);
}

.filter-pill:hover .pill-label {
    background-color: #e9ecef;
}

.filter-pill input[type="checkbox"]:checked:hover+.pill-label {
    background-color: #00a884;
}

.filter-divider {
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}


.total-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border-radius: 12px;
    padding: 15px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.info-row {
    display: flex;
    align-items: baseline;
    font-size: 1rem;
    color: #666;
}

.info-label {
    font-weight: 600;
    margin-right: 10px;
    display: flex;
    align-items: center;
    color: #444;
}

.info-label i {
    color: var(--primary-color);
    margin-right: 6px;
    font-size: 1.1em;
}

.info-value {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin-right: 4px;
}

.info-value.text-highlight {
    color: var(--primary-color);
}

.info-unit {
    font-size: 0.9rem;
    color: #888;
}

.info-divider {
    width: 1px;
    height: 30px;
    background-color: #ddd;
    margin: 0 10px;
}

@media (max-width: 600px) {
    .total-info-card {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .info-divider {
        width: 80%;
        height: 1px;
        margin: 5px 0;
    }
}




.dialog-sub-item-container {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    overflow: hidden;
    
    position: relative;
}

.dialog-sub-item-container::before {
    content: '';
    display: block;
    height: 4px;
    
    background: linear-gradient(90deg, var(--primary-color), #55efc4);
    width: 100%;
}

.dialog-sub-item-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dialog-item-content {
    padding: 10px;
}

.dialog-item-name {
    font-size: 1rem;
    font-weight: bold;
    color: #444;
    margin: 0;
    padding: 8px 5px;
    background-color: #f8fcfd;
    
    border-bottom: 1px dashed #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}


.qty-input {
    text-align: center;
    width: 60%;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    font-size: 1.1rem;
    padding: 5px;
    border-radius: 20px;
    
    outline: none;
    transition: all 0.2s;
}

.qty-input:focus {
    background-color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.qty-input-sm {
    text-align: center;
    width: 50px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    font-size: 1rem;
    padding: 5px;
    border-radius: 15px;
    margin: 0 8px;
    outline: none;
}

.qty-input-sm:focus {
    border-color: var(--primary-color);
    background-color: white;
}



.qty-btn {
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #f0f0f0;
    color: #555;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.2rem;
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}


.tablet {
    border-collapse: separate;
    
    border-spacing: 0 8px;
    
}

.cart-table-row {
    background-color: white !important;
    
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    transition: transform 0.1s;
}

.cart-table-row:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cart-table-row td {
    padding: 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table-row td:first-child {
    border-left: 1px solid #f0f0f0;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.cart-table-row td:last-child {
    border-right: 1px solid #f0f0f0;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
}


.cart-table-row .dialog-sub-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s;
}

.cart-table-row .dialog-sub-image:hover {
    transform: scale(1.2);
}



.status-card {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 30px auto;
    
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
}

.status-card:hover {
    transform: translateY(-5px);
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.status-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-color);
}

.status-text {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}


.status-error .status-icon {
    color: #ff6b6b;
}

.status-error .status-title {
    color: #ff6b6b;
}

.status-empty .status-icon {
    color: #ccc;
}

.status-empty .status-title {
    color: #888;
}

.status-fuzzy .status-icon {
    color: #a29bfe;
}

.status-fuzzy .status-title {
    color: var(--primary-color);
}


.ask-btn {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 10px 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    box-shadow: 0 4px 15px rgba(9, 132, 227, 0.3) !important;
    transition: all 0.3s !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-transform: none !important;
}

.ask-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 132, 227, 0.4) !important;
    background: linear-gradient(135deg, #0984e3 0%, #74b9ff 100%) !important;
}

.refresh-btn {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 10px 30px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
}


.pagination {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    
    margin: 20px 0;
    padding: 0;
}

.pagination>li {
    display: inline-block;
}

.pagination>li>a,
.pagination>li>span {
    position: relative;
    float: none;
    
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    line-height: normal;
    color: var(--text-color);
    background-color: white;
    border: 1px solid #eee;
    border-radius: 12px !important;
    
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.pagination>li>a:hover,
.pagination>li>span:hover {
    background-color: #f0f2f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
    z-index: 2;
}

.pagination>.active>a,
.pagination>.active>span,
.pagination>.active>a:hover,
.pagination>.active>span:hover,
.pagination>.active>a:focus,
.pagination>.active>span:focus {
    z-index: 3;
    color: #fff;
    cursor: default;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
    
    transform: scale(1.1);
}

.pagination>.disabled>span,
.pagination>.disabled>span:hover,
.pagination>.disabled>span:focus,
.pagination>.disabled>a,
.pagination>.disabled>a:hover,
.pagination>.disabled>a:focus {
    color: #ccc;
    cursor: not-allowed;
    background-color: #fafafa;
    border-color: #f0f0f0;
    box-shadow: none;
    transform: none;
}


.footer-pagination-container {
    background-color: white;
    border-radius: 50px;
    
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    max-width: 500px;
    margin: 30px auto 50px auto;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-page-btn {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-radius: 30px !important;
    padding: 8px 20px !important;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
    text-decoration: none !important;
    line-height: normal !important;
    height: auto !important;
    border: none !important;
    
}

.footer-page-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 184, 148, 0.4);
    color: white !important;
}

.footer-page-btn[disabled] {
    background-color: #e0e0e0 !important;
    color: #999 !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.footer-page-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #666;
}

.footer-page-input {
    width: 60px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 5px;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.2s;
}

.footer-page-input:focus {
    border-color: var(--primary-color);
    background-color: #f9fdfc;
}


.mat-toolbar.ma {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}


.mat-toolbar.ma .md-button.md-icon-button,
.cart {
    width: 45px !important;
    height: 45px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    background-color: transparent;
    color: #555 !important;
    
}

.mat-toolbar.ma .md-button.md-icon-button:hover,
.cart:hover {
    background-color: rgba(0, 184, 148, 0.1) !important;
    color: var(--primary-color) !important;
    transform: scale(1.1);
}

.mat-toolbar.ma .md-button.md-icon-button .fas,
.cart .fas {
    font-size: 1.3rem;
    
}


.search-form {
    max-width: 600px;
    margin: 0 20px !important;
    position: relative;
    flex: 1;
    
    width: 100%;
}



.search-input {
    background-color: #f1f3f5 !important;
    border: 2px solid transparent !important;
    transition: all 0.3s !important;
    padding-right: 50px !important;
    
    font-size: 1rem !important;
    color: #333 !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03) !important;
}

.search-input:focus {
    background-color: #fff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 20px rgba(0, 184, 148, 0.15) !important;
}

.search-input::placeholder {
    color: #aaa;
    font-weight: normal;
}


.btn-outline-dark {
    position: absolute;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.3) !important;
    transition: all 0.2s !important;
}

.btn-outline-dark:hover {
    transform: translateY(-50%) scale(1.1) !important;
    box-shadow: 0 4px 10px rgba(0, 184, 148, 0.4) !important;
}

.search-icon {
    font-size: 0.9rem !important;
}


.space-flex {
    flex: 1;
}


.mat-toolbar.bottom {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(0, 184, 148, 0.2) !important;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0 !important;
    height: auto !important;
    min-height: 60px !important;
    z-index: 100 !important;
}

div.totaldiv {
    border: 2px solid var(--primary-color) !important;
    background-color: white !important;
    border-radius: 50px !important;
    padding: 8px 30px !important;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2) !important;
    color: #444 !important;
    font-size: 1.1rem !important;
    margin: 0 auto !important;
    display: inline-block !important;
    transition: transform 0.2s;
}

div.totaldiv:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3) !important;
}

div.totaldiv span {
    color: #ff6b6b !important;
    
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    margin: 0 5px;
}



:root {
    --ac-cream: #FDFBEA;
    --ac-white: #FFFFFF;
    --ac-mint: #7DE2D2;
    
    --ac-green: #78C06E;
    
    --ac-brown: #5D4536;
    
    --ac-yellow: #F9E088;
    --ac-blue: #70D7E8;
    --ac-border-radius: 25px;
    --ac-shadow: 0 4px 10px rgba(93, 69, 54, 0.1);
}


body,
html {
    background-color: var(--ac-cream) !important;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(120, 192, 110, 0.03) 20px, rgba(120, 192, 110, 0.03) 40px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(120, 192, 110, 0.03) 20px, rgba(120, 192, 110, 0.03) 40px) !important;
    color: var(--ac-brown) !important;
    font-family: "Varela Round", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}


h1,
h2,
h3,
h4,
p,
span,
div,
b,
strong,
i,
a {
    color: var(--ac-brown);
    
}


.mat-toolbar.ma,
.mat-toolbar.bottom {
    background-color: var(--ac-mint) !important;
    backdrop-filter: none !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    color: white !important;
}

.mat-toolbar.ma .md-toolbar-tools,
.mat-toolbar.bottom {
    color: white !important;
}

.mat-toolbar.ma .md-button .fas,
.cart .fas {
    color: white !important;
}


.item-card,
.dialog-sub-item-container,
.status-card,
.special-add-all-card {
    background-color: var(--ac-white) !important;
    border-radius: var(--ac-border-radius) !important;
    box-shadow: var(--ac-shadow) !important;
    border: 3px solid white !important;
    
    outline: 2px dashed #E0DCC5;
    
    transform: translate(0, 0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.item-card:hover {
    transform: scale(1.02) rotate(1deg);
}

.dialog-sub-item-container {
    width: 95px !important;
    
    border-radius: 15px !important;
}


.item-name-header,
.dialog-item-name {
    background: transparent !important;
    border-bottom: 2px dashed #E0DCC5 !important;
    color: var(--ac-brown) !important;
    font-weight: 800 !important;
}


.md-button,
.btn,
.btn2,
.qty-btn,
.footer-page-btn,
.add-all-btn,
.add-btn {
    border-radius: 50px !important;
    background-color: var(--ac-yellow) !important;
    color: var(--ac-brown) !important;
    border: 2px solid white !important;
    box-shadow: 0 4px 0 #EBC65B !important;
    
    font-weight: 800 !important;
    transition: all 0.1s !important;
}

.md-button:hover,
.btn:hover,
.footer-page-btn:hover {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 #EBC65B !important;
}


.footer-page-btn {
    background-color: var(--ac-green) !important;
    box-shadow: 0 4px 0 #5DA055 !important;
    color: white !important;
}

.footer-page-btn:hover {
    box-shadow: 0 2px 0 #5DA055 !important;
}


.search-input,
.footer-page-input {
    background-color: #FFFDF5 !important;
    border: 2px solid #E0DCC5 !important;
    border-radius: 20px !important;
    color: var(--ac-brown) !important;
    box-shadow: inset 0 2px 5px rgba(93, 69, 54, 0.05) !important;
}


md-dialog {
    border-radius: 30px !important;
    border: 5px solid white !important;
    outline: 2px solid var(--ac-mint) !important;
    box-shadow: 0 10px 30px rgba(125, 226, 210, 0.3) !important;
    background-color: var(--ac-cream) !important;
}


div.totaldiv {
    border-radius: 50px !important;
    background: white !important;
    border: 2px dashed var(--ac-mint) !important;
    box-shadow: 0 4px 0 #E0E0E0 !important;
}

div.totaldiv span {
    color: var(--ac-green) !important;
}


.category-header {
    color: var(--ac-brown) !important;
    border-bottom: 2px dashed #E0DCC5;
    padding-bottom: 5px;
}

.header-dot {
    background-color: var(--ac-leaf) !important;
}


.tag-btn {
    border-radius: 20px !important;
    border: 2px dashed rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1) !important;
    color: var(--ac-brown) !important;
    font-weight: 800 !important;
    transform: translateY(0);
    transition: all 0.1s;
}

.tag-btn:hover {
    transform: translateY(2px) !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1) !important;
}


.btn-latest {
    background: #64E7C3 !important;
}


.btn-popular {
    background: #FF9B9B !important;
}


.btn-series {
    background: #A0EACD !important;
}


.btn-color {
    background: #F9E088 !important;
}


.btn-photo {
    background: #FDB5D3 !important;
}


.btn-keyword {
    background: #E0DCC5 !important;
}


.btn-version {
    background: #C4BCF2 !important;
}




.md-button,
.btn,
.btn2,
.tag-btn,
.filter-pill .pill-label {
    color: #3E2723 !important;
    
    text-shadow: none !important;
    
}

.md-button .fas,
.tag-btn i {
    color: #3E2723 !important;
    opacity: 0.8;
}


.filter-pill .pill-label {
    background-color: var(--ac-white) !important;
    border: 2px dashed #E0DCC5 !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.05) !important;
    font-weight: bold !important;
    padding: 6px 15px !important;
    transition: all 0.2s;
    color: var(--ac-brown) !important;
}

.filter-pill input[type="checkbox"]:checked+.pill-label {
    background-color: var(--ac-mint) !important;
    border-color: var(--ac-mint) !important;
    color: #3E2723 !important;
    
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.filter-pill input[type="checkbox"]:checked+.pill-label i {
    color: #3E2723 !important;
}

.filter-pill:hover .pill-label {
    border-color: var(--ac-green) !important;
    transform: translateY(-1px);
}


.btn-latest,
.btn-popular,
.btn-category,
.btn-version,
.btn-series,
.btn-color,
.btn-photo,
.btn-keyword {
    color: #3E2723 !important;
    
}

.btn-latest i,
.btn-popular i,
.btn-category i,
.btn-version i,
.btn-series i,
.btn-color i,
.btn-photo i,
.btn-keyword i {
    color: #3E2723 !important;
    opacity: 0.9 !important;
}


.fab-filter-toggle {
    position: fixed !important;
    top: 85px !important;
    
    left: 20px !important;
    bottom: auto !important;
    right: auto !important;
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background-color: var(--ac-green) !important;
    border: 3px solid white !important;
    outline: 2px dashed #5DA055 !important;
    box-shadow: 0 6px 0 #5DA055, 0 10px 20px rgba(0, 0, 0, 0.1) !important;
    z-index: 1000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.fab-filter-toggle:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 0 #5DA055, 0 20px 30px rgba(0, 0, 0, 0.15) !important;
}

.fab-filter-toggle i {
    font-size: 1.5rem !important;
    color: white !important;
}


#filterBox,
.filteritem {
    position: fixed !important;
    top: 135px !important;
    
    left: 20px !important;
    bottom: auto !important;
    right: auto !important;
    width: 300px !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
    background-color: var(--ac-cream) !important;
    border: 3px solid white !important;
    outline: 2px dashed var(--ac-mint) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
    padding: 15px !important;
    display: none;
}


.filter-note {
    font-size: 0.8rem;
    color: var(--ac-brown);
    text-align: center;
    margin-bottom: 10px;
    
    opacity: 0.8;
    border-bottom: 1px dashed #ccc;
    
    padding-bottom: 8px;
}


.filter-header {
    display: none !important;
}


.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}


.fab-filter-toggle {
    position: fixed !important;
    bottom: 20px !important;
    right: 10px !important;
    width: 45px !important;
    height: 45px !important;
    min-height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 90 !important;
    border-radius: 50% !important;
    
    color: #555 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

.fab-filter-toggle i {
    font-size: 16px !important;
    line-height: 16px !important;
}