body {
    background: #000 !important;
    color: #fff !important;
}

.vendor-dashboard-container {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    background: #000;
    color: #fff;
}

.vendor-header {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.05);
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.vendor-header-left {
    flex: 1;
    min-width: 250px;
}

.vendor-header-right {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.vendor-welcome-name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 0 0 5px 0;
}

.vendor-email {
    font-size: 16px;
    color: #aaa;
    margin: 0 0 10px 0;
}

.vendor-rewards-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sgs-rewards-badge {
    background-color: #E0A415;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.question-mark-icon {
    width: 20px;
    height: 20px;
    background: #d63638;
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: help;
    font-size: 12px;
}

.rewards-amount {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.vendor-btn {
    padding: 12px 24px;
    border: 1px solid #E0A415;
    background: #1a1a1a;
    color: #E0A415;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.vendor-btn:hover,
.vendor-btn:focus {
    background: #E0A415;
    color: #ffffff;
    box-shadow: 0 4px 12px rgb(214 205 54 / 40%);
}

.vendor-btn.active {
    background: #E0A415;
    color: #ffffff;
}

.vendor-btn svg {
    width: 18px;
    height: 18px;
}

.vendor-content-section {
    display: none;
    background: #1a1a1a;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(255,255,255,0.05);
    border: 1px solid #333;
    min-height: 400px;
    color: #fff;
}

.vendor-content-section.active {
    display: block;
}

.vendor-content-section h3 {
    color: #fff;
}

.vendor-history-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
}

.vendor-history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    background: #000;
}

.vendor-history-table th,
.vendor-history-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #333;
    color: #fff;
}

.vendor-history-table td:nth-child(3) {
    /* Allow email to wrap */
    white-space: normal;
    max-width: 200px;
    word-break: break-word;
}

.vendor-history-table th {
    background: #252525;
    font-weight: 600;
    color: #fff;
    position: sticky;
    top: 0;
    border-bottom: 2px solid #444;
}

.vendor-history-table tr:hover {
    background: #252525;
}

.vendor-history-table code {
    background: #333;
    color: #fff;
}

.qr-scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 20px 0;
}

.no-history-message {
    text-align: center;
    padding: 40px;
    color: #aaa;
}

.no-history-message p {
    font-size: 16px;
    margin: 10px 0;
    color: #aaa;
}

.vendor-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    flex-wrap: wrap;
}

.vendor-pagination-btn {
    padding: 10px 20px;
    border: 1px solid #E0A415;
    background: #1a1a1a;
    color: #E0A415;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.vendor-pagination-btn:hover:not(.disabled) {
    background: #E0A415;
    color: #000;
    border-color: #E0A415;
}

.vendor-pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #666;
    color: #666;
}

.vendor-pagination-info {
    color: #fff;
    font-size: 14px;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .vendor-dashboard-container {
        width: 100%;
        padding: 10px;
    }
    
    .vendor-header {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .vendor-header-right {
        width: 100%;
        flex-direction: column;
    }
    
    .vendor-btn {
        width: 100%;
        justify-content: center;
    }
    
    .vendor-welcome-name {
        font-size: 20px;
    }
    
    .vendor-email {
        font-size: 14px;
    }
    
    .vendor-content-section {
        padding: 15px;
        overflow-x: hidden;
    }
    
    .vendor-history-table-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        padding: 0 15px;
    }
    
    .vendor-history-table {
        font-size: 13px;
        min-width: 550px;
    }
    
    .vendor-history-table th,
    .vendor-history-table td {
        padding: 8px 6px;
        font-size: 13px;
    }
    
    .vendor-history-table td:nth-child(3) {
        max-width: 150px;
        font-size: 12px;
    }
    
    .vendor-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .vendor-pagination-btn {
        width: 100%;
        text-align: center;
    }
    
    .vendor-pagination-info {
        order: -1;
        text-align: center;
        width: 100%;
        padding: 0;
    }
}

