/* ============================================
   PORTAL DE FERRAMENTAS - ANA CLAUDIA COSTA
   Design System Profissional v2.0
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --amber-500: #f59e0b;
    --red-500: #ef4444;
    --surface-0: #ffffff;
    --surface-1: #fafafa;
    --surface-2: #f4f4f5;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #a1a1aa;
    --border-light: #e4e4e7;
    --border-default: #d4d4d8;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px -10px rgb(59 130 246 / 0.3);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --surface-0: #18181b;
    --surface-1: #1f1f23;
    --surface-2: #27272a;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-light: #3f3f46;
    --border-default: #52525b;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--surface-1);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 0% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
                var(--surface-1);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
}

[data-theme="dark"] .app-header { background: rgba(24, 24, 27, 0.8); }

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper { display: flex; align-items: center; gap: 16px; }

.logo-image {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-base);
}

.logo-image:hover { transform: scale(1.02); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--surface-0);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-base);
}

.btn-icon:hover {
    background: var(--surface-2);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.hero-section { padding: 60px 24px 40px; text-align: center; }

.hero-content { max-width: 700px; margin: 0 auto; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-600);
    margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge { color: var(--blue-500); }

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gray-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

.search-wrapper { position: relative; max-width: 480px; margin: 0 auto; }

.search-wrapper i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

.search-wrapper input {
    width: 100%;
    padding: 16px 60px 16px 52px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    background: var(--surface-0);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition-base);
    font-family: inherit;
}

.search-wrapper input::placeholder { color: var(--text-muted); }

.search-wrapper input:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: var(--shadow-glow);
}

.search-wrapper kbd {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    background: var(--surface-2);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
}

.tools-section { padding: 0 24px 60px; }

.tools-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
}

.tool-card {
    background: var(--surface-0);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    padding: 28px;
    position: relative;
    transition: var(--transition-slow);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.tool-card:hover::before { transform: scaleX(1); }

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.3);
    transition: var(--transition-base);
}

.tool-card:hover .card-icon { transform: scale(1.1) rotate(5deg); }

.card-actions { display: flex; gap: 8px; }

.btn-card-action {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--surface-1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition-fast);
}

.btn-card-action:hover {
    background: var(--surface-2);
    color: var(--text-primary);
}

.btn-card-action.btn-edit:hover {
    color: var(--blue-500);
    border-color: var(--blue-500);
    background: rgba(59, 130, 246, 0.1);
}

.card-content { margin-bottom: 20px; }

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.credentials-section {
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.credentials-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.credentials-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.credential-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.credential-row:last-child { border-bottom: none; padding-bottom: 0; }
.credential-row:first-of-type { padding-top: 0; }

.credential-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--surface-0);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.credential-value {
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-primary);
    background: var(--surface-0);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-copy {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: none;
    background: var(--blue-500);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-copy:hover { background: var(--blue-600); transform: scale(1.05); }
.btn-copy.copied { background: var(--green-500); }

.no-credentials {
    text-align: center;
    padding: 16px;
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border: 1px dashed var(--border-default);
}

.no-credentials p { font-size: 13px; color: var(--text-muted); }

.card-footer { display: flex; gap: 12px; }

.btn-access {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-access::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left var(--transition-slow);
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}

.btn-access:hover::before { left: 100%; }

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    background: var(--surface-0);
    border-radius: var(--radius-2xl);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.95) translateY(20px);
    transition: var(--transition-bounce);
}

.modal-overlay.active .modal-container { transform: scale(1) translateY(0); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.modal-title-wrapper { display: flex; align-items: center; gap: 16px; }

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.modal-subtitle { font-size: 0.875rem; color: var(--text-secondary); }

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--surface-1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition-fast);
}

.modal-close:hover { background: var(--red-500); border-color: var(--red-500); color: white; }

.modal-body { padding: 24px; }

.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-label i { font-size: 12px; color: var(--text-muted); }

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--surface-1);
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition-fast);
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { outline: none; border-color: var(--blue-500); background: var(--surface-0); }

.password-input-wrapper { position: relative; }
.password-input-wrapper .form-input { padding-right: 50px; }

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.btn-toggle-password:hover { color: var(--text-primary); background: var(--surface-2); }

.modal-footer { display: flex; gap: 12px; padding: 0 24px 24px; }

.btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-secondary {
    background: var(--surface-1);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.btn-secondary:hover { background: var(--surface-2); color: var(--text-primary); }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    border: none;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

.toast.toast-exit { animation: slideOutRight 0.3s ease-in forwards; }

@keyframes slideOutRight {
    to { opacity: 0; transform: translateX(100%); }
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.toast-success .toast-icon { background: rgba(34, 197, 94, 0.1); color: var(--green-500); }
.toast-error .toast-icon { background: rgba(239, 68, 68, 0.1); color: var(--red-500); }
.toast-info .toast-icon { background: rgba(59, 130, 246, 0.1); color: var(--blue-500); }

.toast-content { flex: 1; }
.toast-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.toast-message { font-size: 13px; color: var(--text-secondary); }

.app-footer {
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid var(--border-light);
    background: var(--surface-0);
}

.app-footer p { font-size: 14px; color: var(--text-muted); }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card { animation: fadeInUp 0.6s ease-out backwards; }
.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }
.tool-card:nth-child(7) { animation-delay: 0.35s; }
.tool-card:nth-child(8) { animation-delay: 0.4s; }
.tool-card:nth-child(9) { animation-delay: 0.45s; }

@media (max-width: 768px) {
    .app-header { padding: 12px 16px; }
    .logo-image { height: 48px; }
    .hero-section { padding: 40px 16px 24px; }
    .hero-title { font-size: 2rem; }
    .tools-section { padding: 0 16px 40px; }
    .tools-grid { grid-template-columns: 1fr; gap: 16px; }
    .tool-card { padding: 20px; }
    .card-icon { width: 48px; height: 48px; font-size: 20px; }
    .search-wrapper kbd { display: none; }
    .toast-container { left: 16px; right: 16px; bottom: 16px; }
    .toast { min-width: auto; }
}

@media (max-width: 480px) {
    .card-header { flex-direction: column; gap: 16px; }
    .card-actions { align-self: flex-start; }
    .credential-row { flex-wrap: wrap; }
    .credential-value { order: 3; width: 100%; margin-top: 8px; }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--surface-1); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }
[data-theme="dark"]::-webkit-scrollbar-thumb { background: var(--gray-600); }
[data-theme="dark"]::-webkit-scrollbar-track { background: var(--surface-2); }

/* ============================================
   TOOLS HEADER & ADD BUTTON
   ============================================ */
.tools-header {
    max-width: 1400px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tools-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.tools-count span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 18px;
}

.btn-add-platform {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--green-500), var(--blue-500));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 12px -2px rgba(34, 197, 94, 0.3);
}

.btn-add-platform:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(34, 197, 94, 0.4);
}

.btn-add-platform i {
    font-size: 14px;
}

/* ============================================
   WIZARD MODAL
   ============================================ */
.modal-wizard {
    max-width: 560px;
}

.modal-icon-add {
    background: linear-gradient(135deg, var(--green-500), var(--blue-500)) !important;
}

.wizard-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 2px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.wizard-step.active .step-number {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    border-color: var(--blue-500);
    color: white;
}

.wizard-step.completed .step-number {
    background: var(--green-500);
    border-color: var(--green-500);
    color: white;
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    color: var(--text-primary);
}

.wizard-line {
    width: 60px;
    height: 2px;
    background: var(--border-default);
    margin: 0 12px;
    margin-bottom: 20px;
    transition: var(--transition-base);
}

.wizard-line.active {
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
}

.wizard-content {
    display: none;
}

.wizard-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Icon Selector */
.icon-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.icon-option {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-light);
    background: var(--surface-1);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-fast);
}

.icon-option:hover {
    border-color: var(--blue-500);
    color: var(--blue-500);
    background: rgba(59, 130, 246, 0.1);
}

.icon-option.selected {
    border-color: var(--blue-500);
    background: var(--blue-500);
    color: white;
}

/* Checkbox Custom */
.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 16px;
    background: var(--surface-1);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition-fast);
}

.checkbox-wrapper:hover {
    border-color: var(--blue-500);
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-default);
    background: var(--surface-0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: var(--transition-fast);
}

.checkbox-wrapper input:checked + .checkbox-custom {
    background: var(--blue-500);
    border-color: var(--blue-500);
}

.checkbox-wrapper input:checked + .checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

.checkbox-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.checkbox-label strong {
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label small {
    font-size: 13px;
    color: var(--text-muted);
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    margin-top: 16px;
}

.info-box i {
    color: var(--blue-500);
    font-size: 16px;
    margin-top: 2px;
}

.info-box p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Confirmation Card */
.confirmation-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--surface-1);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
}

.confirmation-icon {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.3);
}

.confirmation-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.confirmation-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.confirmation-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirmation-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.confirmation-item i {
    color: var(--blue-500);
    width: 16px;
}

/* Button Success */
.btn-success {
    background: linear-gradient(135deg, var(--green-500), var(--green-600)) !important;
}

.btn-success:hover {
    box-shadow: 0 8px 20px -4px rgba(34, 197, 94, 0.4) !important;
}

/* Responsive Wizard */
@media (max-width: 480px) {
    .wizard-progress { padding: 16px; }
    .wizard-line { width: 30px; margin: 0 6px; margin-bottom: 20px; }
    .step-label { font-size: 10px; }
    .icon-selector { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   DELETE MODAL
   ============================================ */
.modal-delete {
    max-width: 440px;
}

.modal-icon-delete {
    background: linear-gradient(135deg, var(--red-500), #dc2626) !important;
}

.delete-warning {
    text-align: center;
    padding: 24px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg);
}

.delete-warning i {
    font-size: 48px;
    color: var(--red-500);
    margin-bottom: 16px;
}

.delete-warning p {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.delete-warning strong {
    color: var(--red-500);
}

.delete-warning span {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-danger {
    background: linear-gradient(135deg, var(--red-500), #dc2626) !important;
    border: none;
    color: white;
}

.btn-danger:hover {
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.4) !important;
}

/* Delete button on card */
.btn-card-action.btn-delete:hover {
    color: var(--red-500);
    border-color: var(--red-500);
    background: rgba(239, 68, 68, 0.1);
}

/* Form Section Title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
    margin-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title i {
    font-size: 12px;
    color: var(--blue-500);
}

/* ============================================
   DRAG AND DROP STYLES
   ============================================ */
.tool-card .card-header {
    cursor: grab;
}

.tool-card .card-header:active {
    cursor: grabbing;
}

.card-ghost {
    opacity: 0.4;
    background: var(--blue-500) !important;
    border: 2px dashed var(--blue-500) !important;
}

.card-chosen {
    box-shadow: var(--shadow-2xl) !important;
    transform: scale(1.02);
    z-index: 100;
}

.card-drag {
    opacity: 1 !important;
    transform: rotate(2deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
}

/* Indicador visual de área de arraste */
.tool-card .card-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(
        to bottom,
        var(--gray-300) 0%,
        var(--gray-300) 20%,
        transparent 20%,
        transparent 40%,
        var(--gray-300) 40%,
        var(--gray-300) 60%,
        transparent 60%,
        transparent 80%,
        var(--gray-300) 80%,
        var(--gray-300) 100%
    );
    border-radius: 2px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.tool-card:hover .card-header::before {
    opacity: 0.6;
}

[data-theme="dark"] .tool-card .card-header::before {
    background: linear-gradient(
        to bottom,
        var(--gray-500) 0%,
        var(--gray-500) 20%,
        transparent 20%,
        transparent 40%,
        var(--gray-500) 40%,
        var(--gray-500) 60%,
        transparent 60%,
        transparent 80%,
        var(--gray-500) 80%,
        var(--gray-500) 100%
    );
}

/* Logout Button */
.btn-logout {
    color: var(--text-muted);
}

.btn-logout:hover {
    color: var(--red-500) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* SAAS Toggle Button */
.btn-saas-toggle {
    background: linear-gradient(135deg, var(--blue-500), var(--purple-500)) !important;
    color: white !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

.btn-saas-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: saas-shine 2s infinite;
}

@keyframes saas-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-saas-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}
