@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&family=JetBrains+Mono:wght@500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

/* CURSOR CUSTOMIZADO */
html, body, button, .api-card, a, #drop-zone {
    cursor: url('../../database/lib/mouse/mouse.png'), auto !important;
}

body {
    background: radial-gradient(circle at center, #1a0033 0%, #0a001a 100%);
    background-attachment: fixed;
}

#splash { 
    position: fixed; 
    inset: 0; 
    background: #0a001a; 
    z-index: 9999; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: 1s; 
}

.glow-text { text-shadow: 0 0 20px rgba(168, 85, 247, 0.8); }

/* CARDS */
.api-card {
    background: rgba(30, 0, 60, 0.7);
    border: 2px solid rgba(139, 92, 246, 0.3);
    padding: 30px;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
}

.api-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.4), 0 20px 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-8px);
    background: rgba(50, 0, 100, 0.5);
}

.separator { width: 40px; height: 3px; background: linear-gradient(90deg, #8b5cf6, #a855f7); margin: 12px 0; border-radius: 10px; box-shadow: 0 0 15px rgba(139, 92, 246, 0.6); }

.method { background: rgba(139, 92, 246, 0.4); color: #e9d5ff; padding: 5px 15px; border-radius: 12px; font-size: 10px; font-weight: 800; border: 1px solid rgba(139, 92, 246, 0.3); text-shadow: 0 0 8px rgba(139, 92, 246, 0.6); }
.card-title { font-size: 1.4rem; font-weight: 800; color: white; }
.card-desc { font-size: 0.9rem; color: #c4b5fd; line-height: 1.6; }

.url-box {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 20px;
    font-family: 'JetBrains Mono';
    font-size: 11px;
    color: #d8b4fe;
    border: 1px solid rgba(168, 85, 247, 0.3);
    text-align: center;
}

/* CORES DOS ÍCONES (EMOJIS) - TUDO ROXO */
.icon-blue { color: #8b5cf6; filter: drop-shadow(0 0 8px #8b5cf6); }
.icon-green { color: #8b5cf6; filter: drop-shadow(0 0 8px #8b5cf6); }
.icon-amber { color: #8b5cf6; filter: drop-shadow(0 0 8px #8b5cf6); }
.icon-pink { color: #ec4899; filter: drop-shadow(0 0 8px #ec4899); }
.icon-purple { color: #a855f7; filter: drop-shadow(0 0 10px #a855f7); }
.icon-red { color: #8b5cf6; filter: drop-shadow(0 0 8px #8b5cf6); }
.icon-cyan { color: #8b5cf6; filter: drop-shadow(0 0 8px #8b5cf6); }

/* NAVEGAÇÃO - TUDO ROXO */
.tab-btn { padding: 12px 30px; border-radius: 20px; font-size: 11px; font-weight: 800; color: #c4b5fd; transition: 0.3s; cursor: pointer !important; border: 1px solid rgba(168, 85, 247, 0.2); }
.tab-btn.active { background: linear-gradient(135deg, #a855f7, #9333ea); color: white; box-shadow: 0 20px 40px rgba(168, 85, 247, 0.7); border: 1px solid rgba(168, 85, 247, 0.4); text-shadow: 0 0 10px rgba(168, 85, 247, 0.5); }

#app-content { transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }

/* Correção do Cursor */
html, body, button, .api-card, #drop-zone {
    cursor: url('/database/lib/mouse/mouse.png'), auto !important;
}

/* Animação de Entrada para o Link de Sucesso */
.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Deixar a URL Box mais bonita */
#copyLink {
    box-shadow: inset 0 0 15px rgba(168, 85, 247, 0.1);
    letter-spacing: 0.5px;
}

@keyframes reverse-spin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.animate-reverse-spin {
    animation: reverse-spin 1s linear infinite;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Deixa o input com cara de "terminal" */
#urlResult {
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
    background: linear-gradient(145deg, rgba(0,0,0,0.8), rgba(20,0,40,0.8));
}

/* MODAL DE DOCUMENTAÇÃO */
.example-tab {
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    background: transparent;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer !important;
    position: relative;
}

.example-tab:hover {
    color: #e9d5ff;
    background: rgba(168, 85, 247, 0.1);
}

.example-tab.active {
    color: white;
    background: rgba(168, 85, 247, 0.2);
    border-bottom: 2px solid #a855f7;
}

.example-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    border-radius: 1px;
}

/* Animações do Modal */
#docModal {
    backdrop-filter: blur(20px);
}

#modalContent {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 25px 50px -12px rgba(168, 85, 247, 0.25),
        0 0 0 1px rgba(168, 85, 247, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

#modalContent::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(45deg, #a855f7, #ec4899, #3b82f6, #10b981);
    border-radius: 40px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

/* Scrollbar customizada para o modal */
#docModal .overflow-y-auto::-webkit-scrollbar {
    width: 8px;
}

#docModal .overflow-y-auto::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#docModal .overflow-y-auto::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 4px;
}

#docModal .overflow-y-auto::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

/* Botão de copiar código */
#codeContainer button {
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

#codeContainer button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

/* Botão de teste API - SUPER ROXO */
#testApiBtn {
    background: linear-gradient(135deg, #a855f7, #9333ea, #7c3aed) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(168, 85, 247, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

#testApiBtn:hover {
    background: linear-gradient(135deg, #9333ea, #7c3aed, #6d28d9) !important;
    transform: translateY(-3px);
    box-shadow: 
        0 25px 50px -12px rgba(168, 85, 247, 0.6),
        0 0 0 2px rgba(168, 85, 247, 0.3),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}

#testApiBtn:active {
    transform: translateY(0);
}

/* Parâmetros styling */
.parameter-item {
    transition: all 0.2s ease;
}

.parameter-item:hover {
    background: rgba(168, 85, 247, 0.05);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Code syntax highlighting - ROXO INTENSO */
#codeExample, #responseExample {
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
    line-height: 1.6;
    background: linear-gradient(145deg, rgba(30, 0, 60, 0.8), rgba(60, 0, 120, 0.6)) !important;
    border: 1px solid rgba(168, 85, 247, 0.3) !important;
    color: #e9d5ff !important;
}

#responseExample {
    color: #86efac !important;
    text-shadow: 0 0 5px rgba(34, 197, 94, 0.4);
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: linear-gradient(145deg, rgba(0, 30, 0, 0.8), rgba(0, 60, 0, 0.6)) !important;
}

/* Status indicator */
#apiStatus {
    display: flex;
    align-items: center;
    gap: 8px;
}

#apiStatus::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Method badges styling */
#modalMethod {
    text-shadow: 0 0 10px currentColor;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 1px;
}

.method-get {
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6) !important;
}

.method-post {
    background: rgba(139, 92, 246, 0.3) !important;
    color: #e9d5ff !important;
    border: 1px solid rgba(139, 92, 246, 0.4) !important;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8) !important;
}

.method-default {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #e9d5ff !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.6) !important;
}

/* Endpoint box styling */
#modalEndpoint {
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
    letter-spacing: 0.5px;
    word-break: break-all;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #modalContent {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .example-tab {
        padding: 8px 16px;
        font-size: 11px;
    }
    
    #codeExample, #responseExample {
        font-size: 11px;
        padding: 16px;
    }
}