/* AIPB Customizer Styles */
#aipb-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    z-index: 99999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#aipb-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

#aipb-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: #0f172a;
    color: #f1f5f9;
    z-index: 100000;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

#aipb-panel.aipb-hidden {
    transform: translateX(100%);
}

.aipb-panel-header {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.aipb-panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#aipb-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

#aipb-close:hover {
    color: #f1f5f9;
}

/* TAB NAVIGATION */
.aipb-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.aipb-tab-btn {
    flex: 1;
    padding: 14px 16px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aipb-tab-btn:hover {
    color: #f1f5f9;
}

.aipb-tab-btn.active {
    color: #7c3aed;
    border-bottom-color: #7c3aed;
}

.aipb-panel-body {
    padding: 24px;
    flex: 1;
    overflow-y: auto;
}

.aipb-tab-content {
    display: none;
}

.aipb-tab-content.active {
    display: block;
}

.aipb-form-group {
    margin-bottom: 24px;
}

.aipb-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.aipb-form-group textarea {
    width: 100%;
    height: 100px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 12px;
    color: #f1f5f9;
    font-size: 14px;
    resize: none;
    transition: border-color 0.3s;
    font-family: 'Inter', sans-serif;
}

.aipb-form-group textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

.aipb-color-palette {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.aipb-color-input {
    background: #1e293b;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.aipb-color-input span {
    font-size: 12px;
    color: #94a3b8;
}

.aipb-color-input input {
    width: 100%;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
}

.aipb-btn-premium {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.aipb-btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.4);
}

.aipb-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #f1f5f9;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.aipb-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: aipb-spin 1s ease-in-out infinite;
}

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

.aipb-hidden {
    display: none !important;
}

/* COPY FIELDS */
.aipb-copy-field {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.aipb-copy-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aipb-copy-field input,
.aipb-copy-field textarea {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    color: #f1f5f9;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}

.aipb-copy-field textarea {
    min-height: 60px;
    resize: vertical;
}

.aipb-copy-field input:focus,
.aipb-copy-field textarea:focus {
    outline: none;
    border-color: #7c3aed;
}

/* LINKS FIELDS */
.aipb-links-field {
    margin-bottom: 20px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.aipb-links-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aipb-links-field input {
    width: 100%;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px;
    color: #f1f5f9;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.aipb-links-field input:focus {
    outline: none;
    border-color: #7c3aed;
}

.aipb-links-field-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.aipb-links-field-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.aipb-links-field-checkbox label {
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
}

/* Scrollbar */
.aipb-panel-body::-webkit-scrollbar {
    width: 6px;
}

.aipb-panel-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.aipb-panel-body::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 3px;
}

.aipb-panel-body::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.6);
}
