:root {
    --bg-main: #131314;
    --bg-surface: #1E1F20;
    --bg-surface-hover: #2B2D2F;
    --border-color: #444746;
    --text-primary: #E3E3E3;
    --text-secondary: #C4C7C5;
    --accent-color: #A8C7FA;
    --accent-glow: rgba(168, 199, 250, 0.15);
    --positive: #00E676;
    --negative: #FF1744;
    --gemini-gradient: linear-gradient(90deg, #A8C7FA 0%, #D3E3FD 100%);
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.7) 0%, rgba(30, 31, 32, 0.3) 100%);
    backdrop-filter: blur(16px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-color);
    font-size: 28px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 600;
    background: var(--gemini-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filters-container h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-group select {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23C4C7C5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-group select:focus, .filter-group select:hover {
    background: linear-gradient(135deg, rgba(168, 199, 250, 0.1) 0%, rgba(168, 199, 250, 0.02) 100%);
    border-color: rgba(168, 199, 250, 0.5);
    box-shadow: 0 6px 20px rgba(168, 199, 250, 0.2), 0 0 15px rgba(168, 199, 250, 0.2);
}

.filter-group select option {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.filter-group select optgroup {
    background-color: var(--bg-main);
    color: var(--accent-color);
    font-weight: 600;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.top-bar {
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(30, 31, 32, 0.8) 0%, rgba(30, 31, 32, 0.4) 100%);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.transaction-types {
    display: flex;
    gap: 8px;
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.6) 0%, rgba(30, 31, 32, 0.3) 100%);
    backdrop-filter: blur(12px);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.type-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.type-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.type-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.type-btn:hover::before {
    left: 150%;
}

.type-btn.active {
    background: linear-gradient(135deg, rgba(168, 199, 250, 0.2) 0%, rgba(168, 199, 250, 0.05) 100%);
    border-color: rgba(168, 199, 250, 0.4);
    box-shadow: 0 4px 15px rgba(168, 199, 250, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.google-forms-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.15) 0%, rgba(103, 58, 183, 0.05) 100%);
    border: 1px solid rgba(103, 58, 183, 0.4);
    padding: 10px 20px;
    border-radius: 50px;
    color: #FFFFFF;
    font-family: 'Product Sans', 'Google Sans', 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.google-forms-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.google-forms-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(103, 58, 183, 0.4));
}

.google-forms-btn:hover {
    background: linear-gradient(135deg, rgba(103, 58, 183, 0.25) 0%, rgba(103, 58, 183, 0.1) 100%);
    border-color: rgba(103, 58, 183, 0.8);
    box-shadow: 0 6px 20px rgba(103, 58, 183, 0.4), 0 0 15px rgba(103, 58, 183, 0.5);
    transform: translateY(-2px);
    color: #FFFFFF;
}

.google-forms-btn:hover::before {
    left: 150%;
}

.google-forms-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(103, 58, 183, 0.3);
}

.user-profile .avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.user-profile .avatar-img:hover {
    transform: scale(1.05);
}

/* Dashboard */
.dashboard {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.7) 0%, rgba(30, 31, 32, 0.3) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

.card:hover::before {
    left: 150%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:has(.entradas):hover {
    border-color: rgba(0, 230, 118, 0.8);
    box-shadow: 0 12px 32px rgba(0, 230, 118, 0.3), 0 0 20px rgba(0, 230, 118, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:has(.saidas):hover {
    border-color: rgba(255, 23, 68, 0.8);
    box-shadow: 0 12px 32px rgba(255, 23, 68, 0.3), 0 0 20px rgba(255, 23, 68, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card:has(.saldo):hover {
    border-color: rgba(0, 229, 255, 0.8);
    box-shadow: 0 12px 32px rgba(0, 229, 255, 0.3), 0 0 20px rgba(0, 229, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.card-icon.entradas {
    background-color: rgba(129, 201, 149, 0.1);
    color: var(--positive);
}

.card-icon.saidas {
    background-color: rgba(242, 139, 130, 0.1);
    color: var(--negative);
}

.card-icon.saldo {
    background: var(--accent-glow);
    color: var(--accent-color);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-title {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

.card-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.card-value.positive { color: var(--positive); }
.card-value.negative { color: var(--negative); }

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.chart-container {
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.7) 0%, rgba(30, 31, 32, 0.3) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    transition: all 0.4s ease;
}

.chart-container:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.chart-container h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.icon-btn:hover {
    color: var(--text-primary);
}

.chart-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
    background-color: var(--bg-main);
    padding: 40px;
}

.chart-container.fullscreen .canvas-wrapper {
    height: calc(100vh - 120px);
}

.canvas-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

/* Overlay de Login */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(19, 19, 20, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-card {
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.8) 0%, rgba(30, 31, 32, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.input-group label {
    font-size: 14px;
    color: var(--text-secondary);
}

.input-group input {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.input-group input:focus {
    background: linear-gradient(135deg, rgba(168, 199, 250, 0.1) 0%, rgba(168, 199, 250, 0.02) 100%);
    border-color: rgba(168, 199, 250, 0.5);
    box-shadow: 0 6px 20px rgba(168, 199, 250, 0.2), 0 0 15px rgba(168, 199, 250, 0.2);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, rgba(168, 199, 250, 0.2) 0%, rgba(168, 199, 250, 0.05) 100%);
    color: var(--accent-color);
    border: 1px solid rgba(168, 199, 250, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(168, 199, 250, 0.3) 0%, rgba(168, 199, 250, 0.1) 100%);
    border-color: rgba(168, 199, 250, 0.8);
    box-shadow: 0 6px 20px rgba(168, 199, 250, 0.4), 0 0 15px rgba(168, 199, 250, 0.5);
    color: #FFF;
    transform: translateY(-2px);
}

.btn-primary:hover::before {
    left: 150%;
}

.btn-secondary {
    width: 100%;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.login-error {
    color: var(--negative);
    font-size: 14px;
    margin-top: 16px;
    text-align: center;
    display: none;
}

/* Transactions Table */
.transactions-section {
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.7) 0%, rgba(30, 31, 32, 0.3) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

.transactions-section:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.section-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.loading-indicator {
    font-size: 14px;
    color: var(--accent-color);
    display: none;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.table-container {
    overflow-x: auto;
}

.transactions-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.transactions-table th {
    padding: 16px 32px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(19, 19, 20, 0.3);
}

.transactions-table td {
    padding: 20px 32px;
    border-bottom: 1px solid rgba(68, 71, 70, 0.3);
    font-size: 15px;
    color: var(--text-primary);
}

.transactions-table tr:last-child td {
    border-bottom: none;
}

.transactions-table tr {
    transition: background-color 0.2s ease;
}

.transactions-table tr:hover td {
    background-color: var(--bg-surface-hover);
}

.tag-categoria {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    display: inline-block;
    white-space: nowrap;
}

.val-entrada {
    color: var(--positive);
    font-weight: 600;
}

.val-saida {
    color: var(--negative);
    font-weight: 600;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Gemini Button */
.gemini-btn {
    width: 100%;
    margin-top: 24px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.3) 0%, rgba(155, 114, 203, 0.3) 33%, rgba(234, 67, 53, 0.3) 66%, rgba(251, 188, 5, 0.3) 100%);
    border: 1px solid rgba(155, 114, 203, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 50px;
    color: #E3E3E3;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.gemini-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.gemini-btn:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.5) 0%, rgba(155, 114, 203, 0.5) 33%, rgba(234, 67, 53, 0.5) 66%, rgba(251, 188, 5, 0.5) 100%);
    border-color: rgba(155, 114, 203, 1);
    box-shadow: 0 6px 20px rgba(155, 114, 203, 0.4), 0 0 15px rgba(26, 115, 232, 0.4);
    color: #FFF;
    transform: translateY(-2px);
}

.gemini-btn:hover::before {
    left: 150%;
}

/* Gemini Chat Modal */
.gemini-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(19, 19, 20, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.gemini-chat-card {
    background: linear-gradient(135deg, rgba(30, 31, 32, 0.8) 0%, rgba(30, 31, 32, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(155, 114, 203, 0.5);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(90deg, rgba(26, 115, 232, 0.3) 0%, rgba(155, 114, 203, 0.3) 33%, rgba(234, 67, 53, 0.3) 66%, rgba(251, 188, 5, 0.3) 100%);
    border-bottom: 1px solid rgba(155, 114, 203, 0.3);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #FFF;
}

.chat-header h3 {
    margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px;
}

.close-chat {
    background: transparent;
    border: none;
    color: #FFF;
    font-size: 24px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.close-chat:hover {
    opacity: 0.8;
}

.chat-body {
    padding: 20px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.chat-input-area {
    display: flex;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 50px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-area input:focus {
    background: linear-gradient(135deg, rgba(155, 114, 203, 0.1) 0%, rgba(155, 114, 203, 0.02) 100%);
    border-color: rgba(155, 114, 203, 0.6);
    box-shadow: 0 0 15px rgba(155, 114, 203, 0.3);
}

.chat-input-area button {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.4) 0%, rgba(155, 114, 203, 0.4) 50%, rgba(234, 67, 53, 0.4) 100%);
    border: 1px solid rgba(155, 114, 203, 0.6);
    box-shadow: 0 4px 15px rgba(155, 114, 203, 0.3);
    color: #FFF;
    width: 44px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.6) 0%, rgba(155, 114, 203, 0.6) 50%, rgba(234, 67, 53, 0.6) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 114, 203, 0.5);
}

.gemini-loading {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(168, 199, 250, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

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