/* Container */
.product-barcode-dashboard-container {
    padding: 15px;
    margin: 0 auto;
}

/* Header */
.product-barcode-dashboard-header {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #3b3b41;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.product-barcode-dashboard-title {
    font-size: 1.4rem;
    color: #797bf2;
    font-weight: bold;
}

.product-barcode-dashboard-view-toggle {
    display: flex;
    margin: 20px 0;
    gap: 0;
    overflow: hidden;
    background: #323236;
    width: fit-content;
}

.product-barcode-dashboard-subtitle {
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Controls */
.product-barcode-dashboard-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.product-barcode-dashboard-search {
    padding: 6px 10px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    background: #323236;
    color: #fff;
    font-size: 0.85rem;
    width: 250px;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-search:focus {
        outline: none;
        border-color: #797bf2;
        box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
    }

.product-barcode-dashboard-btn {
    padding: 8px 16px;
    background: #797bf2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* View Toggle Styles - EKLE */
.product-barcode-dashboard-view-toggle {
    display: flex;
    margin-bottom: 20px;
    gap: 0;
    border: 2px #3b3b41;
    border-radius: 6px;
    overflow: hidden;
    background: #323236;
}

.product-barcode-dashboard-view-btn {
    padding: 8px 16px;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px #3b3b41;
    border-radius: 6px;
}

    .product-barcode-dashboard-view-btn:last-child {
        border-right: none;
    }

    .product-barcode-dashboard-view-btn.active {
        background: #797bf2;
        color: white;
    }

    .product-barcode-dashboard-view-btn:hover:not(.active) {
        background: rgba(121, 123, 242, 0.1);
        color: #797bf2;
    }

/* Summary View Styles - EKLE */
.product-barcode-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.product-barcode-dashboard-summary-card {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #3b3b41;
    cursor: pointer;
}

    .product-barcode-dashboard-summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        border-color: #797bf2;
    }

.product-barcode-dashboard-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-barcode-dashboard-summary-title {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    flex: 1;
}

.product-barcode-dashboard-summary-status {
    flex-shrink: 0;
    margin-left: 10px;
}

.product-barcode-dashboard-summary-code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #797bf2;
    margin-bottom: 10px;
    background: rgba(121, 123, 242, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-barcode-dashboard-summary-barcode {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-barcode-dashboard-summary-barcode-visual {
    width: 30px;
    height: 15px;
    background: linear-gradient(90deg, #000 2px, transparent 2px, transparent 4px, #000 4px, #000 6px, transparent 6px, transparent 8px, #000 8px);
    background-size: 8px 100%;
    border: 1px solid #555;
    border-radius: 2px;
}

.product-barcode-dashboard-summary-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #ccc;
}

.product-barcode-dashboard-summary-date {
    color: #999;
}

/* View State Classes - EKLE */
.product-barcode-dashboard-detail-view {
    display: block;
}

.product-barcode-dashboard-summary-view {
    display: none;
}

.product-barcode-dashboard-container.summary-mode .product-barcode-dashboard-detail-view {
    display: none;
}

.product-barcode-dashboard-container.summary-mode .product-barcode-dashboard-summary-view {
    display: block;
}

.product-barcode-dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(121, 123, 242, 0.4);
}

.product-barcode-dashboard-btn-danger {
    background: #ef4444;
}

.product-barcode-dashboard-btn-warning {
    background: #f59e0b;
}

/* Stats Cards */
.product-barcode-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.product-barcode-dashboard-stat-card {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #3b3b41;
    position: relative;
    text-align: center;
}

    .product-barcode-dashboard-stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

.product-barcode-dashboard-stat-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.2rem;
    opacity: 0.7;
}

.product-barcode-dashboard-stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #797bf2;
    margin-bottom: 5px;
}

.product-barcode-dashboard-stat-label {
    color: #ccc;
    font-size: 0.9rem;
}

.product-barcode-dashboard-stat-trend {
    font-size: 0.8rem;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
}

.product-barcode-dashboard-trend-up {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.product-barcode-dashboard-trend-down {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.product-barcode-dashboard-container.summary-mode .product-barcode-dashboard-charts-grid {
    display: none;
}

/* Main Grid */
.product-barcode-dashboard-main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 15px;
    margin-bottom: 20px;
}

.product-barcode-dashboard-left-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-barcode-dashboard-right-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Charts */
.product-barcode-dashboard-chart-card {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #3b3b41;
    position: relative;
}

.product-barcode-dashboard-chart-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-barcode-dashboard-chart-container {
    height: 300px;
    position: relative;
}

/* Filters */
.product-barcode-dashboard-filters {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #3b3b41;
}

.product-barcode-dashboard-filter-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0;
    font-weight: 600;
    grid-column: 1;
    align-self: center;
}

.product-barcode-dashboard-filter-group {
    min-width: 150px;
    flex: 1;
}

.product-barcode-dashboard-filter-title {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
    width: 100%;
}

.product-barcode-dashboard-filter-label {
    display: block;
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.product-barcode-dashboard-select {
    width: 100%;
    padding: 6px 10px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    background: #323236;
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-select:focus {
        outline: none;
        border-color: #797bf2;
        box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
    }

/* Data Table */
.product-barcode-dashboard-table-card {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #3b3b41;
    margin-top: 20px;
}

.product-barcode-dashboard-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.product-barcode-dashboard-table-title {
    font-size: 1rem;
    color: #fff;
    font-weight: 600;
}

.product-barcode-dashboard-table-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.product-barcode-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .product-barcode-dashboard-table th,
    .product-barcode-dashboard-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #3b3b41;
    }

    .product-barcode-dashboard-table th {
        background: rgba(121, 123, 242, 0.1);
        color: #797bf2;
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .product-barcode-dashboard-table td {
        color: #ccc;
        font-size: 0.85rem;
    }

    .product-barcode-dashboard-table tr:hover {
        background: rgba(121, 123, 242, 0.05);
    }

/* Barcode Display */
.product-barcode-dashboard-barcode {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(121, 123, 242, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-barcode:hover {
        background: rgba(121, 123, 242, 0.2);
        transform: scale(1.05);
    }

.product-barcode-dashboard-barcode-visual {
    width: 40px;
    height: 20px;
    background: linear-gradient(90deg, #000 2px, transparent 2px, transparent 4px, #000 4px, #000 6px, transparent 6px, transparent 8px, #000 8px);
    background-size: 12px 100%;
    border: 1px solid #555;
    border-radius: 2px;
}

/* Status Badges */
.product-barcode-dashboard-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-barcode-dashboard-status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.product-barcode-dashboard-status-inactive {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
}

.product-barcode-dashboard-status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

/* Summary View Styles - GÜNCELLE */
.product-barcode-dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.product-barcode-dashboard-summary-card {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid #3b3b41;
    cursor: pointer;
    position: relative;
    min-height: 160px;
}

    .product-barcode-dashboard-summary-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
        border-color: #797bf2;
    }

.product-barcode-dashboard-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-barcode-dashboard-summary-title {
    font-size: 0.95rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    flex: 1;
    margin-right: 8px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-barcode-dashboard-summary-status {
    flex-shrink: 0;
}

.product-barcode-dashboard-summary-code {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #797bf2;
    margin-bottom: 12px;
    background: rgba(121, 123, 242, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-barcode-dashboard-summary-barcode {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.product-barcode-dashboard-summary-barcode-visual {
    width: 35px;
    height: 18px;
    background: linear-gradient(90deg, #000 2px, #fff 2px, #fff 4px, #000 4px, #000 6px, #fff 6px, #fff 8px, #000 8px);
    background-size: 8px 100%;
    border: 1px solid #555;
    border-radius: 2px;
    flex-shrink: 0;
}

.product-barcode-dashboard-summary-barcode-text {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #e5e5e5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-barcode-dashboard-summary-no-barcode {
    color: #f59e0b;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    padding: 8px;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 6px;
    border: 1px dashed rgba(245, 158, 11, 0.3);
}

.product-barcode-dashboard-summary-info {
    position: absolute;
    bottom: 12px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #999;
}

.product-barcode-dashboard-summary-creator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-barcode-dashboard-summary-date {
    color: #777;
}

/* Action Buttons */
.product-barcode-dashboard-action-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    margin: 0 2px;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-action-btn:hover {
        transform: translateY(-1px);
    }

.product-barcode-dashboard-action-assign {
    background: #10b981;
    color: white;
}

.product-barcode-dashboard-action-edit {
    background: #3b82f6;
    color: white;
}

.product-barcode-dashboard-action-delete {
    background: #ef4444;
    color: white;
}

/* Modal Styles */
.product-barcode-dashboard-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-barcode-dashboard-detail-modal {
    display: none;
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-barcode-dashboard-modal-content {
    background: #323236;
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    /* 500px'den 700px'e çıkarın */
    border: 1px solid #3b3b41;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.product-barcode-dashboard-modal-header {
    margin-bottom: 20px;
}

.product-barcode-dashboard-modal-title {
    font-size: 1.3rem;
    color: #797bf2;
    font-weight: bold;
}

.product-barcode-dashboard-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-modal-close:hover {
        color: #ef4444;
        transform: scale(1.1);
    }

.product-barcode-dashboard-form-group {
    margin-bottom: 20px;
}

.product-barcode-dashboard-form-label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-barcode-dashboard-form-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #3b3b41;
    border-radius: 6px;
    background: #323236;
    color: #fff;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .product-barcode-dashboard-form-input:focus {
        outline: none;
        border-color: #797bf2;
        box-shadow: 0 0 0 3px rgba(121, 123, 242, 0.2);
    }

.product-barcode-dashboard-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-barcode-dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .product-barcode-dashboard-right-panel {
        order: -1;
    }
}

@media (max-width: 768px) {
    .product-barcode-dashboard-container {
        padding: 10px;
    }

    .product-barcode-dashboard-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .product-barcode-dashboard-controls {
        justify-content: center;
        margin-top: 15px;
    }

    .product-barcode-dashboard-search {
        width: 100%;
        max-width: 300px;
    }

    .product-barcode-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .product-barcode-dashboard-table-header {
        flex-direction: column;
        align-items: stretch;
    }

    .product-barcode-dashboard-table-actions {
        justify-content: center;
    }

    .product-barcode-dashboard-table {
        font-size: 0.8rem;
    }

        .product-barcode-dashboard-table th,
        .product-barcode-dashboard-table td {
            padding: 8px;
        }
}

/* Loading States */
.product-barcode-dashboard-loading {
    text-align: center;
    padding: 40px;
    color: #ccc;
}

.product-barcode-dashboard-spinner {
    border: 3px solid #3b3b41;
    border-top: 3px solid #797bf2;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.product-barcode-dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* Responsive için ekle */
@media (max-width: 768px) {
    .product-barcode-dashboard-charts-grid {
        grid-template-columns: 1fr;
    }
}

.product-barcode-dashboard-filters-horizontal {
    background: rgba(59, 59, 65, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #3b3b41;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.product-barcode-dashboard-summary-barcode-image {
    text-align: center;
    margin: 10px 0;
    padding: 5px;
}

    .product-barcode-dashboard-summary-barcode-image img {
        max-width: 100px; /* Mevcut boyutun 2 katı */
        height: auto;
        display: block;
        margin: 0 auto;
    }
.product-barcode-dashboard-summary-barcode-visual {
    width: 40px;
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}