/* Frontend Styles */
.sumtics-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

.sumtics-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sumtics-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.sumtics-icon-wrapper {
    display: inline-flex;
    align-items: center;
}

.sumtics-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.sumtics-button-label {
    display: inline-block;
}

/* Button Styles */
.sumtics-button-chatgpt {
    background: #10a37f;
}

.sumtics-button-chatgpt:hover {
    background: #0d8a6b;
}

.sumtics-button-gemini {
    background: #4285f4;
}

.sumtics-button-gemini:hover {
    background: #3367d6;
}

.sumtics-button-claude {
    background: #d97757;
}

.sumtics-button-claude:hover {
    background: #c46545;
}

.sumtics-button-grok {
    background: #000000;
}

.sumtics-button-grok:hover {
    background: #333333;
}

.sumtics-button-perplexity {
    background: #6366f1;
}

.sumtics-button-perplexity:hover {
    background: #4f46e5;
}

/* Button Style Variations */
/* Icons Only - Hide label */
.sumtics-style-icons-only .sumtics-button-label,
.sumtics-button-icons-only .sumtics-button-label {
    display: none !important;
}

.sumtics-style-icons-only .sumtics-button,
.sumtics-button-icons-only {
    padding: 10px;
    min-width: 44px;
    justify-content: center;
}

.sumtics-style-icons-only .sumtics-button .sumtics-icon-wrapper svg,
.sumtics-button-icons-only .sumtics-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

/* Minimal Style - Subtle styling */
.sumtics-style-minimal .sumtics-button,
.sumtics-button-minimal {
    background: #fff; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
    color: #333;
    padding: 10px 15px;
}

 

/* Brand Style - Default with brand colors */
.sumtics-style-brand .sumtics-button,
.sumtics-button-brand {
    /* Default styles already applied */
}

/* Modal Styles */
.sumtics-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.sumtics-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sumtics-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
}

.sumtics-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: sumtics-modal-slide-in 0.3s ease;
}

@keyframes sumtics-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sumtics-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.sumtics-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.sumtics-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sumtics-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.sumtics-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Form Styles */
.sumtics-form-group {
    margin-bottom: 20px;
}

.sumtics-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.sumtics-form-group select,
.sumtics-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.sumtics-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.sumtics-form-actions {
    margin-top: 24px;
}

.sumtics-button {
    padding: 12px 15px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.sumtics-button-primary {
    background: #0073aa;
    color: #ffffff;
}

.sumtics-button-primary:hover {
    background: #005a87;
}

/* Loading Styles */
.sumtics-loading {
    text-align: center;
    padding: 40px 20px;
}

.sumtics-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: sumtics-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes sumtics-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Result Styles */
.sumtics-result {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    border-left: 4px solid #0073aa;
    margin-top: 20px;
}

.sumtics-result h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

.sumtics-result p {
    margin: 0 0 12px;
    line-height: 1.6;
}

.sumtics-result p:last-child {
    margin-bottom: 0;
}

/* Error Styles */
.sumtics-error {
    padding: 16px;
    background: #fff2f2;
    border: 1px solid #dc3232;
    border-radius: 6px;
    color: #dc3232;
    margin-top: 20px;
}

/* Shortcode Styles */
.sumtics-shortcode-wrapper {
    margin: 20px 0;
}

.sumtics-shortcode-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #0073aa;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sumtics-shortcode-button:hover {
    background: #005a87;
}

/* Accessibility */
.sumtics-modal[aria-hidden="true"] {
    display: none;
}

.sumtics-modal[aria-hidden="false"] {
    display: flex;
}

/* Focus trap */
.sumtics-modal-content:focus {
    outline: none;
}

