/* ===================================================================
   ESTILOS UNIFICADOS PARA PASTA USER/
   =================================================================== */

/* Configuração base */
body {
    font-family: 'Inter', sans-serif;
}

/* Animações do Fundo */
.animate-blob {
    animation: blob 7s infinite;
}
.animation-delay-2000 { 
    animation-delay: -2s; 
}
.animation-delay-4000 { 
    animation-delay: -4s; 
}
@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* Estilos para componentes do painel */
.form-input {
    background-color: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
    outline: none;
}

.nav-link-custom {
    border-bottom: 2px solid transparent;
}
.nav-link-custom.active {
    border-bottom-color: #3b82f6;
    color: #60a5fa;
}

/* Estilos para tickets */
.ticket-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ticket-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.ticket-subject {
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.ticket-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-aberto { 
    background: rgba(34, 197, 94, 0.2); 
    color: #4ade80; 
}
.status-respondido { 
    background: rgba(59, 130, 246, 0.2); 
    color: #60a5fa; 
}
.status-fechado { 
    background: rgba(107, 114, 128, 0.2); 
    color: #9ca3af; 
}

.ticket-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-baixa { 
    background: rgba(34, 197, 94, 0.2); 
    color: #4ade80; 
}
.priority-normal { 
    background: rgba(59, 130, 246, 0.2); 
    color: #60a5fa; 
}
.priority-alta { 
    background: rgba(245, 158, 11, 0.2); 
    color: #fbbf24; 
}
.priority-urgente { 
    background: rgba(239, 68, 68, 0.2); 
    color: #f87171; 
}

/* Estilos para respostas de tickets */
.ticket-response {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ticket-response.admin {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.response-author {
    font-weight: 600;
    color: #60a5fa;
}

.response-date {
    color: #9ca3af;
}

/* Loading animation */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Estilos específicos para select options visíveis */
select option {
    background-color: #1f2937 !important;
    color: #ffffff !important;
}

select option:hover {
    background-color: #374151 !important;
}

/* Estilos para notificações */
.user-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

.user-notification.user-notification-success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.user-notification.user-notification-error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Estilos para modais */
.modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.modal-title {
    color: white !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Estilos para formulários */
.form-control {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.form-control:focus {
    background-color: rgba(0, 0, 0, 0.7) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25) !important;
    color: white !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Estilos para botões */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    transform: translateY(-1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Estilos para cards de planos */
.plan-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.plan-card.featured {
    border: 2px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.1);
}

/* Estilos para estatísticas */
.stats-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
}

.stats-label {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Estilos para filtros */
.filter-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-button.active {
    background: #3b82f6;
    color: white;
}

/* Estilos para loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Estilos responsivos */
@media (max-width: 768px) {
    .plan-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
}

/* Estilos para scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
