.nft-plugin-content {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333;
}

.nft-plugin-content details {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    background: white;
    border: 1px solid #ccd6f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nft-plugin-content summary {
    cursor: pointer;
    font-weight: bold;
    background-color: #2a3f5f;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

.nft-plugin-content summary::-webkit-details-marker {
    display: none;
}

.nft-plugin-content details[open] summary::after {
    content: "▼";
    float: right;
    color: #fff;
}

.nft-plugin-content details summary::after {
    content: "►";
    float: right;
    color: #fff;
}

.nft-plugin-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.nft-plugin-content th {
    background-color: #2a3f5f;
    color: #ffffff;
    font-size: 18px;
    border-bottom: 2px solid #405c7d;
    padding: 15px 10px;
}

.nft-plugin-content td {
    font-size: 16px;
    background-color: #fff;
    color: #333;
    border-bottom: 1px solid #ccd6f6;
    padding: 10px;
}

.nft-plugin-content a {
    color: #2979ff;
    text-decoration: none;
}
.nft-plugin-content a:hover {
    text-decoration: underline;
}

/* Style for form elements within the plugin content */
.nft-plugin-content form {
    margin-top: 20px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.nft-plugin-content label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.nft-plugin-content select,
.nft-plugin-content input[type="text"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccd6f6;
    border-radius: 4px;
}

.nft-plugin-content input[type="submit"] {
    background-color: #f80000; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
}

.nft-plugin-content input[type="submit"]:hover {
    background-color: #45a049;
}

/* Additional styles for tables displaying NFT data */
.nft-plugin-content table.nft-data-table {
    background-color: #f9f9f9;
    margin-top: 20px;
    width: 100%;
    border-spacing: 0;
}

.nft-plugin-content table.nft-data-table th,
.nft-plugin-content table.nft-data-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.nft-plugin-content table.nft-data-table th {
    background-color: #2a3f5f;
    color: white;
}

.nft-plugin-content table.nft-data-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.nft-plugin-content table.nft-data-table tr:hover {
    background-color: #ddd;
}

/* Hide the default WooCommerce loader icon */
.woocommerce .blockUI.blockOverlay:before {
    display: none !important; /* Important to ensure it overrides any inline styles */
}

/* Alternatively, if the loader is part of a background or pseudo-element */
.woocommerce .blockUI.blockOverlay {
    background-image: none !important; /* Remove background spinner */
}

#custom-loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #b8860b;
    text-align: center;
    padding: 20px;
}

#custom-loader .custom-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3); /* Light grey border */
    border-top: 8px solid #b8860b; /* White border for the top side */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#custom-loader span {
    font-size: 24px;
    margin-top: 10px;
    display: block;
}

/* Survey Statistics Styles */
.survey-stats {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.survey-stats h3 {
    color: #2c3338;
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f1;
}

.survey-stats h4 {
    color: #1d2327;
    font-size: 1.2em;
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e2e4e7;
}

.stat-section {
    margin-bottom: 30px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    clear: both;
}

.stat-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    clear: both;
}

.stat-table th {
    background-color: #2a3f5f;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #1d2d47;
}

.stat-table td {
    padding: 12px 15px;
    border: 1px solid #e2e4e7;
    text-align: left;
    vertical-align: top;
}

/* Adjust column widths */
.stat-table th:first-child,
.stat-table td:first-child {
    width: 60%;
}

.stat-table th:nth-child(2),
.stat-table td:nth-child(2),
.stat-table th:last-child,
.stat-table td:last-child {
    width: 20%;
    text-align: center;
}

/* Keep long text from breaking layout */
.stat-table td:first-child {
    word-wrap: break-word;
    min-width: 200px;
}

/* Responsive table */
@media screen and (max-width: 768px) {
    .stat-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .survey-stats {
        padding: 10px;
    }
    
    .stat-section {
        padding: 10px;
    }
}

/* Optional: Animation for hover effects */
.stat-section {
    transition: transform 0.2s ease;
}

.stat-section:hover {
    transform: translateY(-2px);
}

/* Optional: Print styles */
@media print {
    .survey-stats {
        box-shadow: none;
    }
    
    .stat-table th,
    .stat-table td {
        border: 1px solid #000;
    }
    
    .stat-section {
        page-break-inside: avoid;
    }
}
