/* 
   Personal Control - Animations CSS
   Animações para o dashboard moderno e futurístico
*/

/* Keyframes Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 0, 35, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(230, 0, 35, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(230, 0, 35, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-90deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

@keyframes bounceIn {
    0%, 20%, 40%, 60%, 80%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        opacity: 0;
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        transform: scale3d(1, 1, 1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Applied Animations */

/* Dashboard Container */
.dashboard-container {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Sidebar Animations */
.sidebar {
    animation: slideInLeft 0.5s ease-out forwards;
}

.sidebar-nav li {
    opacity: 0;
    animation: slideInLeft 0.3s ease-out forwards;
}

.sidebar-nav li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav li:nth-child(2) { animation-delay: 0.15s; }
.sidebar-nav li:nth-child(3) { animation-delay: 0.2s; }
.sidebar-nav li:nth-child(4) { animation-delay: 0.25s; }
.sidebar-nav li:nth-child(5) { animation-delay: 0.3s; }
.sidebar-nav li:nth-child(6) { animation-delay: 0.35s; }
.sidebar-nav li:nth-child(7) { animation-delay: 0.4s; }
.sidebar-nav li:nth-child(8) { animation-delay: 0.45s; }
.sidebar-nav li:nth-child(9) { animation-delay: 0.5s; }

.user-profile {
    animation: slideInLeft 0.5s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Main Content Animations */
.main-content {
    animation: fadeIn 0.5s ease-out 0.3s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.welcome-banner {
    animation: scaleIn 0.5s ease-out 0.5s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* KPI Cards Animations */
.kpi-card {
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.kpi-card:nth-child(1) { animation-delay: 0.6s; }
.kpi-card:nth-child(2) { animation-delay: 0.7s; }
.kpi-card:nth-child(3) { animation-delay: 0.8s; }
.kpi-card:nth-child(4) { animation-delay: 0.9s; }

.kpi-icon {
    animation: pulseGlow 2s infinite;
}

/* Dashboard Cards Animations */
.dashboard-card {
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.performance-chart {
    animation-delay: 1s;
}

.client-goals {
    animation-delay: 1.1s;
}

.agenda-card {
    animation-delay: 1.2s;
}

.recent-clients {
    animation-delay: 1.3s;
}

.activities-card {
    animation-delay: 1.4s;
}

.reminders-card {
    animation-delay: 1.5s;
}

/* Agenda Items Animations */
.agenda-item {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.agenda-item:nth-child(1) { animation-delay: 1.3s; }
.agenda-item:nth-child(2) { animation-delay: 1.4s; }
.agenda-item:nth-child(3) { animation-delay: 1.5s; }
.agenda-item:nth-child(4) { animation-delay: 1.6s; }

/* Client Items Animations */
.client-item {
    opacity: 0;
    animation: slideInRight 0.5s ease-out forwards;
}

.client-item:nth-child(1) { animation-delay: 1.4s; }
.client-item:nth-child(2) { animation-delay: 1.5s; }
.client-item:nth-child(3) { animation-delay: 1.6s; }
.client-item:nth-child(4) { animation-delay: 1.7s; }

/* Progress Circle Animation */
.progress-circle {
    transition: --value 1s ease;
}

.progress-circle span {
    animation: fadeIn 0.5s ease-out 1.8s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Activity Items Animations */
.activity-item {
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.activity-item:nth-child(1) { animation-delay: 1.5s; }
.activity-item:nth-child(2) { animation-delay: 1.6s; }
.activity-item:nth-child(3) { animation-delay: 1.7s; }
.activity-item:nth-child(4) { animation-delay: 1.8s; }
.activity-item:nth-child(5) { animation-delay: 1.9s; }

/* Reminder Items Animations */
.reminder-item {
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.reminder-item:nth-child(1) { animation-delay: 1.6s; }
.reminder-item:nth-child(2) { animation-delay: 1.7s; }
.reminder-item:nth-child(3) { animation-delay: 1.8s; }
.reminder-item:nth-child(4) { animation-delay: 1.9s; }

/* Button and Interactive Elements Animations */
.btn-action:hover {
    animation: pulseGlow 2s infinite;
}

.sidebar-nav a:hover i {
    animation: rotateIn 0.3s ease-out forwards;
}

.notification-icon:hover, .message-icon:hover {
    animation: bounceIn 0.5s ease forwards;
}

/* Loading Animations */
.loading-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 25%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.05) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

/* Tooltip Animation */
[data-tooltip]:hover::after {
    animation: fadeIn 0.3s ease-out forwards;
}

/* Chart Animations */
.chart-appear {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Responsive Animation Adjustments */
@media (max-width: 992px) {
    .sidebar-nav li, .user-profile,
    .kpi-card, .dashboard-card,
    .agenda-item, .client-item,
    .activity-item, .reminder-item {
        animation-delay: 0.2s;
    }
}

/* Special Effects on Hover */
.kpi-card:hover .kpi-icon {
    animation: float 3s ease-in-out infinite;
}

.welcome-banner:hover::before {
    animation: float 6s ease-in-out infinite;
}

/* Focus and Active State Animations */
input:focus, button:focus, a:focus {
    animation: pulseGlow 2s ease infinite;
}

/* Page Transition Animations */
.page-enter {
    opacity: 0;
    transform: scale(0.9);
}

.page-enter-active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s, transform 0.3s;
}

.page-exit {
    opacity: 1;
    transform: scale(1);
}

.page-exit-active {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s, transform 0.3s;
} 