* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../antik/hatter.jpg') center/cover fixed;
    color: #fff;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: -1;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 70px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.3s ease;
}

.sidebar:hover {
    width: 240px;
}

.sidebar.collapsed .nav-item span {
    opacity: 0;
    pointer-events: none;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    flex-direction: column;
    gap: 8px;
}

.sidebar .nav-item span {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar:hover .nav-item span {
    opacity: 1;
    pointer-events: auto;
}

.sidebar .user-details {
    display: none;
}

.sidebar:hover .user-details {
    display: block;
}

.sidebar .sidebar-footer {
    flex-direction: column;
    gap: 8px;
}

.sidebar:hover .sidebar-footer {
    flex-direction: row;
    gap: 10px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: rgba(255, 255, 255, 1);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
    padding-bottom: 100px; /* Space for footer */
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.nav-item i {
    font-size: 20px;
    min-width: 40px;
}

.nav-item span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* Main Content */
.main-content {
    margin-left: 100px;
    margin-right: auto;
    padding: 30px;
    min-height: 100vh;
    max-width: calc(100vw - 100px - 60px);
}

.page {
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.page.active {
    display: block;
}

/* Dashboard Header Wrapper */
.dashboard-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.header-spacer {
    flex: 0 0 auto;
    width: 400px;
}

.page-header {
    text-align: center;
    flex: 1;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* Fun Fact Widget */
.fun-fact-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    transition: all 0.3s;
    flex: 0 0 auto;
    max-width: 400px;
}

.fun-fact-widget:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
}

.fun-fact-widget .fun-fact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFC107;
    font-size: 18px;
    flex-shrink: 0;
}

.fun-fact-widget .fun-fact-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
    flex: 1;
}

@media (max-width: 1024px) {
    .dashboard-header-wrapper {
        flex-direction: column;
    }
    
    .header-spacer {
        display: none;
    }
    
    .fun-fact-widget {
        max-width: 100%;
    }
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Antik Grid */
/* Antik Grid */
.antik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    box-sizing: border-box;
}

.antik-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.antik-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.antik-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.antik-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.antik-info {
    flex: 1;
    min-width: 0;
}

.antik-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.antik-price {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 700;
}

.antik-weight {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.antik-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.antik-controls button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.antik-controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
}

.antik-controls input {
    width: 50px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    padding: 6px;
    font-size: 14px;
}

/* Smart Search */
.smart-search-container {
    margin-bottom: 25px;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
}

.search-input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s;
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(30, 30, 30, 0.9);
}

.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 400px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    margin-top: 5px;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-result-item.selected {
    background: rgba(76, 175, 80, 0.3);
    border-left: 3px solid #4caf50;
}

.search-result-item .antik-icon {
    width: 40px;
    height: 40px;
}

.search-result-item .antik-icon img {
    width: 40px;
    height: 40px;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.search-result-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Quick Add Modal */
.quick-add-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.quick-add-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-add-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.quick-add-content .antik-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.quick-add-content .antik-icon img {
    width: 80px;
    height: 80px;
}

.quick-add-content h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 20px;
}

.quick-add-content .price {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
    font-size: 16px;
}

.quick-add-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.quick-add-quantity button {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-add-quantity button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.quick-add-quantity input {
    width: 80px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.quick-add-buttons {
    display: flex;
    gap: 10px;
}

.quick-add-buttons button {
    flex: 1;
}
.controls-container {
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    max-width: 100%;
    box-sizing: border-box;
}

.controls-top {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 20px;
    flex-wrap: wrap;
}

.calc-summary {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.calc-summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calc-summary-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.calc-summary-value {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-input-group label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.price-input-group input {
    width: 150px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.price-input-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.slider-container {
    flex: 1;
}

.slider-container label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.slider-container label span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 8px;
    cursor: pointer;
    position: relative;
}

.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(255, 255, 255, 0.4) var(--slider-percent, 100%), 
        rgba(255, 255, 255, 0.15) var(--slider-percent, 100%), 
        rgba(255, 255, 255, 0.15) 100%);
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.15);
}

.slider::-moz-range-progress {
    height: 8px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.4);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    margin-top: -8px;
}

.slider::-webkit-slider-thumb:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.slider::-webkit-slider-thumb:active {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.slider::-moz-range-thumb:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.slider::-moz-range-thumb:active {
    transform: scale(1.15);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 5px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: rgba(100, 150, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(100, 150, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(100, 150, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 150, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 100, 100, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 100, 100, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 100, 100, 0.2);
}

.btn-success {
    background: rgba(100, 200, 100, 0.15);
    color: #fff;
    border: 1px solid rgba(100, 200, 100, 0.3);
}

.btn-success:hover {
    background: rgba(100, 200, 100, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(100, 200, 100, 0.2);
}

.btn-danger {
    background: rgba(255, 80, 80, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 80, 80, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 80, 80, 0.2);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.inventory-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.inventory-card .antik-icon {
    margin: 0 auto 15px;
}

.inventory-card .antik-name {
    font-size: 14px;
    margin-bottom: 10px;
}

.inventory-quantity {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    margin-bottom: 5px;
}

.inventory-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Compact Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.stat-compact {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.stat-compact:hover {
    background: rgba(30, 30, 30, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-compact.highlight {
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.stat-compact i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    min-width: 30px;
}

.stat-compact-label {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
}

.stat-compact-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Time Period Selector */
.time-period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.period-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.period-btn.active {
    background: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.4);
    color: rgba(255, 255, 255, 1);
}

/* Compact Charts Grid */
.charts-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.chart-container-compact {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 18px;
    min-height: 280px;
}

.chart-container-compact canvas {
    max-height: 220px;
}

.chart-container-compact .chart-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chart-container-compact .chart-title i {
    color: rgba(255, 255, 255, 0.6);
}

/* Activity Heatmap */
#activityHeatmap {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    padding: 10px 0;
}

.heatmap-cell {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
}

.heatmap-cell:hover {
    transform: scale(1.1);
    z-index: 10;
}

.heatmap-cell.level-0 { background: rgba(255, 255, 255, 0.05); }
.heatmap-cell.level-1 { background: rgba(0, 123, 255, 0.2); }
.heatmap-cell.level-2 { background: rgba(0, 123, 255, 0.4); }
.heatmap-cell.level-3 { background: rgba(0, 123, 255, 0.6); }
.heatmap-cell.level-4 { background: rgba(0, 123, 255, 0.8); }
.heatmap-cell.level-5 { background: rgba(0, 123, 255, 1); }

.heatmap-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.heatmap-cell:hover .heatmap-tooltip {
    opacity: 1;
}

/* Insights Section */
.insights-section {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.insights-section h3 {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.insights-section h3 i {
    color: #fbbf24;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 12px 15px;
    display: flex;
    align-items: start;
    gap: 10px;
}

.insight-card i {
    font-size: 18px;
    margin-top: 2px;
}

.insight-card.positive i { color: #4ade80; }
.insight-card.negative i { color: #f87171; }
.insight-card.neutral i { color: #60a5fa; }

.insight-content {
    flex: 1;
}

.insight-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.insight-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.stat-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-card-icon.red {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.stat-card-icon.green {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.stat-card-icon.blue {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.stat-card-content h3 {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.history-type {
    font-size: 16px;
    font-weight: 600;
}

.history-type.purchase {
    color: #dc3545;
}

.history-type.sale {
    color: #28a745;
}

.history-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.history-items {
    margin-bottom: 15px;
}

.history-item-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

.history-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 0;
    overflow-y: auto;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.close {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input[type="number"],
.form-group input[type="text"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    font-family: monospace;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#parsed-items {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
}


.calc-buttons {
    display: flex;
    gap: 10px;
}

.calc-buttons button {
    min-width: 150px;
}


/* Modal Large */
.modal-large {
    max-width: 700px;
    height: auto;
    max-height: none;
}

.modal-large .modal-body {
    max-height: none;
    overflow: visible;
    flex: 1;
    min-height: 400px;
}

/* Manual Add Items */
.manual-item-row {
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    position: relative;
}

.manual-item-content {
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-select-wrapper {
    flex: 1;
}

.custom-select {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select.open .custom-select-trigger {
    border-color: rgba(255, 255, 255, 0.4);
}

.custom-select-trigger span {
    color: #fff;
    font-size: 14px;
}

.custom-select-trigger i {
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger i {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-option img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.option-info {
    flex: 1;
}

.option-name {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 2px;
}

.option-price {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.manual-item-inputs {
    display: flex;
    gap: 8px;
}

.manual-item-inputs input {
    width: 80px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.manual-item-inputs input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.btn-remove {
    width: 35px;
    height: 35px;
    padding: 0;
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    border-radius: 8px;
    color: rgba(255, 100, 100, 0.9);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove:hover {
    background: rgba(255, 80, 80, 0.25);
    transform: scale(1.05);
}


.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    min-width: auto;
}


/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    animation: slideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: currentColor;
}

.toast.success {
    color: #4ade80;
    border-left-color: #4ade80;
}

.toast.error {
    color: #f87171;
    border-left-color: #f87171;
}

.toast.info {
    color: #60a5fa;
    border-left-color: #60a5fa;
}

.toast.warning {
    color: #fbbf24;
    border-left-color: #fbbf24;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
    color: #fff;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.toast-close {
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.toast.removing {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Inventory selection controls */
.inventory-select-row {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.inventory-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.inventory-checkbox:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(76, 175, 80, 0.5);
}

.inventory-checkbox:checked {
    background: rgba(76, 175, 80, 0.3);
    border-color: rgba(76, 175, 80, 0.8);
}

.inventory-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #4CAF50;
    font-size: 16px;
    font-weight: bold;
}

.inventory-sell-qty {
    width: 60px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 13px;
    text-align: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.inventory-sell-qty:focus {
    outline: none;
    border-color: rgba(76, 175, 80, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.inventory-card {
    position: relative;
}

/* User Info in Sidebar */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 59, 48, 0.8);
}

/* Admin Panel */
.admin-users-list {
    display: grid;
    gap: 20px;
}

.admin-user-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-info {
    flex: 1;
}

.admin-user-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.admin-user-id {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.admin-stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

.admin-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.admin-inventory-preview {
    margin-top: 15px;
}

.admin-inventory-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.admin-inventory-items {
    display: grid;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.admin-inventory-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 13px;
}

.admin-inventory-item-name {
    color: rgba(255, 255, 255, 0.9);
}

.admin-inventory-item-qty {
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar-nav {
        padding-bottom: 120px;
    }
    
    .nav-item span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
        padding: 20px 30px 20px 20px;
    }
    
    .antik-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .antik-card {
        padding: 8px;
        gap: 8px;
    }
    
    .antik-icon,
    .antik-icon img {
        width: 40px;
        height: 40px;
    }
    
    .antik-name {
        font-size: 12px;
    }
    
    .antik-price {
        font-size: 13px;
    }
    
    .controls-container {
        padding: 15px;
    }
    
    .controls-top {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .controls-bottom {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calc-summary {
        gap: 15px;
        justify-content: space-between;
    }
    
    .calc-summary-value {
        font-size: 18px;
    }
    
    .calc-buttons {
        display: flex;
        gap: 10px;
        width: 100%;
    }
    
    .calc-buttons button {
        flex: 1;
    }
    
    .sidebar-footer {
        padding: 10px;
        flex-direction: column;
        gap: 8px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }
    
    .user-details {
        display: none;
    }

    .user-name {
        font-size: 12px;
    }

    .user-role {
        font-size: 10px;
    }

    .logout-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .antik-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chart-container {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: center;
}

.stat-card-icon.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Profit Calculator */
.profit-calc-header {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.calc-select,
.calc-input {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 14px;
}

.calc-select option {
    background: #1a1a1a;
    color: white;
}

.profit-calc-items {
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.profit-calc-item {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px 120px 120px 40px;
    gap: 15px;
    align-items: center;
}

.profit-calc-item-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profit-calc-item-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.profit-calc-item-name {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.profit-calc-item-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profit-calc-item-input label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.profit-calc-item-input input {
    width: 100%;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 14px;
}

.profit-calc-item-remove {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.profit-calc-item-remove:hover {
    background: rgba(220, 53, 69, 0.4);
}

.profit-calc-summary {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
}

.profit-calc-summary h3 {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.calc-summary-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-summary-item.highlight {
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
}

.calc-summary-label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.calc-summary-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: white;
}

@media (max-width: 1200px) {
    .profit-calc-item {
        grid-template-columns: 50px 1fr 100px 100px 100px 100px 40px;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .profit-calc-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .profit-calc-item-icon {
        margin: 0 auto;
    }
    
    .calc-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== DASHBOARD STYLES ===== */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.stat-change {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.dashboard-section {
    margin-bottom: 30px;
}

.dashboard-section h2 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.dashboard-section h2 i {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.market-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
}

.market-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.market-item-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
}

.market-item-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.market-item-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.activity-feed {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-icon.buy {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.15);
}

.activity-icon.sell {
    color: #2196F3;
    background: rgba(33, 150, 243, 0.15);
}

.activity-icon.milestone {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.15);
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2px;
}

.activity-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.fun-fact {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.fun-fact-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-style: italic;
}

.fun-fact-icon {
    font-size: 32px;
    color: #FFC107;
    margin-bottom: 12px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

@media (max-width: 768px) {
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}

/* Creator Badge */
.creator-badge {
    position: fixed;
    bottom: 5px;
    right: 10px;
    z-index: 999;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.creator-badge:hover {
    opacity: 1;
    transform: scale(1.1);
}

.creator-badge img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    display: block;
}

/* Quick Calculator */
.quick-calc-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.quick-calc-toggle:hover {
    background: rgba(40, 40, 40, 1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.quick-calc-toggle i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.quick-calc-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    background: rgba(30, 30, 30, 0.98);
    border-radius: 12px;
    padding: 15px;
    z-index: 1002;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.quick-calc-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.quick-calc-panel.pinned {
    opacity: 1;
    pointer-events: auto;
}

.quick-calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
    user-select: none;
}

.quick-calc-header span {
    font-weight: 600;
    color: white;
    font-size: 16px;
}

.calc-header-buttons {
    display: flex;
    gap: 5px;
}

.calc-pin,
.calc-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.calc-pin:hover,
.calc-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.calc-pin.pinned {
    color: #FFC107;
    background: rgba(255, 193, 7, 0.2);
}

.calc-pin.pinned:hover {
    background: rgba(255, 193, 7, 0.3);
}

.quick-calc-expression {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    text-align: right;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: 'Courier New', monospace;
}

.quick-calc-display {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    text-align: right;
    font-size: 28px;
    font-weight: 600;
    color: white;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    word-break: break-all;
    font-family: 'Courier New', monospace;
}

.quick-calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calc-btn {
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.calc-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.calc-btn:active {
    transform: scale(0.95);
}

.calc-clear {
    background: rgba(255, 82, 82, 0.3);
    border: 1px solid rgba(255, 82, 82, 0.5);
}

.calc-clear:hover {
    background: rgba(255, 82, 82, 0.5);
}

.calc-operator {
    background: rgba(255, 193, 7, 0.3);
    border: 1px solid rgba(255, 193, 7, 0.5);
}

.calc-operator:hover {
    background: rgba(255, 193, 7, 0.5);
}

.calc-equals {
    background: rgba(76, 175, 80, 0.3);
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.calc-equals:hover {
    background: rgba(76, 175, 80, 0.5);
}

.calc-percent {
    background: rgba(33, 150, 243, 0.3);
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.calc-percent:hover {
    background: rgba(33, 150, 243, 0.5);
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox .checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: all 0.3s;
}

.custom-checkbox:hover .checkmark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.custom-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input[type="checkbox"]:checked ~ .checkmark:after {
    display: block;
}

.custom-checkbox .checkbox-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

/* Top Traders Grid */
.top-traders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 15px;
}

.trader-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s;
}

.trader-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.trader-rank {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    min-width: 30px;
    text-align: center;
}

.trader-rank.top-1 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.trader-rank.top-2 {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.trader-rank.top-3 {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.trader-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.trader-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trader-info {
    flex: 1;
    min-width: 0;
}

.trader-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3px;
}

.trader-ic-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.trader-phone {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.trader-phone i {
    font-size: 10px;
}

.trader-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
    margin-top: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trader-stats {
    text-align: right;
    flex-shrink: 0;
}

.trader-volume {
    font-size: 14px;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 3px;
}

.trader-volume::before {
    content: 'Forgalom: ';
    font-size: 10px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: 2px;
}

.trader-transactions {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}



.user-info {
    transition: all 0.3s;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

/* Admin Transactions */
.admin-transactions-preview {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-transactions-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
}

.admin-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.admin-transactions-list::-webkit-scrollbar {
    width: 6px;
}

.admin-transactions-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.admin-transactions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.admin-transactions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.admin-transaction-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.admin-transaction-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.admin-transaction-info {
    flex: 1;
    min-width: 0;
}

.admin-transaction-type {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.admin-transaction-date {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.admin-transaction-amount {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-right: 10px;
}

.admin-transaction-delete {
    background: rgba(255, 82, 82, 0.2);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    cursor: pointer;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-transaction-delete:hover {
    background: rgba(255, 82, 82, 0.3);
    border-color: rgba(255, 82, 82, 0.5);
}

.admin-transactions-more {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    padding: 8px;
    font-style: italic;
}
