/* ============================================
   RANKITO CRM - ESTILOS DO WIDGET E ADMIN
   ============================================ */

/* WIDGET FLUTUANTE */
.rankito-widget {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rankito-widget.rankito-bottom-right {
    bottom: 20px;
    right: 20px;
}

.rankito-widget.rankito-bottom-left {
    bottom: 20px;
    left: 20px;
}

.rankito-widget-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    transition: all 0.3s ease;
}

.rankito-widget-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.rankito-widget-button svg {
    width: 20px;
    height: 20px;
}

/* FORMULÁRIO DO WIDGET */
.rankito-widget-form {
    width: 360px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: rankitoSlideUp 0.3s ease;
}

@keyframes rankitoSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rankito-widget-header {
    padding: 20px;
    background-color: #3b82f6;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rankito-widget-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.rankito-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.rankito-widget-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.rankito-widget-body {
    padding: 20px;
}

.rankito-form-group {
    margin-bottom: 16px;
}

.rankito-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.rankito-form-group input,
.rankito-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.rankito-form-group input:focus,
.rankito-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.rankito-form-group textarea {
    resize: vertical;
}

.rankito-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.rankito-submit-button:hover:not(:disabled) {
    background-color: #2563eb;
    transform: translateY(-1px);
}

.rankito-submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* MENSAGENS DE SUCESSO/ERRO */
.rankito-success-message,
.rankito-error-message {
    text-align: center;
    padding: 20px;
    animation: rankitoFadeIn 0.3s ease;
}

@keyframes rankitoFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rankito-success-icon,
.rankito-error-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.rankito-success-message h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #10b981;
}

.rankito-success-message p,
.rankito-error-message p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.rankito-error-message {
    background-color: #fef2f2;
    border-radius: 6px;
    margin-top: 12px;
}

.rankito-error-message p {
    color: #dc2626;
}

/* RESPONSIVO */
@media (max-width: 480px) {
    .rankito-widget-form {
        width: calc(100vw - 40px);
        max-width: 360px;
    }
    
    .rankito-widget.rankito-bottom-right,
    .rankito-widget.rankito-bottom-left {
        right: 20px;
        left: 20px;
    }
}

/* ============================================
   PAINEL ADMIN DO WORDPRESS
   ============================================ */

.rankito-settings-page {
    max-width: 900px;
}

.rankito-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rankito-card h2 {
    margin-top: 0;
    font-size: 20px;
    color: #1e293b;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.rankito-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.rankito-features li {
    padding: 10px 12px;
    background: #f0f9ff;
    border-left: 3px solid #3b82f6;
    border-radius: 4px;
    font-size: 14px;
    color: #1e40af;
}

.form-table th {
    width: 200px;
    font-weight: 600;
}

.form-table input[type="color"] {
    height: 40px;
    cursor: pointer;
}

/* Botões */
.button-large {
    font-size: 16px !important;
    padding: 8px 24px !important;
    height: auto !important;
}

.notice {
    margin: 20px 0;
}
