/* Estilos de componentes reutilizáveis */

/* Botões */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.02em;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--text-on-dark);
    box-shadow: 0 4px 15px rgba(14, 10, 41, 0.25);
}

.btn-primary:hover {
    background: var(--primary-blue-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 10, 41, 0.35);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: var(--text-on-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--gray-400);
}

.btn-outline:hover {
    background-color: var(--gray-200);
    color: var(--text-primary);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(14, 10, 41, 0.08);
    border: 1px solid var(--gray-200);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(14, 9, 41, 0.5);
}

.card-light {
    background: var(--primary-medium-light);
}

/* Links */
a {
    color: var(--accent-blue-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-cyan);
}

/* Inputs e Formulários */
input, textarea, select {
    background-color: var(--primary-dark-light);
    border: 2px solid var(--neutral-medium);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    width: 100%;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(92, 127, 184, 0.2);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input.error, textarea.error, select.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.2);
}

/* Badges e Tags */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--accent-blue);
    color: var(--text-primary);
}

.badge-secondary {
    background-color: var(--neutral-medium);
    color: var(--text-secondary);
}

/* Separadores */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue) 50%, transparent);
    margin: 2rem 0;
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(92, 127, 184, 0.3);
    border-top: 3px solid var(--accent-blue-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--primary-medium);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    border: 1px solid rgba(92, 127, 184, 0.2);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Responsividade para componentes */
@media (max-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}
