/* 🎨 Sistema de Modais Moderno - Allianza Testnet */

/* Modal Base */
.modern-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    overflow-y: auto;
    animation: fadeIn 0.2s ease-out;
}

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

.modern-modal-content {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    margin: auto;
    position: relative;
    border: 2px solid #374151;
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.modern-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-shrink: 0;
}

.modern-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modern-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #374151;
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Tamanhos Responsivos */
@media (max-width: 768px) {
    .modern-modal-content {
        max-width: 100%;
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modern-modal-header,
    .modern-modal-body,
    .modern-modal-footer {
        padding: 1rem;
    }
}

@media (max-width: 640px) {
    .modern-modal {
        padding: 0.5rem;
    }
    
    .modern-modal-content {
        max-height: 98vh;
    }
    
    .modern-modal-footer {
        flex-direction: column;
    }
    
    .modern-modal-footer button {
        width: 100%;
    }
}

/* Status Badges */
.status-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.status-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.status-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Botão Copiar Moderno */
.btn-copy-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-copy-modern:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-copy-modern:active {
    transform: translateY(0);
}

.btn-copy-modern.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-copy-modern.copied::after {
    content: " ✓ Copiado!";
}

/* Code Block Moderno */
.code-block-modern {
    position: relative;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block-modern pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-block-modern code {
    color: #e2e8f0;
    font-family: inherit;
}

.code-block-modern .btn-copy-modern {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
}

/* Verification Details Grid */
.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.verification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #374151;
}

.verification-item-label {
    font-size: 0.875rem;
    color: #9ca3af;
    text-transform: capitalize;
}

.verification-item-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.verification-item-value.valid {
    color: #10b981;
}

.verification-item-value.invalid {
    color: #ef4444;
}

/* Scrollbar Moderno */
.modern-modal-body::-webkit-scrollbar,
.code-block-modern::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.modern-modal-body::-webkit-scrollbar-track,
.code-block-modern::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

.modern-modal-body::-webkit-scrollbar-thumb,
.code-block-modern::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

.modern-modal-body::-webkit-scrollbar-thumb:hover,
.code-block-modern::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Botão Fechar */
.btn-close-modern {
    background: #374151;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-close-modern:hover {
    background: #4b5563;
    transform: rotate(90deg);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Responsividade para Mobile */
@media (max-width: 640px) {
    .verification-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block-modern {
        font-size: 0.75rem;
    }
    
    .modern-modal-header h2 {
        font-size: 1.25rem;
    }
}

