.aicc-calculator-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.aicc-calculator {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.aicc-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.aicc-form-group {
    margin-bottom: 20px;
}

.aicc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
    font-size: 14px;
}

.aicc-input, .aicc-textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.aicc-input:focus, .aicc-textarea:focus {
    outline: none;
    border-color: #007cba;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.2);
}

.aicc-textarea {
    resize: vertical;
    min-height: 100px;
}

/* Accordion */
.aicc-accordion {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.aicc-accordion-trigger {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.aicc-accordion-trigger:hover {
    background: rgba(255, 255, 255, 0.6);
}

.aicc-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.aicc-accordion.is-open .aicc-icon {
    transform: rotate(180deg);
}

.aicc-accordion-content {
    padding: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.aicc-token-live-count {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #007cba;
    text-align: right;
}

.aicc-button-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.aicc-button-group .aicc-btn {
    flex: 1;
}

/* Buttons */
.aicc-btn {
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.aicc-btn-primary {
    background-color: #007cba;
    color: #fff;
    width: 100%;
}

.aicc-btn-primary:hover {
    background-color: #005a87;
}

.aicc-btn-secondary {
    background-color: #e2e8f0;
    color: #475569;
}

.aicc-btn-secondary:hover {
    background-color: #cbd5e1;
}

.aicc-result-section {
    margin-top: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.aicc-total {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 16px;
}

.aicc-total span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-top: 8px;
}

.aicc-copy-msg {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #16a34a;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 480px) {
    .aicc-calculator-wrapper {
        padding: 1rem;
    }
    .aicc-button-group {
        flex-direction: column;
    }
}

/* Dark mode fallback if the theme is strictly dark */
@media (prefers-color-scheme: dark) {
    .aicc-calculator {
        background: rgba(0, 0, 0, 0.4);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    }
    .aicc-title, .aicc-form-group label, .aicc-accordion-trigger, .aicc-total {
        color: #e2e8f0;
    }
    .aicc-input, .aicc-textarea {
        background: rgba(0, 0, 0, 0.4);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    .aicc-input:focus, .aicc-textarea:focus {
        background: rgba(0, 0, 0, 0.6);
        color: #fff;
    }
    /* Fix for dropdown option visibility in dark mode */
    .aicc-input option {
        background-color: #2d3748; /* Solid dark color for options */
        color: #fff;
    }
    .aicc-accordion {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .aicc-accordion-content {
        border-top-color: rgba(255, 255, 255, 0.1);
    }
    .aicc-result-section {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .aicc-total span {
        color: #fff;
    }
}
