/* Wholesaler Portal Specific Styles */
.welcome-section {
    margin: 15px;
    padding: 20px;
}

.pricing-section {
    margin: 15px;
    padding: 20px;
}

.order-history-section {
    margin: 15px;
    padding: 20px;
}

/* Pricing Table Styles */
.pricing-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    color: #FFFFFF;
    font-family: "Calisto MT", "Times New Roman", Times, serif;
}

.user-table th,
.user-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid #555;
}

.user-table th {
    background-color: #004160;
    font-weight: bold;
    font-size: 1.1em;
}

.user-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Calculator Section */
.calculator-section {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 10px;
}

.calculator-form {
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

#testQuantity {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 1em;
    width: 150px;
}

.action-button {
    background-color: #004160;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Calisto MT", "Times New Roman", Times, serif;
    font-size: 1em;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.action-button:hover {
    background-color: #015277;
}

.calculation-results {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.calculation-details {
    margin-bottom: 15px;
}

.calculation-details p {
    margin: 8px 0;
    font-size: 1.1em;
    color: #FFFFFF;
}


/* Error Messages */
.error {
    color: #ff6b6b;
    margin: 10px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .calculator-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    #testQuantity {
        width: calc(100% - 24px);
    }
    
    .action-button {
        width: 100%;
    }
    
    .user-table {
        font-size: 0.9em;
    }
    
    .user-table th,
    .user-table td {
        padding: 8px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 960px) {
    #purchase_container {
        top: 33px;
        overflow: hidden;
        display: none; /* Keep existing behavior of hiding on mobile */
    }
}