/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
    animation: splashFadeIn 1s ease-in-out;
}

.splash-content {
    text-align: center;
    max-width: 800px;
    width: 90%;
    padding: 20px;
}

.splash-logo {
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-icon {
    font-size: 4em;
    margin-bottom: 20px;
    display: block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.splash-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.developer-info {
    margin: 30px 0;
}

.developer-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardSlideUp 1.5s ease-out;
}

.developer-card h3 {
    font-size: 1.1em;
    margin-bottom: 15px;
    opacity: 0.9;
}

.developer-card h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.developer-card h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: #e0e7ff;
}

.contact-info, .company-contacts {
    margin: 20px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 1.1em;
}

.contact-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    color: #a5b4fc;
}

.contact-item a {
    color: #e0e7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.company-info {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.social-share {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.share-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.splash-footer {
    margin-top: 40px;
    text-align: center;
    animation: footerFadeIn 2s ease-in-out;
}

.splash-footer p {
    margin: 8px 0;
    font-size: 0.9em;
    opacity: 0.8;
    line-height: 1.4;
}

.enter-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.enter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ff5252, #e53935);
}

.enter-btn i {
    margin-right: 8px;
}

.loading-animation {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Animations */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes footerFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.splash-screen.fade-out {
    animation: splashFadeOut 0.8s ease-in-out forwards;
}

@keyframes splashFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive Design for Splash Screen */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2.5em;
    }
    
    .splash-subtitle {
        font-size: 1.1em;
    }
    
    .developer-card {
        padding: 20px;
    }
    
    .developer-card h2 {
        font-size: 1.8em;
    }
    
    .contact-item {
        font-size: 1em;
    }
    
    .share-buttons {
        flex-wrap: wrap;
    }
    
    .share-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .splash-content {
        padding: 15px;
    }
    
    .splash-title {
        font-size: 2em;
    }
    
    .developer-card {
        padding: 15px;
    }
    
    .splash-footer p {
        font-size: 0.8em;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
    margin-right: 8px;
}

/* Tab Content */
.tab-content {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5em;
    margin-right: 20px;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 0.9em;
    margin-bottom: 5px;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
}

/* Recent Activities */
.recent-activities {
    margin-top: 30px;
}

.recent-activities h3 {
    margin-bottom: 15px;
    color: #333;
}

.activities-list {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    padding: 10px;
    border-left: 4px solid #667eea;
    margin-bottom: 10px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.activity-time {
    font-size: 0.8em;
    color: #666;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: #333;
    font-size: 1.8em;
}

/* Search Section */
.search-section {
    margin-bottom: 20px;
}

.search-section input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-section input:focus {
    outline: none;
    border-color: #667eea;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

tbody tr:hover {
    background: #f8f9fa;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* Reports Grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.report-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e0e0;
}

.report-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.date-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Export Buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.export-buttons .btn {
    min-width: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.report-result {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    min-height: 100px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-input {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-concluido {
    background: #d4edda;
    color: #155724;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-cancelado {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        width: 100%;
        justify-content: center;
    }
    
    .tab-content {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .date-inputs {
        flex-direction: column;
    }
    
    .reports-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 10px 8px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px;
        margin: 10px;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

/* Loading Animation */
.loading {
    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); }
}

/* Success/Error Messages */
.message {
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }
    
    .tabs, .btn {
        display: none !important;
    }
    
    .tab-content {
        display: block !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .stat-card {
        background: white !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
}

/* Estilos do Chat IA */
.chat-info {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
}

.chat-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chat-badge:not(.online) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.chat-badge.online {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    animation: pulse 2s infinite;
}

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

.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    background: #f8f9fa;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #f8f9fa 0%, #fff 100%);
}

.message {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    animation: messageSlideIn 0.3s ease-out;
}

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

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 12px;
    order: 2;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    margin-right: 12px;
}

.message-content {
    max-width: 70%;
    min-width: 100px;
}

.user-message .message-content {
    text-align: right;
}

.message-text {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
}

.user-message .message-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-text {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    border: 1px solid #e0e0e0;
}

.message-text ul {
    margin: 10px 0;
    padding-left: 20px;
}

.message-text li {
    margin: 8px 0;
}

.message-text strong {
    font-weight: 600;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
    opacity: 0.7;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.chat-input-container {
    border-top: 1px solid #e0e0e0;
    background: white;
}

.quick-questions {
    padding: 15px 20px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.quick-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #667eea;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.chat-input-area {
    padding: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

#chatInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

#chatInput:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#chatInput:disabled {
    background: #e9ecef;
    cursor: not-allowed;
    opacity: 0.6;
}

.send-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.send-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.chat-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive para Chat */
@media (max-width: 768px) {
    .chat-container {
        height: 500px;
    }
    
    .chat-info {
        flex-direction: column;
        gap: 5px;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .quick-questions {
        padding: 10px 15px;
    }
    
    .quick-btn {
        font-size: 11px;
        padding: 6px 12px;
    }
    
    .chat-input-area {
        padding: 15px;
    }
    
    #chatInput {
        padding: 12px 18px;
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .send-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .chat-container {
        height: 450px;
    }
    
    .message-content {
        max-width: 90%;
    }
    
    .quick-questions {
        gap: 5px;
    }
    
    .quick-btn {
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* ===== ESTILOS DO FECHAMENTO DE CAIXA ===== */

/* Grid do caixa */
.caixa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.caixa-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caixa-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.caixa-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.card-header h3 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: #667eea;
}

/* Status do caixa */
.caixa-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.caixa-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.caixa-badge.aberto {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.caixa-badge.fechado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.data-atual {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Resumo do dia */
.resumo-values {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.resumo-item:last-child {
    border-bottom: none;
}

.resumo-item .label {
    font-weight: 500;
    color: #555;
}

.resumo-item .value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.resumo-item .value.faturamento {
    color: #28a745;
    font-size: 18px;
}

/* Movimentações */
.movimentacoes-container {
    max-height: 300px;
    overflow-y: auto;
}

.movimentacao-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #ddd;
}

.movimentacao-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.movimentacao-tipo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.movimentacao-tipo.entrada {
    color: #28a745;
}

.movimentacao-tipo.saida {
    color: #dc3545;
}

.movimentacao-item:has(.movimentacao-tipo.entrada) {
    border-left-color: #28a745;
}

.movimentacao-item:has(.movimentacao-tipo.saida) {
    border-left-color: #dc3545;
}

.movimentacao-descricao {
    font-size: 14px;
    color: #666;
}

.movimentacao-valor {
    font-weight: 700;
    font-size: 16px;
    margin-right: 10px;
}

.movimentacao-valor.entrada {
    color: #28a745;
}

.movimentacao-valor.saida {
    color: #dc3545;
}

/* Formas de pagamento */
.pagamentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.pagamento-item {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: transform 0.2s ease;
}

.pagamento-item:hover {
    transform: scale(1.02);
}

.pagamento-tipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.pagamento-tipo i {
    font-size: 24px;
    color: #667eea;
}

.pagamento-tipo span {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
}

.pagamento-valor {
    font-size: 16px;
    font-weight: 700;
    color: #28a745;
}

/* Fechamento */
.fechamento-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.fechamento-card .card-header h3 {
    color: white;
}

.fechamento-card .card-header h3 i {
    color: white;
}

.fechamento-content {
    text-align: center;
}

.valor-final {
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.valor-final .label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.valor-total {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fechamento-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.fechamento-actions .btn {
    min-width: 140px;
    padding: 12px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Histórico */
.historico-container {
    max-height: 400px;
    overflow-y: auto;
}

/* Modal de conferência */
.conferencia-content {
    margin: 20px 0;
}

.conferencia-section {
    margin-bottom: 25px;
}

.conferencia-section h3 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.conferencia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.conferencia-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.conferencia-item label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.valor-sistema {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.diferenca-container {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.diferenca-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.diferenca-label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.diferenca-valor {
    font-size: 18px;
    font-weight: 700;
}

.diferenca-valor.zero {
    color: #28a745;
}

.diferenca-valor.positiva {
    color: #17a2b8;
}

.diferenca-valor.negativa {
    color: #dc3545;
}

.diferenca-obs {
    margin-top: 15px;
}

.diferenca-obs label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

/* Responsividade do caixa */
@media (max-width: 1200px) {
    .caixa-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .caixa-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .pagamentos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .fechamento-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .fechamento-actions .btn {
        min-width: 100%;
    }
    
    .conferencia-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .valor-total {
        font-size: 24px;
    }
    
    .movimentacao-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .diferenca-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Animações específicas do caixa */
@keyframes cashRegister {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.valor-total {
    animation: cashRegister 0.3s ease-in-out;
}

/* Melhorias nos botões do caixa */
.btn.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    color: #333;
}

.btn.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-1px);
}

.btn.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    color: white;
}

.btn.btn-info:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-1px);
}

/* Status badges específicos */
.status-badge.status-fechado {
    background: #6c757d;
    color: white;
}
