
        /* Estilos específicos para o diário */

        .diario-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 15px;
        }

        .diario-header h2 {
            font-size: 24px;
            color: #2d2a24;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .controles-mes {
            display: flex;
            align-items: center;
            gap: 15px;
            background: white;
            padding: 8px 20px;
            border-radius: 30px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .controles-mes button {
            background: none;
            border: none;
            font-size: 20px;
            color: #6b5f53;
            cursor: pointer;
            padding: 5px 10px;
            transition: all 0.2s ease;
            border-radius: 8px;
        }

        .controles-mes button:hover {
            background: #f0ebe5;
            transform: scale(1.1);
        }

        .controles-mes .mes-atual {
            font-size: 18px;
            font-weight: 600;
            color: #2d2a24;
            min-width: 150px;
            text-align: center;
        }

        /* Formulário */
        .form-container {
            background: white;
            padding: 20px 20px;
            border-radius: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            margin-bottom: 30px;
            border-left: 5px solid #c9b8a5;
        }

        .form-container h3 {
            font-size: 18px;
            color: #2d2a24;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #5a524a;
            margin-bottom: 5px;
        }

        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e8e0d8;
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.3s ease;
            background: #faf8f6;
            min-height: 120px;
            resize: vertical;
        }

        .form-group textarea:focus {
            outline: none;
            border-color: #b5a89a;
            background: white;
        }

        .form-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 5px;
        }

        .btn-salvar {
            background: #6b5f53;
            color: white;
            border: none;
            padding: 10px 30px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-salvar:hover {
            background: #5a4f43;
            transform: scale(1.02);
        }

        .btn-salvar:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-cancelar {
            background: #f0ebe5;
            color: #5a524a;
            border: none;
            padding: 10px 25px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-cancelar:hover {
            background: #e0d8d0;
        }

        /* Lista de entradas */
        .entradas-lista {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .entrada-item {
            background: white;
            padding: 20px 25px;
            border-radius: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
            border-left: 4px solid #c9b8a5;
            transition: all 0.2s ease;
            position: relative;
        }

        .entrada-item:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.10);
        }

        .entrada-data {
            font-size: 14px;
            font-weight: 600;
            color: #8a7a6a;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .entrada-nota {
            font-size: 15px;
            color: #2d2a24;
            line-height: 1.7;
            white-space: pre-wrap;
        }

        .btn-excluir {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            color: #d5cdc4;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.2s ease;
            padding: 5px 8px;
            border-radius: 8px;
        }

        .btn-excluir:hover {
            color: #e74c3c;
            background: #fde8e8;
        }

        .sem-registros {
            text-align: center;
            padding: 60px 20px;
            color: #8a7a6a;
        }

        .sem-registros i {
            font-size: 48px;
            margin-bottom: 15px;
            opacity: 0.4;
        }

        .sem-registros h3 {
            font-size: 20px;
            margin-bottom: 8px;
        }

        .sem-registros p {
            font-size: 15px;
        }

        /* Loading */
        .loading {
            text-align: center;
            padding: 60px 20px;
        }

        .loading i {
            font-size: 40px;
            color: #8a7a6a;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Mensagem de sucesso/erro */
        .mensagem-flash {
            padding: 12px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
        }

        .mensagem-flash.sucesso {
            background: #e8f5e9;
            color: #2e7d32;
            border-left: 4px solid #4caf50;
        }

        .mensagem-flash.erro {
            background: #ffebee;
            color: #c62828;
            border-left: 4px solid #ef5350;
        }

        .mensagem-flash i {
            font-size: 20px;
        }

        /* Responsividade */
        @media (max-width: 768px) {
            .diario-header {
                flex-direction: column;
                align-items: stretch;
            }

            .controles-mes {
                justify-content: center;
                padding: 8px 15px;
            }

            .controles-mes .mes-atual {
                min-width: 120px;
                font-size: 16px;
            }

            .entrada-item {
                padding: 15px 18px;
            }

            .btn-home {
                justify-content: center;
            }

            .form-container {
                padding: 5px;
            }

            .form-actions {
                flex-direction: column;
            }

            .form-actions button {
                width: 100%;
                justify-content: center;
            }
        }



        /* Estilos adicionais para o botão toggle */
        .form-container {
            background: white;
            border-radius: 20px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08);
            margin-bottom: 30px;
            border-left: 5px solid #c9b8a5;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 5px 5px 5px;
            cursor: pointer;
            transition: background 0.2s ease;
            background: white;
        }

        .form-header:hover {
            background: #faf8f6;
        }

        .form-header h3 {
            font-size: 18px;
            color: #2d2a24;
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0;
            flex: 1;
        }

        .form-header h3 i {
            color: #8a7a6a;
        }

        .contador-notas {
            font-size: 13px;
            color: #8a7a6a;
            font-weight: 400;
            margin-left: 8px;
        }

        .btn-toggle-form {
            background: #f0ebe5;
            border: none;
            padding: 8px 18px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            color: #5a524a;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 100px;
            justify-content: center;
        }

        .btn-toggle-form:hover {
            background: #e0d8d0;
            transform: scale(1.02);
        }

        .btn-toggle-form i {
            font-size: 14px;
        }

        /* Corpo do formulário - oculta/mostra */
        .form-body {
            padding: 0 5px 5px 5px;
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .form-body.form-oculto {
            max-height: 0;
            padding: 0 25px;
            opacity: 0;
            pointer-events: none;
        }

        .form-body.form-visible {
            max-height: 500px;
            padding: 0 5px 5px 5px;
            opacity: 1;
            pointer-events: auto;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: #5a524a;
            margin-bottom: 5px;
        }

        .form-group textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e8e0d8;
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            transition: border-color 0.3s ease;
            background: #faf8f6;
            min-height: 120px;
            resize: vertical;
        }

        .form-group textarea:focus {
            outline: none;
            border-color: #b5a89a;
            background: white;
        }

        .form-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 5px;
        }

        .btn-salvar {
            background: #6b5f53;
            color: white;
            border: none;
            padding: 10px 30px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn-salvar:hover {
            background: #5a4f43;
            transform: scale(1.02);
        }

        .btn-salvar:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .btn-cancelar {
            background: #f0ebe5;
            color: #5a524a;
            border: none;
            padding: 10px 25px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-cancelar:hover {
            background: #e0d8d0;
        }

        @media (max-width: 600px) {
            .form-header {
                padding: 15px 18px;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .btn-toggle-form {
                min-width: 80px;
                font-size: 12px;
                padding: 6px 14px;
            }

            .form-body {
                padding: 0 18px 18px 18px;
            }

            .form-body.form-visible {
                padding: 0 5px 5px 5px;
            }

            .form-actions {
                flex-direction: column;
            }

            .form-actions button {
                width: 100%;
                justify-content: center;
            }
        }
/*
        @media (max-width: 480px) {
            .container { padding: 4px; }
            .header h1 { font-size: 1rem; }
            .user-info { font-size: 0.7rem; gap: 6px; }
            .user-info span { max-width: 80px; }
            .tab { padding: 6px 10px; font-size: 0.9rem; }
            .btn { padding: 6px 14px; font-size: 0.75rem; }
            .btn-sm { padding: 3px 8px; font-size: 0.7rem; }
            .modal-box { padding: 12px; margin: 4px; }
            .grafico-box .chart-container { height: 180px; }
            .toggle-header { padding: 6px 10px; }
            .toggle-header h4 { font-size: 1rem; }
        }*/