.cc-app {
    max-width: 850px;
    margin: 32px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

.cc-title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 24px;
    color: #333;
}

.cc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 100px;
    align-items: center;
    justify-content: center;
}

.cc-toolbar button {
    padding: 8px 10px;
    border: none;
    border-radius: 4px;
    background: #1b6be1;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: transform 0.1s ease;
    /* Add for smooth click effect */
}

.cc-toolbar button:hover,
.cc-toolbar button:focus {
    background: #1b6be1;
    /* Keep original background color */
    color: #fff;
    outline: none;
    box-shadow: none;
}

.cc-toolbar button:active {
    transform: scale(0.97);
}

.cc-toolbar .cc-util-btn {
    background-color: #6c757d;
}

.cc-toolbar .cc-util-btn:hover,
.cc-toolbar .cc-util-btn:focus {
    background-color: #6c757d;
    color: #fff;
    outline: none;
    box-shadow: none;
}


.cc-toolbar .cc-copy-btn {
    width: 90px;
}

.cc-textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 16px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.cc-textarea:focus {
    outline: none;
    border-color: #1b6be1;
    box-shadow: 0 0 0 0.7px rgba(13, 110, 253, 0.25);
    background-color: white;
}

.cc-app input[type="text"],
.cc-app input[type="number"],
.cc-app select,
.cc-textarea:hover,
.cc-textarea:active {
    background-color: #fff;
    /* Force white background */
}

.faq-list {
    margin-top: 1rem;
}

.faq-list dt {
    font-weight: 500;
    font-size: 1.1em;
}

.faq-list dd {
    margin-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px dashed #ddd;
}

.cc-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: cc-spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes cc-spin {
    to {
        transform: rotate(360deg);
    }
}

.cc-toolbar button.loading {
    cursor: not-allowed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media(max-width:768px) {
    .cc-app {
        margin: 0 auto 40px;
        box-shadow: none;
        border-top: 1px solid #e0e0e0;
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
        padding: 16px 0;
    }

    .cc-toolbar {
        justify-content: center;
        min-height: 0;
    }

    .cc-textarea {
        min-height: 250px;
    }
}