/* Global Styles */
body {
    background: linear-gradient(135deg, #FFF7F5, #EAF8F2, #F0F4FF);
    color: #1A2B4A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variation-settings: 'wght' 400;
    overflow-x: hidden;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Particle Background */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

/* Spinner */
.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 6px solid #FF7A9E;
    border-top: 6px solid transparent;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 0.7s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    z-index: 9999;
    display: none;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 122, 158, 0.2);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
}

.navbar-brand {
    font-weight: 700;
    font-variation-settings: 'wght' 700;
    color: #2DD4BF !important;
    text-shadow: 0 0 5px rgba(45, 212, 191, 0.3);
    letter-spacing: 0.3px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: #1A2B4A !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #FF7A9E !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #FF7A9E;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 60%;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(45, 212, 191, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 0 8px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.4);
}

.summary-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 122, 158, 0.25);
    border-radius: 16px;
}

/* Login/Registration Card */
.login-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 122, 158, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(45, 212, 191, 0.2);
}

/* Buttons */
.form-btn {
    background: linear-gradient(90deg, #FF7A9E, #2DD4BF);
    border: none;
    color: #fff;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-variation-settings: 'wght' 600;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 122, 158, 0.3);
}

.form-btn:hover {
    background: linear-gradient(90deg, #2DD4BF, #FF7A9E);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.5);
}

.form-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 122, 158, 0.2);
}

.form-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.form-btn:hover::before {
    width: 500px;
    height: 500px;
}

/* Form Inputs */
.form-control {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 122, 158, 0.3);
    color: #1A2B4A;
    border-radius: 10px;
    padding: 0.8rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #2DD4BF;
    box-shadow: 0 0 8px rgba(45, 212, 191, 0.4);
    background: rgba(255, 255, 255, 0.9);
    color: #1A2B4A;
}

.form-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}

/* Input Group Animation */
.input-group {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Toggle Password Button */
.toggle-password {
    border: 1px solid rgba(255, 122, 158, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: rgba(255, 122, 158, 0.15);
    border-color: #2DD4BF;
}

/* Alerts */
.neon-alert {
    border: 1px solid rgba(255, 122, 158, 0.3);
    background: rgba(255, 255, 255, 0.9);
    color: #1A2B4A;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 122, 158, 0.15);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.alert-success {
    border-color: #2ECC71;
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.2);
}

.alert-danger {
    border-color: #E74C3C;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.alert-warning {
    border-color: #F1C40F;
    box-shadow: 0 4px 12px rgba(241, 196, 15, 0.2);
}

/* Table */
.table {
    color: #1A2B4A;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.table-hover tbody tr:hover {
    background: rgba(255, 122, 158, 0.1);
}

/* Transaction Button */
.transacao-btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.transacao-btn:hover {
    background: #FF7A9E !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 122, 158, 0.4);
}

/* Badges */
.badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-variation-settings: 'wght' 500;
}

/* Modal */
.modal-content {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 122, 158, 0.2);
    color: #1A2B4A;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 122, 158, 0.15);
}

.modal-footer {
    border-top: 1px solid rgba(255, 122, 158, 0.15);
}

.btn-close-white {
    filter: brightness(0.65);
    transition: filter 0.3s ease;
}

.btn-close-white:hover {
    filter: brightness(1);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Icon Animation */
.card-body i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.card-body:hover i {
    transform: scale(1.2);
    color: #2DD4BF;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        background: rgba(255, 255, 255, 0.94);
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .card, .login-card {
        border-radius: 12px;
    }

    .form-btn {
        padding: 0.7rem 1.4rem;
    }

    .form-control {
        padding: 0.7rem;
    }
}