.single-match {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 .20rem rgba(40, 167, 69, .25);
  outline: 0;
}

#cardsSummary {
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#importSummary {
  position: sticky;
  top: 70px;
  z-index: 1020;
  background-color: #1a1a1a;
  border: none;
  border-radius: 6px;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

#importSummary.stuck {
  animation: mythicBreathDark 4s ease-in-out infinite;
}

@keyframes mythicBreathDark {
  0%, 100% {
    box-shadow: 0 0 10px rgba(230, 74, 25, 0.3), 0 0 20px rgba(230, 74, 25, 0.15);
    background-color: #1a1a1a;
  }
  50% {
    box-shadow: 0 0 25px rgba(230, 74, 25, 0.7), 0 0 35px rgba(230, 74, 25, 0.3);
    background-color: #241c1a;
  }
}


.navbar-item .position-relative .badge {
    font-size: 0.6rem;
    min-width: 16px;
    height: 16px;
    line-height: 14px;
}

.dropdown-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-logo img {
    height: 28px !important;
    width: auto !important;
}

table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
    top: 0;
    bottom: 0;
    left: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%;
    width: 1rem;
    -webkit-box-shadow: none;
    box-shadow: none;
    border-radius: 0;
    border: 0;
    margin: 0;
    background-color: #886ab5;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr.parent > th.dtr-control:before {
    content: "-";
    background-color: #1dc9b7;
}

#pdfWrapper {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Adjust height dynamically */
    overflow: auto;
    scrollbar-gutter: auto;
}

#pdfCanvas,
#textractCanvas {
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.highlightable {
    transition: background 0.3s, box-shadow 0.3s;
}

.highlightable.active {
    background: #e3f2fd;
    box-shadow: 0 0 2px 5px rgba(0, 123, 255, 0.5);
    border-radius: 5px;
}

.form-label {

    cursor: pointer; /* Show pointer cursor */
}

/*.form-label:hover {
    font-weight: bold; !* Change color on hover *!
}*/

.form-floating > label::after {
    background-color: transparent !important;
    color: #adb5bd !important;
}

/*.mb-3 > .form-control {
    margin-bottom: 0.5rem !important;
}*/

.select2-search--dropdown:before {
    content: none;
    font-family: "Font Awesome 5 Pro";
    position: absolute;
    left: calc(1rem + 0.875rem);
    top: calc(0.6rem + 0.875rem);
    color: #886ab5;
}

.select2-container--default .select2-results__option {
    padding: 8px 10px;
}

.select2.select2-container .selection .select2-selection.select2-selection--multiple, .select2.select2-container .selection .select2-selection.select2-selection--single {
    border: 1px solid #ced4da;
    border-radius: 5px;
}

.error-help-block {
    color: red;
}

.card-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    padding: 12px 16px;
    z-index: 2;
}

.card-overlay-top .card-title {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 0.95rem;
    line-height: 1.2;
    max-height: 2.4rem; /* 2 satır için */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hover effect for better readability */
.card-box:hover .card-overlay-top {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
}

.card-box:hover .card-overlay-top .card-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .card-overlay-top {
        padding: 8px 12px;
    }

    .card-overlay-top .card-title {
        font-size: 0.85rem;
    }
}

/* Existing bottom overlay should have lower z-index */
.card-overlay-bottom {
    z-index: 1;
}

/*.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}*/

/* Smooth transition on normal card */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rarity-common {
    background-color: #000000; /* Black */
    color: white;
}

.rarity-uncommon {
    background-color: #b7b7b7; /* Silver */
    color: white;
}

.rarity-rare {
    background-color: #d4af37; /* Gold */
    color: white;
}

.rarity-mythic {
    background-color: #e76f00; /* Orange */
    color: white;
}

.rarity-unknown {
    background-color: #6c757d; /* Bootstrap gray */
    color: white;
}

.card-grid a {
    text-decoration: none;
}

/*.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 350px);
    justify-content: center;
    gap: 32px;
    padding: 24px 0;
}*/


.card-box {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px 2px rgba(0, 0, 0, 0.07);
    background: #222;
    position: relative;
    display: flex;
    flex-direction: column;
}

.total-cards {
    font-size: 14px;
    border-bottom: 1px solid white;
    width: 100%;
    margin-bottom: 5px;
    padding-bottom: 5px;
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.total-cards-count {
    background: gold;
    border-radius: 5px;
    width: 20px;
    font-size: 12px;
    padding-left: 20px;
    padding-right: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

/*.card-box:hover { box-shadow: 0 8px 24px 4px rgba(0,0,0,0.13); }*/

.card-img-bg {
    width: 100%;
    height: 100%;
    background-position: top center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: relative;
}

.card-overlay-bottom {
    position: relative;
    margin-top: -15px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: black;
    color: #fff;
    padding: 12px 16px 10px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    font-size: 14px;
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.card-dropdown-topright {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.18s;
    pointer-events: none;
}

.card-box:hover .card-dropdown-topright {
    opacity: 1;
    pointer-events: auto;
}

.card-dropdown-topright [data-bs-toggle="dropdown"] {
    cursor: pointer;
    background: #fff;
    border-radius: 50%;
    padding: 13px;
    box-shadow: 0 1px 5px 0 #0001;
    font-size: 1.15em;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.card-dropdown-topright [data-bs-toggle="dropdown"]:hover {
    background: #eee;
}


.card-badge-circle {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 52px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    opacity: 0.9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.80);
    font-size: 20px;
    font-weight: 700;
    backdrop-filter: blur(5px);
    border: 2px solid #a89f8a;
    padding: 12px;
    z-index: 999999;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    user-select: none;
    pointer-events: none;
    letter-spacing: 1px;
    border-radius: 8px;
}

.card-badge-circle.backcopy {
    right: 15px;
    top: 15px;
}

/*
.card-badge-circle.backcopy-2 {
    right: 8px;
    top: 8px;
}
*/

/*.card-badge-circle::before {
    content: '';
    width: 40px;
    height: 52px;
}*/

.card-price {
    font-weight: 600;
    letter-spacing: .5px;
}

.card-discount {
    color: #49ff93;
    font-weight: 500;
    font-size: 13px;
}

.card-discount span {
    color: #bff6d1;
    margin-left: 4px;
}

.card-discount-profit {
    color: #28a745 !important; /* Bootstrap success green */
    font-weight: 600;
    font-size: 14px;
}

.card-discount-profit span {
    color: #34ce57 !important; /* Lighter green for percentage */
    margin-left: 4px;
}

/* Loss (Red) - When current market price < average purchase price */
.card-discount-loss {
    color: #dc3545 !important; /* Bootstrap danger red */
    font-weight: 600;
    font-size: 14px;
}

.card-discount-loss span {
    color: #e74c3c !important; /* Lighter red for percentage */
    margin-left: 4px;
}

/* Neutral (Gray) - When no data or no change */
.card-discount-neutral {
    color: #6c757d !important; /* Bootstrap gray */
    font-weight: 500;
    font-size: 14px;
}

.text-neutral {
    color: rgb(255 255 255 / 75%);
}

.card-discount-neutral span {
    color: #727272 !important; /* Lighter gray for percentage */
    margin-left: 4px;
}

/* Hover effects for better UX */
.card-box:hover .card-discount-profit {
    color: #218838 !important; /* Darker green on hover */
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.card-box:hover .card-discount-loss {
    color: #c82333 !important; /* Darker red on hover */
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.card-box:hover .card-discount-neutral {
    color: #5a6268 !important; /* Darker gray on hover */
    transition: all 0.2s ease;
}

/* Optional: Add subtle glow effect for profit/loss */
.card-discount-profit {
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.card-discount-loss {
    text-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}


@media (max-width: 900px) {
    .card-box, .card-img-bg {
        /*min-height: 450px !important;
        height: auto !important;*/
    }
}


@media (max-width: 600px) {
    .search-sort-bar {
        max-width: 320px !important;
        margin: 20px auto !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .search-sort-bar input,
    .search-sort-bar select,
    .search-sort-bar button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .search-sort-bar button {
        text-align: center !important;
        justify-content: center !important;
    }
}

.search-result-item {
    cursor: pointer;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-results-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.editable-field {
    border: none;
    background: transparent;
    width: 100%;
}

.editable-field:focus {
    background: #fff;
    border: 1px solid #86b7fe;
    border-radius: 4px;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#importTable th,
#importTable td {
    vertical-align: middle;
}

.filepond--root {
    margin-bottom: 1rem;
}

.card-name-cell {
    cursor: help;
    position: relative;
}

.table-container {
    position: relative;
    overflow: visible;
}

.card-image-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border: 2px solid #007bff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 90vw;
    max-height: 90vh;
}

.card-image-container:hover .card-image-tooltip {
    opacity: 1;
}

.card-import-image-tooltip {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 9999;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  max-height: 90vh;
}

.card-import-image-container:hover .card-import-image-tooltip {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-import-image-tooltip img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.card-import-image-tooltip strong {
  display: block;
  color: #212529;
  margin-top: 8px;
}

.scanned-img-wrapper {
  width: 100px;
  height: 120px;
  overflow: hidden;
}

.scanned-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.2) brightness(0.95);
}

.set-code-cell {
    cursor: help;
    font-family: monospace;
    font-weight: 600;
    color: #495057;
}

.mana-cost-display {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #6f42c1;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.type-line-display {
    font-size: 0.85em;
    color: #495057;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.no-validation {
    /* Ensure no jQuery validation is applied */
}

.filepond--root .filepond--credits {
    display: none !important;
}

/* resources/css/custom.css - Eklenecek CSS */

/* Transaction History DataTable Customizations */
#transaction-history-table {
    border-collapse: separate;
    border-spacing: 0;
}

#transaction-history-table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 12px 8px;
}

#transaction-history-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
    font-size: 0.875rem;
}

#transaction-history-table tfoot td {
    background-color: #343a40;
    color: white;
    font-weight: bold;
    border-top: 2px solid #dee2e6;
}

/* DataTable Controls */
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Transaction Type Filter */
#transaction-type-filter {
    min-width: 140px;
    font-size: 0.875rem;
}

/*.dataTables_wrapper .dataTables_paginate .paginate_button {*/
/*    padding: 0.375rem 0.75rem;*/
/*    margin: 0 2px;*/
/*    border: 1px solid #dee2e6;*/
/*    border-radius: 0.375rem;*/
/*    background: white;*/
/*    color: #6c757d;*/
/*    text-decoration: none;*/
/*}*/

/*.dataTables_wrapper .dataTables_paginate .paginate_button:hover {*/
/*    background: #e9ecef;*/
/*    border-color: #adb5bd;*/
/*    color: #495057;*/
/*}*/

/*.dataTables_wrapper .dataTables_paginate .paginate_button.current {*/
/*    background: #0d6efd;*/
/*    border-color: #0d6efd;*/
/*    color: white;*/
/*}*/

/*.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {*/
/*    color: #6c757d;*/
/*    background: #f8f9fa;*/
/*    border-color: #dee2e6;*/
/*    cursor: not-allowed;*/
/*}*/

/* Processing indicator */
.dataTables_wrapper .dataTables_processing {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    margin-left: -125px;
    margin-top: -25px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #transaction-history-table {
        font-size: 0.75rem;
    }

    #transaction-history-table thead th,
    #transaction-history-table tbody td {
        padding: 8px 4px;
    }

    .dataTables_wrapper .dataTables_length {
        margin-bottom: 1rem;
    }

    #transaction-type-filter {
        min-width: 120px;
        font-size: 0.75rem;
    }
}


/* resources/assets/css/custom.css veya uygun CSS dosyasına ekleyin */

/* Notification dropdown styling */
.notification-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-clickable:hover {
    background-color: #f8f9fa !important;
    text-decoration: none;
}

/* Small notification icons */
.media-body .fs-12px {
    font-size: 12px;
}

.media-body .fs-6px {
    font-size: 6px;
}

/* Notification badge improvements */
.navbar-item .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    line-height: 16px;
    font-size: 10px;
    border-radius: 50%;
}

/* Media list spacing for notifications */
.dropdown-menu.media-list .media {
    padding: 8px 15px;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-menu.media-list .media:last-child {
    border-bottom: none;
}

/*

.dashboard-stat-card {
    transition: transform 0.2s ease-in-out;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
}

.dashboard-metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.dashboard-table img {
    border: 1px solid #dee2e6;
}

.dashboard-empty-state {
    opacity: 0.6;
}

.dashboard-profit-positive {
    color: #198754 !important;
}

.dashboard-profit-negative {
    color: #dc3545 !important;
}

.dashboard-card-header {
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
}

!* Responsive adjustments for dashboard *!
@media (max-width: 768px) {
    .dashboard-metric-icon {
        font-size: 1.5rem;
    }

    .dashboard-table .table-responsive {
        font-size: 0.875rem;
    }
}
*/


/* Image Processing Styles */
#processingStatus .card {
    border: 1px solid #e3f2fd;
    background-color: #f8f9fa;
}

#processingStatus .card-header {
    background-color: #e3f2fd;
    border-bottom: 1px solid #bbdefb;
}

#processingResults .card {
    border: 1px solid #e8f5e8;
    background-color: #f8f9fa;
}

#processingResults .card-header {
    background-color: #e8f5e8;
    border-bottom: 1px solid #c8e6c9;
}

.list-group-item .file-name {
    font-weight: 500;
}

.list-group-item .processing-text {
    font-style: italic;
}

.progress {
    background-color: #e9ecef;
}

.progress-bar {
    background-color: #007bff;
    transition: width 0.3s ease;
}

/* File status badges */
.file-status .badge {
    font-size: 0.75rem;
}

/* Spinner styles */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Image preview in import table */
.import-table img {
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* Processing completion animation */
@keyframes pulse-success {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.processing-complete {
    animation: pulse-success 2s;
}

/* Loading overlay for modal */
.modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1060;
}

/* FilePond custom styling for better UX */
.filepond--panel-root {
    border-radius: 8px;
}

.filepond--drop-label {
    color: #6c757d;
}

/* Search results styling */
.product-search-result {
    transition: all 0.2s ease;
}

.product-search-result:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Import table responsive styling */
.table-responsive {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Error display styling */
.import-errors {
    animation: slideDown 0.3s ease;
}

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

/* Status indicator colors */
.text-processing {
    color: #007bff !important;
}

.text-completed {
    color: #28a745 !important;
}

.text-failed {
    color: #dc3545 !important;
}

/* Card count badge styling */
#cardCount {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Upload button styling */
#uploadBtn {
    min-width: 200px;
    font-weight: 600;
}

#uploadBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal responsive adjustments */
@media (max-width: 768px) {
    .modal-lg {
        max-width: 95%;
    }

    #processingFilesList .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }

    #processingFilesList .file-status {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}


/* Card Image Styles - Add to existing custom.css */

.card-img-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    padding: 15px;
}

#react-collection-grid .card-img {
    height: 330px !important;
}

.card-img {
    width: 244px;
    height: 340px;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}


/* Card overlay adjustments for new image structure */
.card-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    color: white;
}

.dropdown-toggle:after, .dropleft .dropdown-toggle:before, .dataTables_length + .dataTables_filter {
    margin-left: 1rem;
}

.dataTable {
    width: 100% !important;
}
